/**
 * assets/css/live_score.css
 * Live-Score-Widget - kompakte Variante (nur Fahnen + Score + Status)
 */

/* Pulsierender Live-Punkt */
.live-dot {
    display:        inline-block;
    width:          10px;
    height:         10px;
    border-radius:  50%;
    background:     #e53935;
    margin-right:   6px;
    vertical-align: middle;
    animation:      live-pulse 1.4s ease-in-out infinite;
}

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

/* Tab-Leiste */
.live-tabs {
    display:       flex;
    flex-wrap:     wrap;
    gap:           6px;
    padding:       10px 16px;
    border-bottom: 2px solid var(--border-color, #e9ecef);
    list-style:    none;
    margin:        0;
}

/* Tab-Button */
.live-tab-btn {
    display:       flex;
    align-items:   center;
    gap:           4px;
    padding:       5px 10px;
    border:        2px solid var(--border-color, #dee2e6);
    border-radius: 20px;
    background:    transparent;
    cursor:        pointer;
    transition:    border-color .18s, background .18s;
}

.live-tab-btn .fi {
    font-size:   1.05rem;
    line-height: 1;
}

.live-tab-sep {
    font-size: 0.7rem;
    color:     var(--text-muted, #999);
}

.live-tab-btn.active,
.live-tab-btn:hover {
    border-color: #e53935;
    background:   rgba(229, 57, 53, 0.07);
}

/* Tab-Inhalte */
.live-tab-content {
    padding: 14px 16px 16px;
}

.live-tab-pane {
    display:         none;
    flex-direction:  column;
    align-items:     center;
    gap:             10px;
    animation:       live-fade-in .18s ease;
}

.live-tab-pane.active {
    display: flex;
}

@keyframes live-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0);   }
}

/* Score-Zeile: Fahne | Zahl : Zahl | Fahne */
.live-score-row {
    display:         flex;
    align-items:     center;
    justify-content: center;
    gap:             10px;
    width:           100%;
}

/* Fahnen in der Score-Zeile */
.live-flag-score {
    font-size:  2rem;
    line-height: 1;
    flex-shrink: 0;
}

/* Score-Zahlen */
.live-score-num {
    font-size:   2.6rem;
    font-weight: 800;
    color:       var(--primary-blue, #1a2540);
    min-width:   44px;
    text-align:  center;
    line-height: 1;
    transition:  transform .22s ease, color .22s ease;
}

.live-score-num.score-changed {
    transform: scale(1.28);
    color:     #e53935;
}

.live-score-sep {
    font-size:   2.2rem;
    font-weight: 700;
    color:       var(--text-muted, #adb5bd);
    line-height: 1;
}

/* Status-Badge */
.live-status-row {
    display:         flex;
    justify-content: center;
    width:           100%;
}

.live-status-badge {
    display:        inline-block;
    padding:        3px 12px;
    border-radius:  12px;
    font-size:      0.72rem;
    font-weight:    700;
    text-transform: uppercase;
    letter-spacing: .06em;
    background:     rgba(229, 57, 53, 0.1);
    color:          #e53935;
    border:         1px solid rgba(229, 57, 53, 0.3);
}

/* Countdown ausblenden wenn Live-Widget sichtbar */
#live-score-widget:not(.d-none) ~ #countdown-widget {
    display: none !important;
}

@media (max-width: 576px) {
    .live-score-num    { font-size: 2.2rem; }
    .live-flag-score   { font-size: 1.6rem; }
}
