/* =========================================================
   World Cup 2026 Score Widget — style.css
   Desain: hijau-putih sepak bola, kompak untuk sidebar
   ========================================================= */

.wcw-container {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 13px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    margin-bottom: 10px;
}

/* ── Tab navigasi ── */
.wcw-tabs {
    display: flex;
    background: #0a6e3f; /* hijau FIFA */
    padding: 0;
}

.wcw-tab {
    flex: 1;
    padding: 8px 2px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,.75);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s;
    white-space: nowrap;
}

.wcw-tab:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
}

.wcw-tab.active {
    background: #fff;
    color: #0a6e3f;
    border-radius: 6px 6px 0 0;
    margin: 4px 3px 0;
    padding-top: 6px;
}

/* ── Area konten ── */
.wcw-content {
    padding: 8px 6px;
    min-height: 80px;
}

/* ── Loading ── */
.wcw-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
    color: #888;
    font-size: 12px;
}

.wcw-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #ddd;
    border-top-color: #0a6e3f;
    border-radius: 50%;
    animation: wcw-spin .7s linear infinite;
}

@keyframes wcw-spin { to { transform: rotate(360deg); } }

/* ── Kartu pertandingan ── */
.wcw-match {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 8px 8px 6px;
    margin-bottom: 6px;
    background: #fafafa;
    transition: background .15s;
}

.wcw-match:last-child { margin-bottom: 0; }
.wcw-match:hover { background: #f0f9f4; }

.wcw-match.live {
    border-color: #e53935;
    background: #fff8f8;
    animation: wcw-pulse 2s ease-in-out infinite;
}

@keyframes wcw-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(229,57,53,.25); }
    50%       { box-shadow: 0 0 0 4px rgba(229,57,53,.1); }
}

/* ── Info grup/babak ── */
.wcw-match-meta {
    font-size: 10px;
    color: #888;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* ── Skor row ── */
.wcw-score-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wcw-team {
    flex: 1;
    font-weight: 600;
    color: #222;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wcw-team.away { text-align: right; }

.wcw-score-box {
    display: flex;
    align-items: center;
    background: #0a6e3f;
    color: #fff;
    border-radius: 5px;
    padding: 2px 6px;
    font-weight: 700;
    font-size: 14px;
    min-width: 50px;
    justify-content: center;
    gap: 4px;
    letter-spacing: 1px;
}

.wcw-score-box.live-box {
    background: #e53935;
}

.wcw-score-sep {
    font-size: 12px;
    opacity: .7;
}

/* ── Status / waktu ── */
.wcw-match-status {
    font-size: 10px;
    text-align: center;
    margin-top: 4px;
    color: #666;
}

.wcw-match-status .live-label {
    color: #e53935;
    font-weight: 700;
}

/* ── Empty state ── */
.wcw-empty {
    text-align: center;
    padding: 18px 8px;
    color: #999;
    font-size: 12px;
}

.wcw-empty-icon { font-size: 28px; display: block; margin-bottom: 4px; }

/* ── Footer ── */
.wcw-footer {
    background: #f5f5f5;
    border-top: 1px solid #eee;
    padding: 5px 8px;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #aaa;
}

.wcw-last-update { font-style: italic; }

/* ── Scrollable jika banyak ── */
.wcw-content {
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cce8d8 transparent;
}

.wcw-content::-webkit-scrollbar { width: 4px; }
.wcw-content::-webkit-scrollbar-track { background: transparent; }
.wcw-content::-webkit-scrollbar-thumb { background: #cce8d8; border-radius: 4px; }
