/* GDPR Cookie Consent Banner Styles */

.cookie-consent-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 999999;
    animation: slideUp 0.4s ease-out;
    padding: 20px;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-container {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.cookie-consent-header {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    padding: 20px 30px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.cookie-consent-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #d4af37;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-consent-body {
    padding: 25px 30px;
    color: #fff;
}

.cookie-consent-body > p {
    margin: 0 0 20px 0;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-options {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.cookie-category {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.cookie-category:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.4);
}

.cookie-category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.cookie-category-header strong {
    font-size: 1.05rem;
    color: #d4af37;
}

.cookie-description {
    margin: 0 0 0 60px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* Custom Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 26px;
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
    background-color: #d4af37;
    border-color: #d4af37;
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

.cookie-switch input:disabled + .cookie-slider {
    cursor: not-allowed;
    background-color: rgba(212, 175, 55, 0.5);
    border-color: rgba(212, 175, 55, 0.5);
}

/* Cookie Links */
.cookie-links {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-links a {
    color: #d4af37;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.cookie-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Footer Buttons */
.cookie-consent-footer {
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #d4af37, #f4e4a8);
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.cookie-btn-selected {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    border: 2px solid #d4af37;
}

.cookie-btn-selected:hover {
    background: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.cookie-btn-reject {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Cookie Settings Link (for footer) */
.cookie-settings-link {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(26, 26, 46, 0.9);
    color: #d4af37;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    z-index: 99999;
}

.cookie-settings-link:hover {
    background: rgba(26, 26, 46, 1);
    border-color: #d4af37;
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-consent-overlay {
        padding: 10px;
    }

    .cookie-consent-container {
        border-radius: 15px;
    }

    .cookie-consent-header {
        padding: 15px 20px;
    }

    .cookie-consent-header h3 {
        font-size: 1.2rem;
    }

    .cookie-consent-body {
        padding: 20px;
    }

    .cookie-description {
        margin-left: 45px;
        font-size: 0.85rem;
    }

    .cookie-consent-footer {
        flex-direction: column;
        padding: 15px 20px;
    }

    .cookie-btn {
        width: 100%;
        min-width: unset;
    }

    .cookie-links {
        flex-direction: column;
        gap: 10px;
    }

    .cookie-settings-link {
        bottom: 10px;
        left: 10px;
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .cookie-consent-header h3 {
        font-size: 1.1rem;
    }

    .cookie-consent-body > p {
        font-size: 0.9rem;
    }

    .cookie-category-header strong {
        font-size: 0.95rem;
    }

    .cookie-switch {
        width: 44px;
        height: 24px;
    }

    .cookie-slider:before {
        height: 16px;
        width: 16px;
    }

    .cookie-switch input:checked + .cookie-slider:before {
        transform: translateX(20px);
    }
}

/* Dark overlay for better focus */
@media (prefers-color-scheme: dark) {
    .cookie-consent-overlay {
        background: rgba(0, 0, 0, 0.9);
    }
}

/* Accessibility */
.cookie-btn:focus,
.cookie-switch input:focus + .cookie-slider {
    outline: 3px solid rgba(212, 175, 55, 0.5);
    outline-offset: 2px;
}

.cookie-links a:focus {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* Animation for banner hide */
#cookieConsentBanner {
    transition: opacity 0.3s ease;
}
