/**
 * Elev8d Therapy - Cookie Consent Banner Styles
 * Non-blocking bottom banner with calming design
 * WCAG 2.1 AA Accessible
 */

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1b3d4e; /* var(--color-dark) */
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

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

.cookie-consent-banner.cookie-consent-hidden {
    transform: translateY(100%);
    opacity: 0;
}

/* Container */
.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

/* Content */
.cookie-consent-content {
    flex: 1;
    min-width: 280px;
}

.cookie-consent-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.cookie-consent-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.5;
}

.cookie-consent-link {
    color: #ff7e00; /* var(--color-accent) */
    text-decoration: none;
    transition: color 0.2s ease;
}

.cookie-consent-link:hover,
.cookie-consent-link:focus {
    color: #ff9933; /* var(--color-accent-light) */
    text-decoration: underline;
}

/* Actions */
.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Buttons */
.cookie-btn {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn:focus {
    outline: 3px solid #ff7e00;
    outline-offset: 2px;
}

/* Primary Button (Accept All) */
.cookie-btn--primary {
    background: #ff7e00; /* var(--color-accent) */
    color: #ffffff;
    border-color: #ff7e00;
}

.cookie-btn--primary:hover {
    background: #cc6500; /* var(--color-accent-dark) */
    border-color: #cc6500;
    transform: translateY(-1px);
}

.cookie-btn--primary:active {
    transform: translateY(0);
}

/* Secondary Button (Essential Only) */
.cookie-btn--secondary {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-consent-container {
        padding: 1rem;
        gap: 1rem;
    }

    .cookie-consent-content {
        flex-basis: 100%;
    }

    .cookie-consent-title {
        font-size: 0.9375rem;
    }

    .cookie-consent-text {
        font-size: 0.875rem;
    }

    .cookie-consent-actions {
        flex-basis: 100%;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        min-width: 120px;
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .cookie-consent-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner {
        transition: none;
    }

    .cookie-btn {
        transition: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .cookie-consent-banner {
        border-top: 2px solid #ffffff;
    }

    .cookie-btn--secondary {
        border-color: #ffffff;
    }
}
