/*
 * HCAW Familietoernooi 2026
 * Publieke frontend
 */

html,
body.hcaw-ft-page {
    margin: 0;
    padding: 0;
}

body.hcaw-ft-page {
    background: #f4f6f8;
    font-family: Arial, Helvetica, sans-serif;
    color: #172033;
}

.hcaw-ft-app {
    width: 100%;
    min-height: 100vh;
}

.hcaw-ft-header {
    width: 100%;
    background: #123b63;
    color: #ffffff;
}

.hcaw-ft-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.hcaw-ft-brand {
    display: flex;
    flex-direction: column;
}

.hcaw-ft-brand-title {
    font-size: 24px;
    font-weight: 700;
}

.hcaw-ft-brand-date {
    margin-top: 3px;
    font-size: 14px;
    opacity: 0.85;
}

.hcaw-ft-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hcaw-ft-navigation a {
    padding: 10px 14px;

    color: #ffffff;
    text-decoration: none;

    border-radius: 6px;
}

.hcaw-ft-navigation a:hover,
.hcaw-ft-navigation a:focus,
.hcaw-ft-navigation a.is-active {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.hcaw-ft-main {
    width: 100%;
}

.hcaw-ft-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 70px;
}

.hcaw-ft-content h1 {
    margin: 0 0 10px;

    font-size: 36px;
    line-height: 1.2;
}

.hcaw-ft-content h2 {
    margin-top: 0;
}

.hcaw-ft-intro {
    margin-top: 0;
    margin-bottom: 30px;

    font-size: 17px;
    color: #536174;
}


/*
 * Dashboard.
 */

.hcaw-ft-dashboard-grid {
    margin-top: 30px;

    display: grid;
    grid-template-columns: repeat(
        4,
        minmax(0, 1fr)
    );

    gap: 20px;
}

.hcaw-ft-dashboard-card {
    min-height: 120px;

    padding: 24px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;

    background: #ffffff;

    border: 1px solid #dce2e8;
    border-radius: 10px;

    color: #172033;
    text-decoration: none;
}

.hcaw-ft-dashboard-card strong {
    font-size: 20px;
}

.hcaw-ft-dashboard-card span {
    color: #667386;
}

.hcaw-ft-dashboard-card:hover,
.hcaw-ft-dashboard-card:focus {
    border-color: #123b63;
}


/*
 * Tabellen.
 */

.hcaw-ft-table-wrapper {
    overflow-x: auto;
}

.hcaw-ft-table {
    width: 100%;

    border-collapse: collapse;

    background: #ffffff;

    border: 1px solid #dce2e8;
}

.hcaw-ft-table th,
.hcaw-ft-table td {
    padding: 14px 16px;

    text-align: left;
    vertical-align: middle;

    border-bottom: 1px solid #e5e9ed;
}

.hcaw-ft-table th {
    background: #edf1f5;
    font-size: 14px;
}

.hcaw-ft-table tr:last-child td {
    border-bottom: 0;
}


/*
 * Teams.
 */

.hcaw-ft-team-grid {
    display: grid;

    grid-template-columns: repeat(
        3,
        minmax(0, 1fr)
    );

    gap: 18px;
}

.hcaw-ft-team-card {
    padding: 22px;

    background: #ffffff;

    border: 1px solid #dce2e8;
    border-radius: 8px;

    color: #172033;
    text-decoration: none;

    font-size: 18px;
    font-weight: 700;
}

.hcaw-ft-team-card:hover,
.hcaw-ft-team-card:focus {
    border-color: #123b63;
}


/*
 * Wedstrijden.
 */

.hcaw-ft-match-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hcaw-ft-match-card {
    padding: 18px;

    display: grid;

    grid-template-columns:
        130px
        minmax(0, 1fr)
        100px;

    align-items: center;
    gap: 20px;

    background: #ffffff;

    border: 1px solid #dce2e8;
    border-radius: 8px;
}

.hcaw-ft-match-time {
    display: flex;
    flex-direction: column;
}

.hcaw-ft-match-time strong {
    font-size: 20px;
}

.hcaw-ft-match-time span {
    margin-top: 3px;
    color: #667386;
}

.hcaw-ft-match-teams {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 8px;
}

.hcaw-ft-match-teams small {
    width: 100%;
    margin-top: 4px;

    color: #667386;
}

.hcaw-ft-match-score {
    text-align: right;
    font-size: 18px;
}


/*
 * Live.
 */

.hcaw-ft-live-grid {
    display: grid;

    grid-template-columns: repeat(
        2,
        minmax(0, 1fr)
    );

    gap: 20px;
}

.hcaw-ft-live-card {
    padding: 24px;

    background: #ffffff;

    border: 1px solid #dce2e8;
    border-radius: 10px;
}

.hcaw-ft-button {
    display: inline-block;

    margin-top: 10px;
    padding: 11px 18px;

    background: #123b63;

    color: #ffffff;
    text-decoration: none;

    border-radius: 6px;
}

.hcaw-ft-button:hover,
.hcaw-ft-button:focus {
    color: #ffffff;
    opacity: 0.9;
}


/*
 * Empty state.
 */

.hcaw-ft-empty-state {
    padding: 30px;

    background: #ffffff;

    border: 1px solid #dce2e8;
    border-radius: 8px;
}


/*
 * Responsive.
 */

@media (max-width: 900px) {

    .hcaw-ft-dashboard-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .hcaw-ft-team-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 700px) {

    .hcaw-ft-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hcaw-ft-navigation {
        width: 100%;
    }

    .hcaw-ft-content {
        padding: 28px 16px 50px;
    }

    .hcaw-ft-content h1 {
        font-size: 29px;
    }

    .hcaw-ft-dashboard-grid,
    .hcaw-ft-team-grid,
    .hcaw-ft-live-grid {
        grid-template-columns: 1fr;
    }

    .hcaw-ft-match-card {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hcaw-ft-match-score {
        text-align: left;
    }
}