/* ===================================
   COOKIE CONSENT BANNER (GDPR)
   Modern glassmorphism design
   =================================== */

.cookie-consent-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    z-index: 9998;
    padding: 1.5rem;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 2px solid rgba(0, 229, 255, 0.3);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent-banner.show {
    bottom: 0;
}

.cookie-consent-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: space-between;
}

.cookie-consent-text {
    flex: 1;
    min-width: 0;
}

.cookie-consent-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-consent-title i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.cookie-consent-banner p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.3);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4);
}

.cookie-btn-reject {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.cookie-btn-settings:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.5);
}

/* ===================================
   Cookie Settings Modal
   =================================== */

.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.cookie-settings-modal.active {
    display: flex;
}

.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-container {
    position: relative;
    z-index: 1;
    max-width: 600px;
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-settings-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.cookie-settings-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-settings-close:hover {
    background: rgba(255, 64, 129, 0.2);
    border-color: #ff4081;
    color: #ff4081;
    transform: rotate(90deg);
}

.cookie-settings-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.cookie-category {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-category:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.cookie-category h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-category i {
    color: var(--primary-color);
}

.cookie-status {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cookie-status.essential {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.cookie-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 26px;
    transition: all 0.3s ease;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-toggle input:checked + .cookie-slider {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    border-color: var(--primary-color);
}

.cookie-toggle input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

.cookie-settings-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-btn-save {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.3);
}

.cookie-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4);
}

/* ===================================
   Responsive
   =================================== */

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .cookie-consent-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-settings-container {
        max-width: 100%;
        margin: 0;
        border-radius: 20px 20px 0 0;
        max-height: 90vh;
    }
    
    .cookie-settings-header,
    .cookie-settings-body,
    .cookie-settings-footer {
        padding: 1.25rem;
    }
}

/* ===================================
   Light Mode
   =================================== */

body.light-mode .cookie-consent-banner {
    background: rgba(255, 255, 255, 0.98);
    border-top-color: rgba(0, 133, 255, 0.3);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
}

body.light-mode .cookie-consent-title {
    color: #050505;
}

body.light-mode .cookie-consent-banner p {
    color: #4a5568;
}

body.light-mode .cookie-btn-reject {
    background: rgba(0, 0, 0, 0.05);
    color: #050505;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .cookie-btn-reject:hover {
    background: rgba(0, 0, 0, 0.1);
}

body.light-mode .cookie-btn-settings {
    color: #0085ff;
    border-color: rgba(0, 133, 255, 0.3);
}

body.light-mode .cookie-settings-container {
    background: #ffffff;
    border-color: rgba(0, 133, 255, 0.3);
}

body.light-mode .cookie-category {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .cookie-description {
    color: #4a5568;
}

body.light-mode .cookie-slider {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.15);
}

