/* CODE VOOR MATCHES OP DE FRONT */

.matches-day {
    margin: 90px 0;
}

.matches-block {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.matches-day h4 {
    margin-bottom: 0px;
}

.matches-block h5 {
    padding: 2px 0px;
    border-bottom: 1px solid #aaa;
    color: dimgrey;
}

.match-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dotted #e1e1e1;
    font-size:0.9em;
}

.match-item a {
    font-size: 0.95em;
}

.match-item > div {
    flex: 1;
}

.match-item > .versus {
    flex: 3;
}

.versus a {
    color: #0da6dd;
    text-decoration:none;
}

.versus a:hover {
    color: #0da6dd;
    text-decoration:underline;
}


/* KALENDER */

.kalendermaand {
    background-color: #d0dc3290;
    padding: 20px;
   margin-bottom: -50px;
   border-radius: 15px;
}


/* PLOEGEN - MATCHES */

.volleyball-matches {
    display: flex;
    flex-direction: column;
}

.match-row {
    display: flex;
    gap:10px;
}

.match-row > div {
    flex: 1;
    text-align: left;
    min-width: 20%;
    font-size: 0.79em;
    padding: 10px 0;
    border-bottom: 1px dotted #aaaaaa;
}

.match-row > .breder {
    flex: 4; /* Equal width for each cell */
}

.header-row {
    font-weight: bold;
    background-color: #f0f0f0; /* Light grey background for header */
}

.match-won {
    color: green;
    text-align: center!important;
}

.match-lost {
    color: red;
    text-align: center!important;
}

.noshow {
    display:none;
}


/* RANKINGS */

.volleyball-ranking {
    display: flex;
    flex-direction: column;
}

.ranking-row {
    display: flex;
}

.ranking-row > div {
    flex: 1;
    text-align: center;
    font-size:0.85em;
    padding: 10px 0;
    border-bottom: 1px solid darkgrey;
}

.ranking-row > .breder {
    flex: 4;
    text-align: left;
}

.header-row {
    font-weight: bold;
    background-color: #f0f0f0;
}

.highlight-row {
    background-color: #0da6dd80;
}

/* LINE-UP (basis-layout; huisstijl/kleuren staan in het child-theme) */

.msiks-ploeg,
.msiks-ploeg-tabel {
    display: flex;
    flex-direction: column;
}

.ploeg-row {
    display: flex;
    gap: 10px;
}

.ploeg-row > div {
    font-size: 1em;
    padding: 12px 12px;
}

.ploeg-row.header-row > div {
    padding: 14px 12px;
    font-size: 0.85em;
    text-transform: lowercase;
}

.nummer-col {
    width: 120px;
    min-width: 80px;
    text-align: center;
    color: #0da6dd;
    font-weight: 600;
}

.positie-col {
    width: 160px;
    min-width: 100px;
    color: #666;
}

.naam-col {
    flex: 1;
}

@media (max-width: 600px) {
    .ploeg-row > div {
        font-size: 0.9em;
        padding: 10px 8px;
    }
    .nummer-col {
        width: 60px;
        min-width: 60px;
    }
    .positie-col {
        width: 100px;
        min-width: 80px;
    }
}

/* STATISTICS STYLING */

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 20px 0;
    font-family: "Schibsted Grotesk"
}

.stat-block {
    background-color: #f0f0f0;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
}

.stat-block.large {
    grid-column: span 2;
}

.stat-title {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 10px;
    text-transform: lowercase;
}

.stat-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

.stat-value.large {
    font-size: 2em;
}

.stat-subtitle {
    font-size: 1em;
    color: #aaa;
}

.last-five {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.result-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
}

.result-dot.win {
    background-color: #4CAF50;
}

.result-dot.loss {
    background-color: #F44336;
}

/* Mobile Statistics Layout */
@media (max-width: 768px) {
    .statistics-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* Win percentage - full width */
    .statistics-grid > .stat-block:first-child {
        grid-column: 1 / -1;
    }

    /* Home/Away percentages - half width each */
    .statistics-grid > .stat-block:nth-child(2),
    .statistics-grid > .stat-block:nth-child(3) {
        grid-column: span 1;
    }

    /* Last 5 matches - full width */
    .statistics-grid > .stat-block:nth-last-child(1) {
        grid-column: 1 / -1;
        order: 4;
    }

    /* Sets won/lost - half width each */
    .statistics-grid > .stat-block:nth-child(4),
    .statistics-grid > .stat-block:nth-child(5) {
        grid-column: span 1;
        order: 5;
    }

    /* Adjust spacing for mobile */
    .stat-block {
        min-height: auto;
        padding: 15px 10px;
    }

    /* Make the main percentage larger on mobile */
    .stat-value.large {
        font-size: 2.5em;
    }
}