
/* ==============================
   FIXTURES PAGE
================================ */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 25px auto;
    padding: 0 18px;
    box-sizing: border-box;
    color: #172033;
}

.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

.page-header p {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 15px;
}

/* ==============================
   FIXTURES CARD
================================ */

.fixtures-card {
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 4%);
}

.fixtures-card h2 {
    margin: 0 0 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 21px;
    font-weight: 700;
}

/* ==============================
   FIXTURE ROW
================================ */

.fixture-row {
    display: grid;
    grid-template-columns:
        145px
        minmax(260px, 1.8fr)
        minmax(125px, 1fr)
        100px
        115px;
    align-items: center;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid #edf0f4;
}

.fixture-row:last-child {
    border-bottom: none;
}

.fixture-date,
.fixture-venue {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.fixture-date strong,
.fixture-venue strong {
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.fixture-date span,
.fixture-venue span {
    color: #64748b;
    font-size: 12px;
}

/* ==============================
   TEAMS AND LOGOS
================================ */

.fixture-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
}

.fixture-team {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

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

.fixture-team:last-child {
    justify-content: flex-start;
    text-align: left;
}

.team-logo {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

.fixture-team strong {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.vs {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ==============================
   MATCH STATUS
================================ */

.fixture-status span {
    display: inline-block;
    padding: 6px 9px;
    border-radius: 5px;
    background: #eef2f7;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

/* ==============================
   ENTER RESULT LINK
================================ */

.fixture-row > div:last-child a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    background: #0b5ed7;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.fixture-row > div:last-child a:hover {
    background: #084298;
}

/* ==============================
   TABLET
================================ */

@media (max-width: 1050px) {
    .fixture-row {
        grid-template-columns: 130px minmax(240px, 1.5fr) 1fr;
        gap: 14px;
    }

    .fixture-teams {
        grid-column: 2 / 4;
        grid-row: 1;
    }

    .fixture-date {
        grid-column: 1;
        grid-row: 1;
    }

    .fixture-venue {
        grid-column: 1 / 2;
        grid-row: 2;
    }

    .fixture-status {
        grid-column: 2;
        grid-row: 2;
    }

    .fixture-row > div:last-child {
        grid-column: 3;
        grid-row: 2;
    }
}

/* ==============================
   MOBILE
================================ */

@media (max-width: 600px) {
    .container {
        margin: 16px auto;
        padding: 0 10px;
    }

    .page-header {
        margin-bottom: 16px;
    }

    .page-header h1 {
        font-size: 22px;
    }

    .page-header p {
        font-size: 13px;
    }

    .fixtures-card {
        padding: 13px;
        border-radius: 9px;
    }

    .fixtures-card h2 {
        font-size: 18px;
        padding-bottom: 11px;
    }

    .fixture-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px 8px;
        padding: 16px 0;
    }

    .fixture-date {
        grid-column: 1;
        grid-row: 1;
    }

    .fixture-teams {
        grid-column: 1 / -1;
        grid-row: 2;
        gap: 8px;
        padding: 8px 0;
    }

    .fixture-team {
        flex-direction: column;
        gap: 5px;
    }

    .fixture-team:first-child,
    .fixture-team:last-child {
        justify-content: center;
        text-align: center;
    }

    .team-logo {
        width: 38px;
        height: 38px;
    }

    .fixture-team strong {
        font-size: 12px;
        text-align: center;
    }

    .vs {
        font-size: 11px;
    }

    .fixture-venue {
        grid-column: 1;
        grid-row: 3;
    }

    .fixture-status {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        align-self: start;
    }

    .fixture-row > div:last-child {
        grid-column: 1 / -1;
        grid-row: 4;
    }

    .fixture-row > div:last-child a {
        width: 100%;
        padding: 11px;
        box-sizing: border-box;
        font-size: 13px;
    }
}

/* ==============================
   SMALL MOBILE
================================ */

@media (max-width: 360px) {
    .fixtures-card {
        padding: 10px;
    }

    .team-logo {
        width: 32px;
        height: 32px;
    }

    .fixture-team strong {
        font-size: 11px;
    }

    .fixture-date strong,
    .fixture-venue strong {
        font-size: 12px;
    }
}
