.fa {
    font-family: 'FontAwesome' !important;
}

/* ==========================================================================
   1. VARIABLES & ROOT
   ========================================================================== */
:root {
    --c-white: #ffffff;
    --c-dark-grey: #2c3e50;
    --c-light-grey: #f0f0f0;
    --c-text-grey: #555;
    --c-south: #091C3A;
}

/* ==========================================================================
   2. GENERATOR TOOL UI (Admin page styles)
   ========================================================================== */

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.preview-box,
#txt_raw_html {
    width: 100% !important;
    max-width: 100%;
    display: block;
    box-sizing: border-box;
}

#txt_raw_html {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 12px;
    resize: vertical;
}

/* ==========================================================================
   3. MATCH REPORT - BASE & HERO
   ========================================================================== */
.match {
    margin-bottom: 0;
    background: var(--c-light-grey);
    font-family: sans-serif;
}

.match_hero_main {
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px;
    background-color: var(--c-white);
}

.match_hero_details {
    padding: 1.5rem;
    text-align: center;
    background-color: var(--c-light-grey);
    margin-bottom: 1.5rem;
    border-radius: 10px;
}

.match_hero_title,
.match_hero_game_date {
    color: var(--c-text-grey);
    font-size: 16pt;
    font-weight: bold;
}

.match_hero_title {
    text-transform: uppercase;
}

.match_hero_teams {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
}

.match_hero_team {
    height: 12rem;
    color: var(--c-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    text-transform: uppercase;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    box-sizing: border-box;
    /* Ensures borders don't break layout */
}

.match_hero_team--away {
    flex-direction: row-reverse;
    border-radius: 0 15px 15px 0;
    /* Cleaner radius shorthand */
}

.match_hero_team_part {
    display: flex;
    align-items: center;
    justify-content: center;
}

.match_hero_team_part--name {
    display: none;
}

.match_hero_team_name {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    max-width: 12rem;
}

.match_hero_team_logo {
    width: 12rem;
    max-height: 100%;
    object-fit: contain;
}

.match_hero_team_score {
    text-align: center;
    width: 7rem;
}

.match_hero_team_score_total {
    font-size: 8rem;
    line-height: 1;
    font-weight: bold;
}

.match_hero_team_score_breakdown {
    text-transform: uppercase;
    font-size: 1.5rem;
    font-weight: bold;
}

.match_hero_time {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--c-light-grey);
    color: var(--c-dark-grey);
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 1.2rem;
    z-index: 2;
}

/* ==========================================================================
   4. SCORE FLOW (Table Section)
   ========================================================================== */
.match_scoreDetail {
    background: var(--c-white);
    padding: 20px 0;
    /* border-bottom: 1px solid #ddd; */
    display: flex;
    justify-content: center;
}

.match_scoreDetail .table-responsive {
    border: none;
    width: auto;
}

.match_scoreDetail table td,
.match_scoreDetail table th {
    padding: 10px 25px !important;
    white-space: nowrap;
    font-size: 2.0rem;
}

/* ==========================================================================
   5. PLAYER STATS (The Grey Cards)
   ========================================================================== */
.match_scoreOverview {
    padding: 2.5rem 1.4rem;
    /* background: var(--c-white);  */
}

.centered-player-list-column {
    display: flex;
    justify-content: center;
    padding: 0 15px;
}

.player-text-list {
    background-color: var(--c-light-grey);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.player-list-title {
    font-size: 1.4rem;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--c-south);
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1rem;
    margin-bottom: 1.2rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.player-list-text {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--c-dark-grey);
}

/* Player with Image Entry */
.player-entry {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    width: 100%;
    justify-content: center;
}

.player-img-container {
    width: 80px;
    height: 80px;
    margin-right: 10px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 50%;
}

.player-name,
.player-stat {
    font-size: 1.8rem;
    font-weight: bold;
}

.player-stat {
    color: var(--c-text-grey);
    margin-left: 5px;
}

/* ==========================================================================
   6. RESPONSIVE QUERIES
   ========================================================================== */

/* Very Small Devices */
@media (max-width: 480px) {
    .match_hero_teams {
        flex-direction: row;
    }

    .match_hero_team {
        width: 50%;
        height: 9rem;
        padding: 0.5rem;
        justify-content: center;
    }

    .match_hero_time {
        font-size: 1rem;
        padding: 0.3rem 0.6rem;
    }

    .match_hero_title {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .match_hero_team_logo {
        width: 6rem;
    }

    .match_hero_team_score_total {
        font-size: 4rem;
    }
}

/* Tablet/Mobile Table Scaling */
@media (max-width: 767px) {

    .match_scoreDetail table td,
    .match_scoreDetail table th {
        padding: 8px 10px !important;
        font-size: 12px;
    }
}

/* Desktop Expansion */
@media (min-width: 768px) {
    .match_hero_teams {
        flex-direction: row;
    }

    .match_hero_team {
        width: 50%;
        height: 16rem;
        padding: 3rem;
    }
}

@media (min-width: 992px) {
    .match_hero_team {
        height: 20rem;
    }

    .match_hero_team_part {
        width: 33.333%;
    }

    .match_hero_team_part--name {
        display: flex;
    }

    .match_scoreOverview {
        padding: 2rem 3rem;
    }
}