/**
 * Cookie Consent Banner Styles
 * Privacy-first, accessible design
 */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #000f6a; /* Navy Blue */
    color: #ffffff;
    padding: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

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

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

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

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

.cookie-consent-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
}

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

.cookie-consent-text strong {
    color: #ffffff;
}

.cookie-consent-links {
    margin-top: 0.5rem !important;
    font-size: 0.8125rem !important;
}

.cookie-consent-links a {
    color: #f8fafc; /* Slate-50 */
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cookie-consent-links a:hover,
.cookie-consent-links a:focus {
    color: #ffffff;
}

.cookie-consent-actions {
    flex-shrink: 0;
}

.cookie-consent-btn {
    background: #f8fafc; /* Slate-50 */
    color: #000f6a; /* Navy */
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.cookie-consent-btn:hover {
    background: #ffffff;
}

.cookie-consent-btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.cookie-consent-btn:active {
    transform: scale(0.98);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1rem;
    }

    .cookie-consent-text {
        min-width: auto;
    }

    .cookie-consent-btn {
        width: 100%;
        padding: 1rem 1.5rem;
    }
}

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

    .cookie-consent-btn {
        transition: none;
    }
}

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

    .cookie-consent-btn {
        border: 2px solid #000f6a;
    }
}
