/* ========================================
   COOKIE CONSENT BANNER
   Professional design matching Desentix aesthetic
   ======================================== */

#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0 1rem 1rem;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

#cookie-consent-banner.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.consent-banner-inner {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(15, 17, 25, 0.98) 0%, rgba(20, 22, 35, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 
        0 -10px 40px -10px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 60px -20px rgba(99, 102, 241, 0.15);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .consent-banner-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
    }
}

.consent-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.consent-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #818cf8;
}

.consent-text {
    flex: 1;
    min-width: 0;
}

.consent-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 0.25rem 0;
}

.consent-description {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

.consent-link {
    color: #818cf8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.consent-link:hover {
    color: #a5b4fc;
    text-decoration: underline;
}

.consent-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.consent-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.consent-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.consent-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
}

.consent-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    border: 1px solid rgba(99, 102, 241, 0.5);
    box-shadow: 0 4px 12px -3px rgba(99, 102, 241, 0.3);
}

.consent-btn-primary:hover {
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -3px rgba(99, 102, 241, 0.4);
}

/* Mobile optimization */
@media (max-width: 639px) {
    #cookie-consent-banner {
        padding: 0 0.75rem 0.75rem;
    }
    
    .consent-banner-inner {
        padding: 1rem 1.25rem;
    }
    
    .consent-icon {
        display: none;
    }
    
    .consent-actions {
        width: 100%;
    }
    
    .consent-btn {
        flex: 1;
        text-align: center;
    }
}
