/* Cookie Consent Banner Styles
   GDPR/CCPA compliant cookie consent mechanism
   ============================================ */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-bg-elevated, #252540);
    border-top: 1px solid rgba(214, 240, 141, 0.2);
    padding: var(--space-4, 1rem) var(--space-6, 1.5rem);
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4, 1rem);
}

.cookie-consent-text {
    flex: 1;
    min-width: 280px;
}

.cookie-consent-text h4 {
    margin: 0 0 var(--space-2, 0.5rem) 0;
    color: var(--color-text-primary, #ffffff);
    font-size: 1rem;
    font-weight: 600;
}

.cookie-consent-text p {
    margin: 0;
    color: var(--color-text-secondary, #a0a0b0);
    font-size: 0.875rem;
    line-height: 1.5;
}

.cookie-consent-link {
    color: var(--color-accent-lime, #D6F08D);
    text-decoration: none;
    white-space: nowrap;
}

.cookie-consent-link:hover {
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: var(--space-3, 0.75rem);
    flex-shrink: 0;
}

.cookie-btn-decline,
.cookie-btn-accept {
    padding: var(--space-2, 0.5rem) var(--space-4, 1rem);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm, 4px);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn-decline {
    background: transparent;
    border: 1px solid var(--color-text-tertiary, #666);
    color: var(--color-text-secondary, #a0a0b0);
}

.cookie-btn-decline:hover {
    border-color: var(--color-text-secondary, #a0a0b0);
    color: var(--color-text-primary, #ffffff);
}

.cookie-btn-accept {
    background: var(--color-accent-lime, #D6F08D);
    border: 1px solid var(--color-accent-lime, #D6F08D);
    color: var(--color-bg-primary, #0a0a0f);
}

.cookie-btn-accept:hover {
    background: #e5f5a5;
    border-color: #e5f5a5;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .cookie-consent-banner {
        padding: var(--space-4, 1rem);
    }

    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .cookie-consent-actions {
        justify-content: center;
    }

    .cookie-btn-decline,
    .cookie-btn-accept {
        flex: 1;
        padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
    }
}

/* Ensure banner is above other fixed elements */
.cookie-consent-banner ~ * {
    /* Push content up to account for banner height if needed */
}

/* Focus styles for accessibility */
.cookie-consent-banner:focus {
    outline: none;
}

.cookie-btn-decline:focus,
.cookie-btn-accept:focus {
    outline: 2px solid var(--color-accent-lime, #D6F08D);
    outline-offset: 2px;
}
