/* =========================================================
   COMPONENTS.CSS — UI ELEMENTEN VOOR FRONT-END
   ========================================================= */


/* =========================================================
   TABS
   ========================================================= */
.tab-container {
    text-align: center;
    margin-bottom: 1em;
}

.tab-button {
    background: #1BB1E7;
    border: none;
    color: #fff;
    padding: 0.6em 1.2em;
    margin: 0 0.2em;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.tab-button.active {
    background: #7A263A;
    border: 2px solid #1BB1E7;
}

.tab-content { display: none; }
.tab-content.active { display: block; }



/* =========================================================
   MATCH CARDS (PRONO)
   ========================================================= */
.match-card {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background: #7A263A;
    color: #FFD700;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 6px;
    font-size: 0.95em;
}

.team {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.team.right { justify-content: flex-end; text-align: right; }

.club-logo {
    height: 40px;
}

.score-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-inputs input {
    width: 40px;
    text-align: center;
    font-size: 1em;
}



/* =========================================================
   MATCH ROWS (GROUP STAGE)
   ========================================================= */
.match-row {
    display: grid;
    grid-template-columns: 70px 1fr 48px 48px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #444;
    font-size: 0.95em;
}

.team.home {
    justify-content: flex-end;
    text-align: right;
}

.team.away {
    justify-content: flex-start;
    text-align: left;
}

.flag {
    width: 24px;
    height: 16px;
    object-fit: cover;
}



/* =========================================================
   PUNTEN BADGES
   ========================================================= */
.punten {
    font-weight: bold;
    padding: 0.2em 0.6em;
    border-radius: 4px;
    display: inline-block;
}

.punten.score-10 { background: #1BB1E7; color: #fff; }
.punten.score-6  { background: #c8e6c9; color: #2e7d32; }
.punten.score-2  { background: #ffe0b2; color: #e65100; }
.punten.score-3  { background: #fff9c4; color: #f57f17; }
.punten.score-0  { background: #ffcdd2; color: #b71c1c; }



/* =========================================================
   SPEELDAG SELECTOR
   ========================================================= */
.speeldag-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 1.4em;
    margin: 20px 0;
}

.speeldag-label {
    font-weight: bold;
    background: #7A263A;
    color: #FFD700;
    padding: 6px 12px;
    border-radius: 6px;
}

.deadline-info {
    text-align: center;
    color: #ffcccc;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.speeldag-scroll {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 10px;
    background: #7A263A;
    border-radius: 6px;
    margin-bottom: 20px;
}

.speeldag-link {
    color: #FFD700;
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: bold;
    white-space: nowrap;
}

.speeldag-link:hover,
.speeldag-link.active {
    background: #FFD700;
    color: #7A263A;
}



/* =========================================================
   MATCH SELECTOR (SHOW PRONOS)
   ========================================================= */
.match-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-bottom: 1em;
}

.match-button {
    padding: 0.5em 1em;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    background: #800000;
    color: #2BAEE5;
    font-weight: bold;
}

.match-button:hover {
    background: #660000;
}

.match-button.active {
    background: #2BAEE5;
    color: #F3D459;
}

.match-detail {
    border: 1px solid #ccc;
    padding: 1em;
    background: #800000;
    margin-bottom: 1em;
}

.match-detail.hidden { display: none; }



/* =========================================================
   PRIJZEN BLOKKEN
   ========================================================= */
.prijzen-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.prijsblok {
    background: #7A263A;
    border: 2px solid #1BB1E7;
    border-radius: 8px;
    padding: 15px;
    width: 280px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    color: #FFF;
}

.prijsblok h3 {
    margin-top: 0;
    color: #FFD700;
}

.prijsblok li {
    margin-bottom: 5px;
    color: #F3D459;
}

.prijsblok:hover {
    transform: scale(1.03);
    transition: 0.2s;
    box-shadow: 0 0 10px #1BB1E7;
}



/* =========================================================
   LEADERBOARD
   ========================================================= */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 16px;
}

.leaderboard-table thead {
    background: #7A263A;
    color: #F3D459;
}

.leaderboard-table th {
    padding: 12px;
    text-align: left;
    font-weight: 700;
}

.leaderboard-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    color: #333;
}

.leaderboard-table tr:nth-child(even) { background: #F8F4F0; }
.leaderboard-table tr:nth-child(odd)  { background: #EFE8E4; }

.leaderboard-table tr:hover {
    background: #E0D5CF;
}

.total-points {
    font-weight: 700;
    color: #7A263A;
}



/* =========================================================
   LOGIN PAGE
   ========================================================= */
.login-container {
    display: flex;
    justify-content: center;
    margin: 60px 0;
}

.login-box {
    width: 360px;
    background: #7A263A;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 18px rgba(0,0,0,0.35);
    color: #F3D459;
}

.login-title {
    text-align: center;
    margin-bottom: 25px;
    color: #FFFFFF;
    font-size: 1.8rem;
    font-weight: 700;
}

.login-label {
    display: block;
    margin-top: 12px;
    margin-bottom: 4px;
    color: #FFFFFF;
    font-weight: 600;
}

.login-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #F3D459;
    border-radius: 6px;
    background: #ffffff;
    font-size: 1rem;
    margin-bottom: 10px;
}

.login-input:focus {
    outline: none;
    border-color: #00AEEF;
    box-shadow: 0 0 6px #00AEEF;
}

.login-button {
    width: 100%;
    padding: 12px;
    background: #00AEEF;
    border: none;
    border-radius: 6px;
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
}

.login-button:hover {
    background: #0095cc;
}



/* =========================================================
   DASHBOARD
   ========================================================= */
.dashboard-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.user-info-card {
    background: #f7f7f7;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #ddd;
}

.dashboard-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-link {
    display: block;
    padding: 12px 15px;
    background: #005bbb;
    color: white;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
}

.dashboard-link:hover {
    background: #004999;
}


/* =========================================================
   DASHBOARD COMPETITION CARDS (TEGELS)
   ========================================================= */

.dashboard-competitions {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 700px;
    margin: 0 auto;
}

.competition-card {
    background: #7A263A; /* Claret */
    color: #F3D459;      /* Gold */
    padding: 20px 25px;
    border-radius: 12px;
    border: 2px solid #5A1C2B;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.competition-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #F3D459;
    font-size: 1.4em;
}

.chosen-country {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 18px 0;
}

.competition-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Algemene button-stijl voor dashboard */
.competition-buttons .button {
    display: block;
    padding: 12px 15px;
    background: #F3D459;
    color: #7A263A;
    text-align: center;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.15s;
}

.competition-buttons .button:hover {
    background: #ffe27a;
}



/* =========================================================
   MODAL
   ========================================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
}

.close {
    float: right;
    font-size: 28px;
    cursor: pointer;
}


/* =========================================================
   HOME KNOP
   ========================================================= */

.back-to-dashboard {
    margin: 15px 0 20px 0;
}

.btn-back {
    display: inline-block;
    background: #7A263A;
    color: #F3D459;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #5A1C2B;
}

.btn-back:hover {
    background: #5A1C2B;
}
