@charset "utf-8";
/* =====================================================
   Ron's WK Poule — Modern Stylesheet
   Drop-in vervanging voor Stylesheet/style-sheet.css
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Bebas+Neue&display=swap');

:root {
    --bg:            #0c1426;
    --bg-soft:       #131d36;
    --bg-soft-2:     #1a2746;
    --surface:       #ffffff;
    --text:          #1a2032;
    --text-soft:     #5a6378;
    --text-invert:   #ffffff;
    --border:        #e2e6ee;
    --border-dark:   #25324f;

    --primary:       #0c2461;
    --primary-2:     #1e3a8a;
    --accent:        #f97316;
    --accent-2:      #fb923c;
    --accent-soft:   #fff3e6;
    --pitch:         #16a34a;
    --danger:        #dc2626;
    --gold:          #f59e0b;

    --radius:        10px;
    --radius-sm:     6px;
    --shadow-sm:     0 1px 3px rgba(12,20,38,.08);
    --shadow:        0 6px 20px -6px rgba(12,20,38,.18);
    --shadow-lg:     0 20px 40px -12px rgba(12,20,38,.35);
    --transition:    all .25s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
#wrap { min-height: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', 'Calibri', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
      radial-gradient(1200px 600px at 80% -10%, rgba(249,115,22,.10), transparent 60%),
      radial-gradient(900px 500px at -10% 110%, rgba(30,58,138,.45), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* --- Headings --- */
h1, h2, h3, h4, h5 {
    font-family: 'Bebas Neue', 'Inter', sans-serif;
    color: var(--primary);
    text-align: left;
    letter-spacing: .02em;
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 .6em;
}
h1 { font-size: 2.4em; }
h2 {
    font-size: 2em;
    padding-bottom: .35em;
    border-bottom: 3px solid var(--accent);
    display: block;
    width: 100%;
    margin-bottom: 1em;
}
h3 { font-size: 1.5em; color: var(--primary-2); }
h4 { font-size: 1.2em; color: var(--text); font-family: 'Inter', sans-serif; font-weight: 600; }
h5 { font-size: 1.05em; color: var(--text); font-family: 'Inter', sans-serif; font-weight: 600; }

span  { color: var(--accent); font-weight: 600; }
span2 { color: #ffffff; }
span3 {
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 1em;
    text-align: center;
    display: inline-block;
}

.kleur {
    color: var(--text);
    background-color: #f5f7fb;
    border-radius: var(--radius-sm);
    padding: 2px 6px;
}

.table { color: var(--text); }

.midden {
    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

/* --- Header --- */
#header {
    position: relative;
    height: 110px;
    background:
      linear-gradient(135deg, rgba(12,36,97,.92) 0%, rgba(30,58,138,.85) 60%, rgba(249,115,22,.55) 100%),
      #0c2461;
    color: #ffffff;
    font-family: 'Bebas Neue', 'Inter', sans-serif;
    font-size: 56px;
    font-weight: 400;
    letter-spacing: .05em;
    text-align: center;
    line-height: 110px;
    box-shadow: var(--shadow);
    z-index: 2;
    border-bottom: 4px solid var(--accent);
    text-shadow: 0 2px 6px rgba(0,0,0,.35);
}
/* WK-trofee links */
#header::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 24px;
    transform: translateY(-50%);
    width: 90px;
    height: 90px;
    background: url(../Images/wk-trophy.png) no-repeat center / contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.4));
    pointer-events: none;
}
/* WK-trofee rechts (symmetrisch) */
#header::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    width: 90px;
    height: 90px;
    background: url(../Images/wk-trophy.png) no-repeat center / contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.4));
    pointer-events: none;
}

