/* ── WM 2026 Spielplan Plugin Styles ─────────────────────────────────────── */

.wm2026-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #0a0a18;
    color: #eee;
    border-radius: 12px;
    overflow: hidden;
    max-width: 960px;
    margin: 0 auto;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

/* ── Header ── */
.wm2026-header {
    background: linear-gradient(135deg, #0d1b3e 0%, #1a0a2e 50%, #0d1b3e 100%);
    padding: 22px 20px 18px;
    border-bottom: 2px solid #c9a227;
    text-align: center;
}
.wm2026-header-flags { font-size: 28px; margin-bottom: 6px; }
.wm2026-title {
    margin: 0 0 4px;
    font-size: 1.4em;
    font-weight: 900;
    color: #c9a227;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.wm2026-subtitle { margin: 0; color: #8899cc; font-size: 0.78em; }

/* ── Nav tabs ── */
.wm2026-nav {
    display: flex;
    background: #0d0d20;
    border-bottom: 1px solid #1e1e3a;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.wm2026-tab {
    padding: 11px 20px;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #667788;
    cursor: pointer;
    font-size: 0.85em;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
    font-family: inherit;
}
.wm2026-tab:hover { color: #aab; }
.wm2026-tab--active {
    color: #c9a227;
    border-bottom-color: #c9a227;
    font-weight: 700;
    background: #1a1a3e;
}

/* ── Panels ── */
.wm2026-panel { display: none; padding: 16px 14px; }
.wm2026-panel--active { display: block; }

/* ── Group nav buttons ── */
.wm2026-group-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.wm2026-group-btn {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid #222;
    background: #111128;
    color: #667788;
    cursor: pointer;
    font-size: 0.82em;
    transition: all .15s;
    font-family: inherit;
}
.wm2026-group-btn:hover { border-color: #3a6aaf; color: #99bbee; }
.wm2026-group-btn--active {
    background: #1e3a5f;
    color: #7ab3ff;
    border-color: #3a6aaf;
    font-weight: 700;
}

/* ── Match list container ── */
.wm2026-match-list {
    background: #0e0e24;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #1e1e3a;
}
.wm2026-match-group-header {
    background: #131330;
    padding: 7px 12px;
    color: #7ab3ff;
    font-weight: 700;
    font-size: 0.78em;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.wm2026-date-header {
    background: #131330;
    padding: 7px 12px;
    color: #c9a227;
    font-weight: 700;
    font-size: 0.78em;
    letter-spacing: 1px;
}

/* ── Single group match row ── */
.wm2026-match-row {
    display: grid;
    grid-template-columns: 36px 1fr auto 1fr 140px;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-bottom: 1px solid #1a1a2e;
    font-size: 0.82em;
    transition: background .1s;
}
.wm2026-match-row:last-child { border-bottom: none; }
.wm2026-match-row:hover { background: #10102a; }

.wm2026-group-badge {
    background: #1e3a5f;
    color: #7ab3ff;
    font-size: 0.75em;
    border-radius: 4px;
    padding: 2px 4px;
    text-align: center;
    font-weight: 700;
    white-space: nowrap;
}
.wm2026-team { display: flex; align-items: center; gap: 5px; }
.wm2026-team--home { justify-content: flex-end; }
.wm2026-team--away { justify-content: flex-start; }
.wm2026-team-name { color: #dde; }
.wm2026-flag { font-size: 1.15em; }

.wm2026-score-box {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}
.wm2026-score-input {
    width: 34px;
    height: 30px;
    text-align: center;
    border-radius: 4px;
    border: 1px solid #333;
    background: #1a1a2e;
    color: #fff;
    font-size: 0.92em;
    font-weight: 700;
    font-family: inherit;
    transition: border-color .15s;
    -moz-appearance: textfield;
}
.wm2026-score-input::-webkit-outer-spin-button,
.wm2026-score-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wm2026-score-input:focus { outline: none; border-color: #c9a227; }
.wm2026-score-input[readonly] { cursor: default; background: #111128; }
.wm2026-score-sep { color: #666; font-size: 0.8em; }

.wm2026-match-meta { color: #888; font-size: 0.72em; text-align: right; line-height: 1.4; }
.wm2026-match-meta .wm2026-venue { color: #555; font-size: 0.9em; }

/* ── Filter row ── */
.wm2026-filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.82em;
    color: #778;
}
.wm2026-filter-row select {
    background: #111128;
    color: #eee;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.9em;
    font-family: inherit;
    cursor: pointer;
}

/* ── KO match row ── */
.wm2026-ko-hint {
    background: #131330;
    border: 1px solid #1e1e3a;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.8em;
    color: #8899cc;
    margin-bottom: 16px;
}
.wm2026-ko-hint strong { color: #c9a227; }

.wm2026-ko-stage { margin-bottom: 22px; }
.wm2026-ko-stage-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.wm2026-ko-stage-line {
    height: 2px;
    flex: 1;
}
.wm2026-ko-stage-label {
    color: #fff;
    font-weight: 800;
    font-size: 0.82em;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.wm2026-ko-match {
    background: #12122a;
    border-radius: 8px;
    padding: 9px 12px;
    border: 1px solid rgba(255,255,255,.05);
    margin-bottom: 6px;
    display: grid;
    grid-template-columns: 52px 1fr auto 1fr 110px;
    align-items: center;
    gap: 8px;
    font-size: 0.82em;
}
.wm2026-ko-no {
    color: #888;
    font-size: 0.78em;
    line-height: 1.4;
}
.wm2026-ko-team-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    color: #e0e0ff;
    font-size: 0.9em;
    width: 100%;
    outline: none;
    font-family: inherit;
    padding: 2px 0;
    transition: border-color .15s;
}
.wm2026-ko-team-input:focus { border-bottom-color: #c9a227; }
.wm2026-ko-team-input[readonly] { cursor: default; border-bottom-color: transparent; }
.wm2026-ko-meta { color: #666; font-size: 0.72em; text-align: right; line-height: 1.5; }

/* ── Save bar (admin only) ── */
#wm2026-save-bar {
    background: #0d0d20;
    border-top: 1px solid #1e1e3a;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}
#wm2026-save-status { font-size: 0.8em; color: #7ab3ff; }
.wm2026-btn-save {
    background: #c9a227;
    color: #000;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 0.85em;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}
.wm2026-btn-save:hover { background: #e0b840; }
.wm2026-btn-save:disabled { background: #555; color: #999; cursor: default; }

.wm2026-footer-note {
    text-align: center;
    padding: 10px;
    color: #333;
    font-size: 0.72em;
    margin: 0;
    background: #0a0a18;
}

/* ── Responsive ── */
@media (max-width: 620px) {
    .wm2026-match-row {
        grid-template-columns: 28px 1fr auto 1fr;
        grid-template-rows: auto auto;
    }
    .wm2026-match-meta { display: none; }
    .wm2026-ko-match {
        grid-template-columns: 40px 1fr auto 1fr;
        grid-template-rows: auto auto;
    }
    .wm2026-ko-meta { display: none; }
    .wm2026-title { font-size: 1.1em; }
}
