/* ============================================================
   DUKETOWN.XYZ — Global Site Styles
   ============================================================ */

:root {
    --ac: #ffd400;
    --bg: #080808;
    --text: #e8e8e8;
    --text-muted: #888;
    --text-dim: #555;
    --border: #1e1e1e;
    --surface: rgba(4,4,4,0.55);
    --font: 'Courier New', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
}

body {
    padding-top: 48px;
}

/* ── Canvas achtergrond ── */
canvas#bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* ── Content wrapper ── */
#content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    background: var(--surface);
    border-radius: 4px;
}

/* ── Accent color ── */
.ac {
    color: var(--ac, #ffd400);
}

/* ── Page typografie ── */
.page-title {
    font-size: clamp(24px, 6vw, 52px);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #f5f5f5;
    line-height: 1;
    margin-bottom: 8px;
}

.page-divider {
    width: 100%;
    height: 2px;
    background: var(--ac, #ffd400);
    margin: 16px 0 32px;
    border-radius: 1px;
}

.page-sub {
    font-size: 10px;
    letter-spacing: 0.25em;
    color: var(--text-dim);
    margin-bottom: 16px;
}

/* ── Seizoen tabs ── */
#seizoenTabs {
    display: flex;
    gap: 6px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.seizoen-btn {
    background: none;
    border: 1px solid #1e1e1e;
    color: var(--text-dim);
    border-radius: 6px;
    padding: 6px 14px;
    font: 600 9px var(--font);
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: all 0.15s;
}

.seizoen-btn:hover {
    border-color: var(--ac);
    color: var(--text);
}

.seizoen-btn.active {
    background: var(--ac);
    color: #000;
    border-color: var(--ac);
}

/* ── Maand labels ── */
.maand {
    font-size: 9px;
    letter-spacing: 0.25em;
    color: var(--text-dim);
    padding: 28px 0 10px;
    border-bottom: 1px solid #1e1e1e;
}

/* ── Match grid ── */
.match {
    display: grid;
    grid-template-columns: minmax(160px, 210px) 1fr auto 56px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid #0d0d0d;
    gap: 16px;
}

.datum {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.datum-short { display: none; }
.datum-long { display: inline; }

.teams {
    font-size: 13px;
    letter-spacing: 0.04em;
}

.club-name {
    color: var(--ac, #ffd400);
    font-weight: 700;
}

.opp-name {
    color: var(--text);
}

.sep {
    color: #2a2a2a;
    margin: 0 8px;
}

.comp {
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    white-space: nowrap;
    text-align: right;
}

.tijd {
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
    white-space: nowrap;
    letter-spacing: 0.05em;
}

.uitslag {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    text-align: right;
}

.match.next {
    border-left: 2px solid var(--ac, #ffd400);
    margin-left: -2px;
    background: rgba(255, 255, 255, 0.015);
}

.match.next .datum { color: var(--text-dim); }
.match.next .tijd { color: var(--ac, #ffd400); }
.match.next .opp-name { color: #fff; }

/* ── Responsive match ── */
@media (max-width: 768px) {
    .match {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 3px 8px;
        padding: 12px 0;
    }
    .datum { grid-column: 1; grid-row: 1; }
    .teams { grid-column: 1; grid-row: 2; }
    .comp {
        grid-column: 2;
        grid-row: 2;
        font-size: 9px;
        text-align: right;
        align-self: end;
    }
    .teams .team-inline { display: none; }
    .teams .team-stack {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1px;
        padding: 2px 0;
    }
    .teams .team-stack span {
        display: block;
        text-align: center;
        width: 100%;
    }
    .tijd, .uitslag {
        grid-column: 2;
        grid-row: 1;
        text-align: right;
        font-size: 10px;
    }
    .datum-long { display: none; }
    .datum-short { display: inline; font-size: 10px; }
}

@media (min-width: 769px) {
    .teams .team-stack { display: none; }
}

/* ── Content pages (privacy, etc.) ── */
h2 {
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--ac, #ffd400);
    margin: 32px 0 10px;
    font-weight: 700;
}

p {
    font-size: 12px;
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 12px;
    letter-spacing: 0.03em;
}

a {
    color: var(--ac, #ffd400);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    margin: 10px 0 12px 20px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 2;
    letter-spacing: 0.03em;
}

.datum {
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 0.15em;
    margin-bottom: 32px;
}

/* ── Selection ── */
::selection {
    background: var(--ac);
    color: #000;
}
