/**
 * Retrobeat - Cookie Banner Styles
 * Estilos para el banner y panel de cookies
 */

/* Banner de Cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.98) 0%, rgba(26, 29, 58, 0.98) 100%);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    border-top: 2px solid rgba(255, 46, 151, 0.3);
    z-index: 99999;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-banner-text h3 {
    color: #FF2E97;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.cookie-banner-text p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

.cookie-banner-text a {
    color: #00E5FF;
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: #FF2E97;
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-banner-buttons .btn {
    white-space: nowrap;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Panel de Configuración */
.cookie-settings {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-out;
}

.cookie-settings.show {
    opacity: 1;
    pointer-events: all;
}

.cookie-settings-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.cookie-settings-content {
    position: relative;
    background: linear-gradient(135deg, #0A0E27 0%, #1A1D3A 100%);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    border-radius: 16px;
    border: 2px solid rgba(255, 46, 151, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-settings-header h2 {
    color: #FF2E97;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 46, 151, 0.1);
    color: #FF2E97;
}

.cookie-settings-body {
    padding: 2rem;
}

.cookie-type {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-type-header {
    margin-bottom: 0.75rem;
}

.cookie-type-header label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: #fff;
    font-size: 1.1rem;
}

.cookie-type-header input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #FF2E97;
}

.cookie-type-header input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.cookie-type-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    padding-left: 2rem;
}

.cookie-settings-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .cookie-banner-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-banner-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .cookie-settings-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .cookie-settings-header,
    .cookie-settings-body,
    .cookie-settings-footer {
        padding: 1.5rem;
    }
    
    .cookie-settings-footer {
        flex-direction: column;
    }
    
    .cookie-settings-footer .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-banner-text h3 {
        font-size: 1rem;
    }
    
    .cookie-banner-text p {
        font-size: 0.9rem;
    }
    
    .cookie-type {
        padding: 1rem;
    }
    
    .cookie-type-header label {
        font-size: 1rem;
    }
    
    .cookie-type-description {
        font-size: 0.85rem;
        padding-left: 1.5rem;
    }
}

/* Animación de scroll */
@media (max-width: 768px) {
    .cookie-settings-content {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Custom scrollbar para el panel */
.cookie-settings-content::-webkit-scrollbar {
    width: 8px;
}

.cookie-settings-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.cookie-settings-content::-webkit-scrollbar-thumb {
    background: rgba(255, 46, 151, 0.3);
    border-radius: 4px;
}

.cookie-settings-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 46, 151, 0.5);
}
