/* =========================================================
   CORE.CSS — BASIS, LAYOUT, TYPOGRAFIE, UTILITIES
   ========================================================= */

/* --- RESET & BASIS --- */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    background: #000;
    color: #F3D459;
}

/* Links */
a {
    color: #F3D459;
    text-decoration: none;
}
a:hover {
    color: #1BB1E7;
}

/* Paragrafen */
p { color: inherit; }

/* Utility: tekst centreren */
.text-center { text-align: center; }

/* Utility: flex helpers */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-center { display: flex; justify-content: center; align-items: center; }

/* Utility: spacing */
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }

/* Utility: hidden */
.hidden { display: none !important; }

/* Utility: full width */
.full-width { width: 100%; }

/* --- LAYOUT CONTAINERS --- */
.main {
    margin-left: 200px;
    padding: 20px;
    min-height: 100vh;
    box-sizing: border-box;
    background: #000;
    color: #F3D459;
}

/* --- SIDEBAR --- */
.sidenav {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 100%;
    background: #111;
    padding-top: 20px;
    z-index: 10;
}

.sidenav a {
    padding: 6px 16px;
    font-size: 22px;
    color: #F3D459;
    display: block;
}
.sidenav a:hover {
    color: #1BB1E7;
}

/* --- MOBIEL MENU --- */
.hamburger {
    font-size: 30px;
    color: #F3D459;
    background: #7A263A;
    padding: 10px;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    border-radius: 5px;
    display: none;
}

.mob-menu {
    display: none;
    background: #111;
    padding: 10px;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    z-index: 999;
}

.mob-menu a {
    display: block;
    color: #F3D459;
    padding: 8px 16px;
}

/* --- FORMULIEREN --- */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
    padding: 8px;
    font-size: 16px;
    border-radius: 4px;
}

/* --- ALERTS --- */
.alert {
    background: #f0f0f0;
    border-left: 5px solid #0077cc;
    padding: 10px;
    margin: 20px auto;
    max-width: 600px;
    border-radius: 6px;
    color: #000;
    font-weight: bold;
}

.alert.error {
    border-color: red;
    background: #ffe5e5;
}

.alert-box,
.takeover-banner {
    padding: 10px;
    margin: 10px;
    border-radius: 6px;
    font-weight: bold;
    background: #ffeeba;
    color: #856404;
}

/* --- RESPONSIVE --- */
@media screen and (max-width: 768px) {

    .main {
        margin-left: 0;
        padding: 10px;
    }

    .hamburger {
        display: block;
    }

    .sidenav {
        display: none;
    }

    .login-container {
        width: 90%;
        padding: 20px;
    }
}

@media screen and (max-height: 450px) {
    .sidenav { padding-top: 15px; }
    .sidenav a { font-size: 18px; }
}


/* ===================================== */
/* PAGE CONTAINER */
/* ===================================== */

.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #7A263A;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1rem;
    margin-bottom: 25px;
    color: #FDF7E3;
}

/* ===================================== */
/* MATCH LIST */
/* ===================================== */

.match-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match-row {
    display: grid;
    grid-template-columns: 90px 1fr 60px 60px 1fr;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 2px solid #7A263A;
    border-radius: 8px;
    background: #FDF7E3; /* zacht goud */
}

.match-locked {
    opacity: 0.55;
    background: #EEE;
}

/* ===================================== */
/* TEAMS */
/* ===================================== */

.team-block {
    display: flex;
    align-items: center;
    gap: 6px;
}

.team-name {
    font-weight: 600;
}

.flag {
    width: 32px;
    height: 22px;
    border: 1px solid #ccc;
}

/* ===================================== */
/* SCORE INPUTS */
/* ===================================== */

.score-input {
    width: 55px;
    padding: 6px;
    font-size: 1.1rem;
    text-align: center;
    border: 2px solid #7A263A;
    border-radius: 6px;
}

.score-input:disabled {
    background: #DDD;
    color: #666;
}

/* ===================================== */
/* SAVE BUTTONS */
/* ===================================== */

.admin-save-btn {
    background: #7A263A;
    color: #F3D459;
    padding: 10px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    margin: 15px 0;
    display: inline-block;
}

.admin-save-btn:hover {
    background: #9c2f4c;
}

.top-save {
    margin-bottom: 25px;
}

/* ===================================== */
/* SUCCESS MESSAGE */
/* ===================================== */

.admin-success {
    background: #DFF6DD;
    border-left: 5px solid #4CAF50;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-weight: 600;
}

/* ===================================== */
/* MATCH LIST FIXES */
/* ===================================== */

.match-row {
    display: grid;
    grid-template-columns: 90px 1.2fr 55px 55px 1.2fr;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 2px solid #7A263A;
    border-radius: 8px;
    background: #FFF; /* wit, geen geel */
    color: #222; /* donkere tekst */
}

/* Locked matches */
.match-locked {
    opacity: 0.55;
    background: #EEE;
}

/* ===================================== */
/* TEAMS */
/* ===================================== */

.team-block {
    display: flex;
    align-items: center;
    gap: 6px;
}

.team-block.home {
    justify-content: flex-end;   /* rechts uitlijnen */
    text-align: right;
}

.team-block.away {
    justify-content: flex-start; /* links uitlijnen */
}

.team-name {
    font-weight: 600;
    color: #222;
}

.flag {
    width: 32px;
    height: 22px;
    border: 1px solid #ccc;
}



/* ===================================== */
/* MATCH ROWS - WH STYLE */
/* ===================================== */

.match-row {
    display: grid;
    grid-template-columns: 90px 1.4fr 45px 45px 1.4fr;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 2px solid #7A263A;
    border-radius: 8px;
    background: #F8F1D4; /* zacht goud, WH-stijl */
    color: #222;
}

