/* YouTube Banner Downloader Styles */

.ytbd-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.ytbd-input-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.ytbd-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s;
}

.ytbd-input:focus {
    border-color: #2196F3;
}

.ytbd-button {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background: #FF0000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.ytbd-button:hover {
    background: #CC0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
}

.ytbd-button:active {
    transform: translateY(0);
}

.ytbd-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.ytbd-processing {
    text-align: center;
    padding: 40px 20px;
    background: #f5f5f5;
    border-radius: 5px;
    margin-bottom: 20px;
}

.ytbd-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #FF0000;
    border-radius: 50%;
    animation: ytbd-spin 1s linear infinite;
}

@keyframes ytbd-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ytbd-processing p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.ytbd-error {
    padding: 15px 20px;
    background: #ffebee;
    border-left: 4px solid #f44336;
    border-radius: 5px;
    color: #c62828;
    margin-bottom: 20px;
}

.ytbd-results {
    margin-top: 30px;
}

.ytbd-results h3 {
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-align: center;
}

.ytbd-resolutions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.ytbd-resolution-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.ytbd-resolution-card:hover {
    border-color: #2196F3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.ytbd-resolution-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ytbd-resolution-name {
    font-size: 18px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.ytbd-resolution-size {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.ytbd-download-link {
    display: inline-block;
    padding: 12px 30px;
    background: #2196F3;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
}

.ytbd-download-link:hover {
    background: #1976D2;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .ytbd-input-section {
        flex-direction: column;
    }
    
    .ytbd-button {
        width: 100%;
    }
    
    .ytbd-resolutions {
        grid-template-columns: 1fr;
    }
}
