/* ============================================================
   Amboss Liveticker – Frontend Styles
   Vereinsfarben: Dunkelblau #1a1a2e, Rot #c0392b, Weiß #fff
   ============================================================ */

/* FIXIERTES BANNER – immer am oberen Rand */
#amboss-ticker-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 3px solid #c0392b;
    padding: 0;
}

/* Schiebe den Seiten-Body nach unten, damit der Inhalt nicht verdeckt wird */
body {
    margin-top: 68px !important;
}

/* Falls WordPress-Admin-Bar aktiv ist */
.admin-bar #amboss-ticker-bar {
    top: 32px;
}
.admin-bar body {
    margin-top: 100px !important;
}

/* INNER WRAPPER */
.amboss-ticker-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 8px 16px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    min-height: 62px;
}

/* STATUS BADGE */
.amboss-status-badge {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.amboss-live .amboss-status-badge {
    background: #c0392b;
    color: #fff;
    animation: amboss-pulse 1.8s ease-in-out infinite;
}

.amboss-halftime .amboss-status-badge {
    background: #e67e22;
    color: #fff;
}

.amboss-gameover .amboss-status-badge {
    background: #2c3e50;
    color: #ecf0f1;
    border: 1px solid #7f8c8d;
}

@keyframes amboss-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.6); }
    50%       { opacity: 0.85; box-shadow: 0 0 0 6px rgba(192, 57, 43, 0); }
}

/* SCOREBOARD */
.amboss-scoreboard {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* TEAM BLOCK */
.amboss-team {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-name {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    white-space: nowrap;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* QUARTER CELLS */
.quarter-scores {
    display: flex;
    gap: 4px;
}

.q-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    padding: 3px 8px;
    min-width: 34px;
    transition: background 0.3s;
}

.q-cell.active-q {
    background: rgba(192, 57, 43, 0.35);
    border-color: #c0392b;
    box-shadow: 0 0 8px rgba(192, 57, 43, 0.5);
}

.q-label {
    font-size: 9px;
    color: rgba(255,255,255,0.55);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.q-val {
    font-size: 16px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
}

/* TOTAL SCORE */
.total-score {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    min-width: 40px;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    line-height: 1;
}

/* DIVIDER : */
.score-divider {
    font-size: 28px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.4);
    padding-bottom: 2px;
}

/* ============================================================
   MOBIL – schmale Ansicht
   ============================================================ */
@media (max-width: 600px) {
    body {
        margin-top: 100px !important;
    }

    .amboss-ticker-inner {
        padding: 6px 10px;
        gap: 8px;
        min-height: 94px;
    }

    .team-name {
        font-size: 11px;
        max-width: 80px;
    }

    .q-cell {
        min-width: 26px;
        padding: 2px 5px;
    }

    .q-val {
        font-size: 13px;
    }

    .total-score {
        font-size: 26px;
        min-width: 30px;
    }

    .amboss-status-badge {
        font-size: 10px;
        padding: 3px 10px;
    }
}

/* ============================================================
   ADMIN VORSCHAU (kein fixed, kein body-margin)
   ============================================================ */
#amboss-ticker-preview {
    position: relative !important;
    border-radius: 8px;
    overflow: hidden;
}
