/**
 * BridgeHub Live Scores — Frontend Banner CSS
 *
 * Red banner with pulsing dot for live results.
 * Responsive, accessible, performant.
 */

/* ── Banner Container ── */

.bhls-banner-container {
    width: 100%;
    text-align: center;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    z-index: 100;
}

.bhls-banner-container:empty {
    display: none;
    padding: 0;
    margin: 0;
}

/* ── Banner Item ── */

.bhls-banner-item {
    display: inline-block;
}

/* ── Banner Link ── */

.bhls-banner-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: #d32f2f;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    transition: background 0.2s ease, transform 0.15s ease;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
}

.bhls-banner-link:hover,
.bhls-banner-link:focus {
    background: #b71c1c;
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4);
}

.bhls-banner-link:active {
    transform: translateY(0);
}

/* ── Pulsing Dot ── */

.bhls-pulse {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    flex-shrink: 0;
    animation: bhls-pulse-anim 1.5s ease-in-out infinite;
}

@keyframes bhls-pulse-anim {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

/* ── Banner Text ── */

.bhls-banner-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}

/* ── Responsive ── */

@media (max-width: 600px) {
    .bhls-banner-container {
        flex-direction: column;
        align-items: center;
    }

    .bhls-banner-link {
        font-size: 0.85rem;
        padding: 6px 14px;
    }

    .bhls-banner-text {
        max-width: 250px;
    }
}

/* ── Reduced motion ── */

@media (prefers-reduced-motion: reduce) {
    .bhls-pulse {
        animation: none;
        opacity: 0.8;
    }
}
