/* ============================================================
   SOY ALHAMA — Cookie Consent Banner
   Premium Glassmorphism & Discreet Animations
   ============================================================ */

#cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    width: 90%;
    max-width: 600px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05); /* Very subtle to start */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    z-index: 9999;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0;
    pointer-events: none;
}

#cookie-banner.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.cookie-content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.cookie-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--terracotta-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(212, 137, 106, 0.3);
}

.cookie-text {
    flex-grow: 1;
}

.cookie-text h4 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

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

.cookie-btn {
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cookie-btn-primary {
    background: white;
    color: #1a1a1a;
}

.cookie-btn-primary:hover {
    background: var(--terracotta-light);
    color: white;
    transform: translateY(-2px);
}

.cookie-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Dark mode / Light mode adjustment if needed */
body:not(.dark-mode) #cookie-banner {
    background: rgba(0, 0, 0, 0.75); /* Dark background for visibility on white pages */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
    #cookie-banner {
        bottom: 12px;
        width: 95%;
        padding: 16px;
    }
    
    .cookie-content {
        gap: 12px;
    }
    
    .cookie-icon {
        display: none; /* Hide icon on mobile to save space */
    }
    
    .cookie-actions {
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        text-align: center;
        padding: 12px 8px;
    }
}
