/**
 * Cookie Consent Banner Styles
 * GDPR-compliant cookie banner
 */

#cookie-consent-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(20, 21, 22, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(146, 148, 159, 0.2);
    padding: 24px;
    z-index: 9999;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

#cookie-consent-banner.show {
    bottom: 0;
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-consent-content {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-content h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #FFFCFA;
    margin: 0 0 8px 0;
}

.cookie-consent-content p {
    font-family: "Fira Sans", sans-serif;
    font-size: 15px;
    line-height: 150%;
    color: rgba(255, 252, 250, 0.8);
    margin: 0;
}

.cookie-consent-content a {
    color: #AB47BC;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cookie-consent-content a:hover {
    color: #8E24AA;
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 28px;
    border-radius: 6px;
    font-family: "Fira Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: #3076FE;
    color: #FAFAFA;
}

.cookie-btn-accept:hover {
    background: #1e5ed4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(48, 118, 254, 0.3);
}

.cookie-btn-reject {
    background: transparent;
    color: #FFFCFA;
    border: 2px solid rgba(146, 148, 159, 0.4);
}

.cookie-btn-reject:hover {
    background: rgba(146, 148, 159, 0.1);
    border-color: rgba(146, 148, 159, 0.6);
}

.cookie-btn-close {
    background: transparent;
    color: rgba(255, 252, 250, 0.6);
    border: none;
    padding: 8px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
    margin-left: 8px;
}

.cookie-btn-close:hover {
    color: #FFFCFA;
}

/* Cookie Notification */
.cookie-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(20, 21, 22, 0.95);
    backdrop-filter: blur(15px);
    color: #FFFCFA;
    padding: 16px 24px;
    border-radius: 8px;
    border: 1px solid rgba(146, 148, 159, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: "Fira Sans", sans-serif;
    font-size: 15px;
    max-width: 320px;
}

.cookie-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Cookie Settings Button (for pages) */
.cookie-settings-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid #3076FE;
    color: #3076FE;
    font-family: "Fira Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-settings-btn:hover {
    background: #3076FE;
    color: #FAFAFA;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(48, 118, 254, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    #cookie-consent-banner {
        padding: 20px 16px;
    }
    
    .cookie-consent-container {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .cookie-consent-content {
        min-width: auto;
    }
    
    .cookie-consent-content h3 {
        font-size: 18px;
    }
    
    .cookie-consent-content p {
        font-size: 14px;
    }
    
    .cookie-consent-actions {
        justify-content: space-between;
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        padding: 12px 16px;
        font-size: 14px;
        text-align: center;
    }
    
    .cookie-btn-close {
        position: absolute;
        top: 12px;
        right: 12px;
        padding: 4px;
    }
    
    .cookie-notification {
        top: auto;
        bottom: 20px;
        right: 16px;
        left: 16px;
        max-width: none;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cookie-consent-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .cookie-btn {
        width: 100%;
    }
}

/* Accessibility */
.cookie-btn:focus,
.cookie-btn-close:focus,
.cookie-settings-btn:focus {
    outline: 3px solid #AB47BC;
    outline-offset: 2px;
}

/* Animation for initial load */
@keyframes slideUp {
    from {
        bottom: -100%;
    }
    to {
        bottom: 0;
    }
}

/* Print styles */
@media print {
    #cookie-consent-banner,
    .cookie-notification {
        display: none !important;
    }
}