/* --- Navbar (links): compacte knoppen --- */
#navbar {
    width: 200px;
    position: absolute;
    top: 130px;
    left: 0;
    padding: 12px 12px;
    background: var(--bg-soft);
    color: var(--text-invert);
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: var(--shadow);
    font-family: 'Inter', sans-serif;
    font-size: .85em;
    z-index: 2;
}
#navbar a, #navbar a:link, #navbar a:visited {
    display: block;
    color: #cdd5e6;
    text-decoration: none;
    padding: 5px 10px;
    margin: 1px 0;
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
    transition: var(--transition);
    font-weight: 500;
    line-height: 1.25;
    font-size: .92em;
}
#navbar a:hover {
    background: rgba(249,115,22,.12);
    color: #ffffff;
    border-left-color: var(--accent);
    transform: translateX(2px);
}

#navbar .button {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 6px 10px;
    font-size: 12.5px;
    margin-bottom: 4px;
    letter-spacing: .02em;
    box-shadow: 0 2px 6px -2px rgba(249,115,22,.45);
}

/* --- Toolbar (rechts) --- */
#border-toolbar {
    position: absolute;
    top: 130px;
    right: 0;
    width: 220px;
    padding: 0 14px;
    font-size: .85em;
    color: var(--accent);           /* waarden = oranje */
    z-index: 2;
}
/* Koppen/labels blijven wit, alle andere tekst oranje */
#border-toolbar h1,
#border-toolbar h2,
#border-toolbar h3,
#border-toolbar h4,
#border-toolbar h5,
#border-toolbar b,
#border-toolbar strong,
#border-toolbar label {
    color: #ffffff;
}
/* Zorg dat ook losse tekst-nodes, p, div, span in de toolbar oranje zijn */
#border-toolbar p,
#border-toolbar div,
#border-toolbar span,
#border-toolbar td,
#border-toolbar li {
    color: var(--accent);
}
#border-toolbar a,
#border-toolbar a:link,
#border-toolbar a:visited {
    color: var(--accent);
    text-decoration: none;
}
#border-toolbar a:hover { color: var(--accent-2); }

#toolbar {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #ffffff;
    width: 220px;
    position: absolute;
    top: 130px;
    right: 0;
    padding: 14px;
    border-radius: var(--radius) 0 0 var(--radius);
    box-shadow: var(--shadow);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    z-index: 2;
}

/* --- Main content --- */
#main-content {
    position: relative;
    overflow: auto;
    background: var(--surface);
    min-height: 650px;
    margin: 24px 240px 24px 220px;
    padding: 32px 36px 90px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    color: var(--text);
    font-weight: 400;
    z-index: 1;
}

#main-content a, #main-content a:link, #main-content a:visited {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}
#main-content a:hover {
    color: var(--primary-2);
    border-bottom-color: var(--accent);
}

/* --- Footer --- */
#footer {
    position: relative;
    background:
      linear-gradient(135deg, rgba(12,36,97,.92) 0%, rgba(30,58,138,.85) 60%, rgba(249,115,22,.55) 100%),
      var(--primary);
    color: #ffffff;
    margin: 0 240px 0 220px;
    padding: 14px 20px;
    text-align: center;
    font-size: .85em;
    letter-spacing: .04em;
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: var(--shadow);
    clear: both;
    border-top: 4px solid var(--accent);
    text-shadow: 0 2px 6px rgba(0,0,0,.35);
}
#footer a, #footer a:link, #footer a:visited { color: var(--accent-2); }
#footer a:hover { color: #ffffff; }