.match-locked {
    opacity: 0.55;
    background: #E6DDBA; /* donkerder goud voor locked */
}

/* ===================================== */
/* TEAMS */
/* ===================================== */

.team-block {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-block.home {
    justify-content: flex-end;
    text-align: right;
}

.team-block.away {
    justify-content: flex-start;
}

.team-name {
    font-weight: 600;
    color: #222;
}

.flag {
    width: 32px;
    height: 22px;
    border: 1px solid #ccc;
}

/* ===================================== */
/* SCORE INPUTS */
/* ===================================== */

.score-input {
    width: 42px;
    padding: 5px;
    font-size: 1.1rem;
    text-align: center;
    border: 2px solid #7A263A;
    border-radius: 6px;
    background: #FFF;
}

.score-input:disabled {
    background: #DDD;
    color: #666;
}


/* ===================================== */
/* STAGE HEADERS */
/* ===================================== */

.stage-header {
    margin: 30px 0 12px;
    padding: 10px 14px;
    background: #E6F2FF; /* zacht WH-blauw */
    border-left: 5px solid #7A263A; /* claret accent */
    border-radius: 6px;

    font-size: 1.25rem;
    font-weight: 800;
    color: #7A263A;
    letter-spacing: 0.5px;
}

/* ===================================== */
/* QUALIFIED BOX */
/* ===================================== */

.qualified-box {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 10px;
}

.qualified-box label {
    margin: 0 15px;
    font-weight: 600;
    cursor: pointer;
}

/* ===================================== */
/* LEADERBOARD TABLE */
/* ===================================== */

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    font-size: 1rem;
}

.leaderboard-table thead {
    background: #E6F2FF; /* lichtblauw */
    color: #7A263A;      /* claret */
}

.leaderboard-table th {
    padding: 12px;
    font-weight: 800;
    border-bottom: 3px solid #7A263A;
    text-align: left;
}

.leaderboard-table td {
    padding: 10px;
    border-bottom: 1px solid #DDD;
}

.rank-cell {
    font-weight: 800;
    color: #7A263A;
    width: 40px;
}

.flag-icon {
    width: 28px;
    height: 20px;
    margin-right: 6px;
    border: 1px solid #ccc;
}

.total-cell {
    font-weight: 800;
    color: #7A263A;
}

.form-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 420px;
}

.form-label {
    font-weight: 700;
    color: #7A263A;
    margin-bottom: 4px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #7A263A;
    border-radius: 6px;
    font-size: 1rem;
    background: #F8F1D4; /* zacht goud */
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #B48A2C; /* goudaccent */
    background: #FFF8DD;
}

.success-card {
    max-width: 480px;
    margin: 40px auto;
    padding: 30px;
    background: #F8F1D4; /* zacht goud */
    border: 3px solid #7A263A; /* claret */
    border-radius: 10px;
    text-align: center;
}

.success-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 22px;
    background: #7A263A;
    color: white;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.2s;
}

.success-btn:hover {
    background: #B48A2C; /* goudaccent */
}

.vbp-logo-top {
    text-align: center;
    margin-bottom: 20px;
}

.vbp-logo-top img {
    height: 200px;
    opacity: 0.9;
}

.hidden-country {
    color: #7A263A;
    font-style: italic;
    opacity: 0.7;
}

.button-change-country {
    background-color: #7A263A; /* WH claret */
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 6px;
    text-decoration: none;
    font-weight: 600;
}

.button-change-country:hover {
    background-color: #5a1c2c;
}

.country-select-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.country-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
}

.country-option:hover {
    background-color: #f5f5f5;
}

.flag-icon {
    height: 22px;
}

.difficulty {
    color: #1BB1E7; /* WH light blue */
    font-size: 0.85rem;
    margin-left: auto;
    font-weight: 600;
}

#country_id {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    min-width: 260px;
}

.button-change-country {
    background-color: #1BB1E7; /* WH light blue */
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.button-change-country:hover {
    background-color: #1490bf;
}

.register-button-container {
    text-align: center;
    margin-top: 15px;
}

.register-button {
    display: inline-block;
    background-color: #7A263A; /* WH claret */
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.register-button:hover {
    background-color: #5a1c2c;
}


/* Rules page: fix readability */
.rules-box {
    background: #F8F1D4; /* zacht goud, WH-stijl */
    color: #222 !important; /* OVERRULE geel */
    padding: 25px;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.rules-box h2 {
    color: #7A263A !important; /* claret */
    margin-top: 25px;
}

.rules-box p,
.rules-box li,
.rules-box ul {
    color: #222 !important; /* donkere tekst */
}

.important-note {
    background-color: #f9e6a8; /* zacht goud */
    border-left: 5px solid #8c1c13; /* claret */
    padding: 12px 15px;
    margin: 15px 0 20px 0;
    font-size: 15px;
    line-height: 1.4;
    color: #333;
    border-radius: 4px;
}

.login-title {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    margin-bottom: 20px;
}

.login-title .subtitle {
    font-size: 20px;
    font-weight: 600;
    color: #8c1c13; /* claret */
}

.login-title .login-sub {
    font-size: 18px;
    font-weight: 500;
    color: #444;
}

.title-block {
    background: #8c1c13; /* claret */
    color: white;
    padding: 18px 10px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 4px solid #f0d98c; /* gold accent */
}

.title-main {
    font-size: 26px;
    font-weight: 700;
}

.title-sub {
    font-size: 18px;
    font-weight: 500;
    margin-top: 4px;
}

.title-login {
    font-size: 16px;
    font-weight: 400;
    margin-top: 6px;
    opacity: 0.9;
}

.language-switcher {
    text-align: left;
    margin-bottom: 10px;
}

.language-switcher select {
    padding: 4px 6px;
    border-radius: 4px;
}

