/**
 * Cookie Consent Banner
 * GDPR/CCPA Compliance Component
 */

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: var(--space-4) var(--space-3);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--color-text);
}

.cookie-consent-text p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.cookie-consent-text a {
    color: var(--color-primary);
    text-decoration: underline;
    transition: color 0.2s;
}

.cookie-consent-text a:hover {
    color: var(--color-primary-hover);
}

.cookie-consent-actions {
    display: flex;
    gap: var(--space-3);
    flex-shrink: 0;
}

.cookie-consent-actions .btn {
    white-space: nowrap;
    min-width: 120px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: var(--space-3) var(--space-2);
    }

    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-text {
        text-align: center;
        min-width: unset;
    }

    .cookie-consent-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-consent-actions .btn {
        width: 100%;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner {
        transition: none;
    }
}

/* Dark/Light Mode Adjustments */
.dark-mode .cookie-consent-banner {
    background: rgba(var(--color-surface-rgb), 0.95);
    border-top-color: var(--color-border);
}

.light-mode .cookie-consent-banner {
    background: rgba(var(--color-surface-rgb), 0.95);
    border-top-color: var(--color-border);
}
