/* 
 * Cookie Consent Banner - Premium Glassmorphic Design
 * Optimized for TexnoX
 */

.cookie-consent-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    width: 92%;
    max-width: 450px;
    z-index: 2147483647;
    pointer-events: all;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: opacity 0.6s cubic-bezier(0.32, 0.72, 0, 1), transform 0.6s cubic-bezier(0.32, 0.72, 0, 1);
    opacity: 0;
}

.dark .cookie-consent-banner {
    background: rgba(15, 15, 20, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.cookie-consent-banner.banner-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cookie-content-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #007BFF;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-content-text {
    font-size: 13px;
    line-height: 1.6;
    color: #4b5563;
}

.dark .cookie-content-text {
    color: #9ca3af;
}

.cookie-content-text a {
    color: #007BFF;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.2s ease;
}

.cookie-content-text a:hover {
    opacity: 0.75;
}

.cookie-actions {
    display: flex;
    gap: 12px;
}

.cookie-btn {
    flex: 1;
    padding: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.3s cubic-bezier(0.32, 0.72, 0, 1), transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-btn-accept {
    background: #0066FF;
    /* Darker blue for accessibility contrast */
    color: white;
    border: none;
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.25);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 123, 255, 0.35);
}

.cookie-btn-decline {
    background: rgba(0, 0, 0, 0.03);
    color: #6b7280;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .cookie-btn-decline {
    background: rgba(255, 255, 255, 0.03);
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-btn-decline:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #374151;
}

.dark .cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .cookie-consent-banner {
        width: calc(100% - 32px);
        bottom: 16px;
        padding: 16px 20px;
    }
}