/* --- Form elements --- */
input, textarea, select {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    transition: var(--transition);
    outline: none;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(249,115,22,.18);
}
input[type="number"] {
    width: 56px;
    text-align: center;
    font-weight: 600;
    font-size: 1.05em;
}
input[type="checkbox"], input[type="radio"] {
    accent-color: var(--accent);
    width: auto;
    box-shadow: none;
}
input[type="submit"], input[type="button"] {
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #ffffff;
    border: none;
    font-weight: 600;
    padding: 11px 22px;
    min-width: 180px;
    border-radius: var(--radius-sm);
    letter-spacing: .03em;
    font-size: 14px;
    box-shadow: 0 4px 12px -4px rgba(249,115,22,.45);
}
input[type="submit"]:hover, input[type="button"]:hover {
    background: linear-gradient(135deg, var(--accent-2) 0%, #fdba74 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -4px rgba(249,115,22,.55);
}

/* input[type="image"] — voor de Verwerk-knop: zelfde stijl als .button */
input[type="image"] {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    border: none;
    border-radius: var(--radius-sm);
    padding: 11px 22px;
    min-width: 180px;
    min-height: 42px;
    box-shadow: 0 4px 12px -4px rgba(249,115,22,.45);
    cursor: pointer;
    transition: var(--transition);
}
input[type="image"]:hover {
    background: linear-gradient(135deg, var(--accent-2) 0%, #fdba74 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -4px rgba(249,115,22,.55);
}

textarea { width: 100%; min-height: 80px; resize: vertical; }

/* --- Tabellen --- */
table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin: 14px 0;
    background: #ffffff;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    color: var(--text);
}
th {
    background: var(--primary);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-align: left;
    padding: 10px 12px;
    font-size: .85em;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-bottom: 3px solid var(--accent);
}
td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafbfd; }
tbody tr:nth-child(even) td { background: #f7f9fc; }
tbody tr:nth-child(even):hover td { background: #f0f3f9; }

/* --- Buttons (.button class) --- */
.button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #ffffff !important;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    height: auto;
    padding: 11px 22px;
    width: auto;
    min-width: 180px;
    border-radius: var(--radius-sm);
    border: none;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    margin-bottom: 6px;
    letter-spacing: .03em;
    box-shadow: 0 4px 12px -4px rgba(249,115,22,.45);
    transition: var(--transition);
}
.button:hover {
    background: linear-gradient(135deg, var(--accent-2) 0%, #fdba74 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -4px rgba(249,115,22,.55);
    text-decoration: none;
}
.button:active { transform: translateY(0); }

.button.secondary {
    background: var(--bg-soft);
    color: #ffffff !important;
    box-shadow: none;
}
.button.secondary:hover {
    background: var(--primary-2);
}

/* --- Algemene links --- */
a, a:link, a:visited { color: var(--accent); text-decoration: none; }
a:hover { color: var(--primary-2); }

img { max-width: 100%; height: auto; vertical-align: middle; }

/* --- Responsive --- */
@media (max-width: 980px) {
    #header {
        height: auto;
        font-size: 36px;
        line-height: 1.2;
        padding: 18px 90px;
    }
    #header::before {
        width: 60px;
        height: 60px;
        left: 14px;
    }
    #header::after {
        width: 60px;
        height: 60px;
        right: 14px;
    }
    #navbar, #border-toolbar, #toolbar {
        position: static;
        width: auto;
        margin: 12px;
        border-radius: var(--radius);
    }
    #main-content {
        margin: 12px;
        padding: 20px 18px 60px;
    }
    #footer {
        margin: 0 12px 12px;
    }
    h1 { font-size: 1.9em; }
    h2 { font-size: 1.6em; }
    table, thead, tbody, th, td, tr { font-size: .92em; }
    #main-content > table,
    #main-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    #header { font-size: 28px; padding-left: 70px; padding-right: 70px; }
    #header::before { width: 50px; height: 50px; }
    #header::after { width: 50px; height: 50px; }
    .button { width: 100%; min-width: 0; }
    input[type="number"] { width: 50px; }
}

/* =====================================================
   OVERRIDES v04
   1) Groen in tabellen vervangen door blauw (primary-2)
   2) overzichtvoorspellingen: alle land-cellen oranje
   ===================================================== */

/* Groene achtergronden / borders → blauw */
table[bgcolor="green"],
table[bgcolor="#008000"],
table[bgcolor="#006400"],
th[bgcolor="green"], th[bgcolor="#008000"], th[bgcolor="#006400"],
tr[bgcolor="green"], tr[bgcolor="#008000"], tr[bgcolor="#006400"],
td[bgcolor="green"], td[bgcolor="#008000"], td[bgcolor="#006400"],
.groen, .green, tr.groen, tr.green, td.groen, td.green, th.groen, th.green {
    background-color: var(--primary-2) !important;
    color: #ffffff !important;
    border-color: var(--primary-2) !important;
}

