/**
 * BioFS Banner Messages Styles
 * Design System: Tailwind tokens + custom animations
 */

/* Banner container */
.biofs-banner {
    position: relative;
    z-index: 9999;
    /* Background color, text color, and link color set via inline style from admin */
    font-family: var(--font-body, Inter, system-ui, sans-serif);
    font-size: 0.875rem;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.biofs-banner__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
}

/* Message content */
.biofs-banner__content {
    flex: 1;
    text-align: center;
    min-height: 1.5rem;
    position: relative;
}

.biofs-banner__message {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.biofs-banner__message--active {
    opacity: 1;
    transform: translateY(0);
}

/* Typography */
.biofs-banner__message strong {
    font-weight: 600;
}

.biofs-banner__message a {
    color: var(--banner-link-color, inherit);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: text-decoration-thickness 0.2s ease;
}

.biofs-banner__message a:hover {
    text-decoration-thickness: 2px;
}

/* Indicators */
.biofs-banner__indicators {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.biofs-banner__indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.biofs-banner__indicator:hover {
    transform: scale(1.2);
}

.biofs-banner__indicator--active {
    background-color: white;
}

/* Responsive */
@media (max-width: 640px) {
    .biofs-banner__container {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    .biofs-banner__indicators {
        display: none;
    }
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
    .biofs-banner__message {
        transition: none;
    }
}
