/* =========================================
   ACHTERGROND (CINEMATIC DARK)
========================================= */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, sans-serif;

    background-image: linear-gradient(
        rgba(0,0,0,0.78),
        rgba(0,0,0,0.78)
    ), url('/afbeelding/padelkooi2.jpg');

    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    color: white;
}

/* =========================================
   TITEL (zelfde stijl als hoofdpagina)
========================================= */
h1 {
    text-align: center;
    margin-top: 40px;
    font-size: 42px;
    font-weight: 900;
    color: white;
    text-shadow: 0 5px 20px rgba(0,0,0,0.7);
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(14px);
    padding: 25px;
    border-radius: 20px;
    width: min(95%, 1100px);
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   PAGE WRAPPER
========================================= */
.page-wrapper {
    width: min(95%, 1100px);
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

/* =========================================
   BANNER (cinematic)
========================================= */
.banner {
    width: 100%;
    height: 170px;
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.35);
    border-radius: 85px;
    border-left: 6px solid #FFD54F;
    box-shadow: 0 10px 35px rgba(0,0,0,0.55);
    backdrop-filter: blur(14px);
    overflow: hidden;
    color: white;
    transition: 0.25s ease;
    position: relative;
}

.banner:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 55px rgba(0,0,0,0.75);
}

.banner-img {
    width: 260px;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 85px 0 0 85px;
    position: relative;
}

.banner-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
        rgba(0,0,0,0.55),
        rgba(0,0,0,0.15),
        rgba(0,0,0,0)
    );
    border-radius: inherit;
}

.banner-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 35px;
    height: 100%;
}

.banner-title {
    font-size: 32px;
    font-weight: 900;
    text-shadow: 0 3px 10px rgba(0,0,0,0.6);
}

.banner-subtitle {
    font-size: 20px;
    font-weight: 700;
    color: #FFD54F;
    margin-top: 6px;
    text-shadow: 0 3px 10px rgba(0,0,0,0.6);
}

/* =========================================
   MATCH GRID
========================================= */
.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

/* =========================================
   MATCHCARD (cinematic dark)
========================================= */
.match-card {
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 25px;
    border-left: 6px solid #FFD54F;
    box-shadow: 0 10px 35px rgba(0,0,0,0.55);
    transition: 0.25s ease;
    margin-bottom: 20px;
}

.match-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 55px rgba(0,0,0,0.75);
}

/* =========================================
   MATCH HEADER
========================================= */
.match-header {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
}

/* =========================================
   MATCH ROWS
========================================= */
.match-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 18px;
    color: white;
}

.match-row.winner {
    color: #FFD54F;
    font-weight: 900;
}

.match-row:not(.winner) {
    opacity: 0.55;
}

/* =========================================
   POULE BLOKKEN
========================================= */
.poule-wrapper {
    margin-bottom: 40px;
}

.poule-title {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 15px;
    color: #fff;
}

/* Poule tabel */
.poule-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0,0,0,0.45);
    border-radius: 12px;
    overflow: hidden;
}

.poule-table th {
    background: rgba(0,0,0,0.6);
    padding: 10px;
    text-align: left;
    font-weight: 700;
    color: #fff;
}

.poule-table td {
    padding: 10px;
    color: #ddd;
}

.poule-table tr.winner-row td {
    color: #FFD700;
    font-weight: 900;
}

/* =========================================
   RONDE BLOKKEN
========================================= */
.ronde-block {
    margin-bottom: 40px;
}

.ronde-title {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 15px;
    color: #fff;
}

/* =========================================
   TERUGKNOP
========================================= */
.back-wrapper {
    width: 100%;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 60px;
}

.back-btn {
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.25);
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.45);
    transition: 0.3s ease;
}

.back-btn:hover {
    transform: translateY(-3px);
}

/* =========================================
   MOBIEL
========================================= */
@media (max-width: 850px) {

    h1 {
        margin-top: 25px;
        font-size: 26px;
    }

    .banner {
        height: 140px;
        border-radius: 70px;
    }

    .banner-img {
        width: 200px;
    }

    .banner-title {
        font-size: 24px;
    }

    .match-card {
        padding: 20px;
    }
}