/* Eindstand-/poule-tabellen met groene titelbalk → blauw */
table th,
table thead td,
table caption {
    background: var(--primary-2);
    color: #ffffff;
    border-bottom: 3px solid var(--accent);
}

/* Gekleurde (highlight) rijen die voorheen groen waren */
tr.highlight td,
tr.kleur td,
tr.gekleurd td,
tr.gekleurde td,
tr.gekleurde-rij td,
tr.kwalificatie td,
tr.qualified td,
tr.door td,
td.highlight, td.kleur, td.gekleurd, td.qualified, td.door {
    background-color: hsl(217 91% 92%) !important; /* zacht blauw */
    color: var(--text) !important;
}

/* overzichtvoorspellingen: zorg dat ALLE land-cellen oranje zijn,
   niet alleen om-en-om. We overschrijven de zebra-striping voor
   tabellen met de class .voorspellingen, .overzicht of .landen. */
table.voorspellingen tbody tr td,
table.overzicht tbody tr td,
table.landen tbody tr td,
table.voorspellingen tbody tr:nth-child(even) td,
table.overzicht tbody tr:nth-child(even) td,
table.landen tbody tr:nth-child(even) td,
table.voorspellingen tbody tr:nth-child(odd) td,
table.overzicht tbody tr:nth-child(odd) td,
table.landen tbody tr:nth-child(odd) td {
    background-color: var(--accent-soft) !important;
    color: var(--text) !important;
}

/* Hover blijft subtiel */
table.voorspellingen tr:hover td,
table.overzicht tr:hover td,
table.landen tr:hover td {
    background-color: #ffe6cc !important;
}

/* =====================================================
   OVERRIDES v05 — exacte inline BGCOLOR-codes uit PHP
   ===================================================== */

/* Titelbalk in tabellen (eindstand2008.php, subpoule.php, e.a.):
   BGCOLOR='#04879b' (teal) → blauw */
tr[bgcolor="#04879b"],
tr[bgcolor="#04879B"],
td[bgcolor="#04879b"],
td[bgcolor="#04879B"],
th[bgcolor="#04879b"],
th[bgcolor="#04879B"] {
    background-color: var(--primary-2) !important;
    color: #ffffff !important;
}
tr[bgcolor="#04879b"] td,
tr[bgcolor="#04879B"] td {
    background-color: var(--primary-2) !important;
    color: #ffffff !important;
}

/* Gekleurde data-rijen: BGCOLOR='#d7e9ed' (lichtteal) → zacht blauw */
tr[bgcolor="#d7e9ed"],
tr[bgcolor="#D7E9ED"],
td[bgcolor="#d7e9ed"],
td[bgcolor="#D7E9ED"] {
    background-color: hsl(217 91% 94%) !important;
    color: var(--text) !important;
}
tr[bgcolor="#d7e9ed"] td,
tr[bgcolor="#D7E9ED"] td {
    background-color: hsl(217 91% 94%) !important;
    color: var(--text) !important;
}

/* Tabel-achtergrond BGCOLOR="#DEECF0" (lichtteal) → zacht blauw */
table[bgcolor="#DEECF0"],
table[bgcolor="#deecf0"] {
    background-color: hsl(217 60% 97%) !important;
}

/* overzichtvoorspellingen.php: ALLE land-cellen met BGCOLOR="#D35A1B"
   moeten oranje blijven, ook bij even/odd zebra-striping.
   Attribuut-selector heeft hogere specificiteit dan tbody tr:nth-child. */
td[bgcolor="#D35A1B"],
td[bgcolor="#d35a1b"],
tbody tr:nth-child(even) td[bgcolor="#D35A1B"],
tbody tr:nth-child(even) td[bgcolor="#d35a1b"],
tbody tr:nth-child(odd) td[bgcolor="#D35A1B"],
tbody tr:nth-child(odd) td[bgcolor="#d35a1b"],
tr:hover td[bgcolor="#D35A1B"],
tr:hover td[bgcolor="#d35a1b"] {
    background-color: var(--accent) !important;
    color: #ffffff !important;
    font-weight: 600;
}

/* Tabel met class="kleur" in overzichtvoorspellingen: zorg dat lege cellen
   de zachte achtergrond houden en niet de zebra-striping overnemen */
table.kleur tbody tr:nth-child(even) td,
table.kleur tbody tr:nth-child(odd) td,
table.kleur tr:hover td {
    background-color: transparent !important;
}
table.kleur tbody tr:nth-child(even) td[bgcolor="#D35A1B"],
table.kleur tbody tr:nth-child(odd) td[bgcolor="#D35A1B"],
table.kleur tr:hover td[bgcolor="#D35A1B"] {
    background-color: var(--accent) !important;
    color: #ffffff !important;
}


/* =========================================================
   RESPONSIVE: mobiel & tablet
   Zorgt dat de site fatsoenlijk schaalt op kleine schermen.
   ========================================================= */

/* Basis: voorkom horizontale overflow en laat afbeeldingen meeschalen */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Tabellen scrollbaar maken op kleine schermen i.p.v. de pagina te breken */
table {
    max-width: 100%;
    border-collapse: collapse;
}
.table-wrap, .tabel-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ===== Tablet (≤ 1024px, iPad) ===== */
@media (max-width: 1024px) {
    body {
        font-size: 15px;
    }
    header, .header, footer, .footer, main, .container, .content, .wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        padding-left: 16px;
        padding-right: 16px;
    }
    nav ul, .menu, .navigatie {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    table {
        font-size: 14px;
    }
    th, td {
        padding: 6px 8px !important;
    }
}

/* ===== Mobiel (≤ 768px) ===== */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        line-height: 1.45;
    }
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.25rem !important; }
    h3 { font-size: 1.1rem !important; }

    header, .header {
        padding: 12px 14px !important;
        text-align: center;
    }
    header img, .header img, .logo {
        max-height: 60px;
        width: auto;
    }

    /* Navigatie als verticale stack */
    nav, .nav, .menu, .navigatie {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 4px;
    }
    nav a, .nav a, .menu a, .navigatie a {
        display: block;
        width: 100%;
        padding: 10px 12px;
        text-align: center;
        border-radius: 6px;
    }

    /* Maak alle tabellen horizontaal scrollbaar zonder layout te breken */
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        font-size: 13px;
    }
    th, td {
        padding: 5px 7px !important;
    }

    /* Formulieren: input/select/textarea volledig breed */
    input, select, textarea, button {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 16px; /* voorkomt iOS auto-zoom */
    }
    form {
        width: 100%;
    }

    /* Footer ruimer op mobiel */
    footer, .footer {
        padding: 16px 14px !important;
        text-align: center;
        font-size: 13px;
    }

    /* Twee-kolom layouts → 1 kolom */
    .row, .columns, .grid, .twee-koloms, .drie-koloms {
        display: flex;
        flex-direction: column !important;
        width: 100% !important;
    }
    .col, .column, .kolom {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }
}

/* ===== Klein mobiel (≤ 420px) ===== */
@media (max-width: 420px) {
    body { font-size: 13px; }
    header img, .logo { max-height: 48px; }
    th, td { padding: 4px 5px !important; font-size: 12px; }
}

/* ============================================================
   FIX: voorkom dat getallen (zoals 'vorige rank' > 100) op een
   tweede regel afbreken in standen-/eindstand-tabellen.
   ============================================================ */
table th,
table td {
    white-space: nowrap;
}
/* Sta wel afbreken toe in cellen die expliciet bedoeld zijn voor lange tekst */
table td.wrap,
table th.wrap,
table td[colspan] {
    white-space: normal;
}
