/* =========================
   MATCH CARD SYSTEM (CLEAN)
========================= */

.match-card {
    display: block;
    padding: 14px 16px;
    margin: 12px 0;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: rgba(149,157,165,0.15) 0px 4px 12px;
    transition: all 0.2s ease;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: rgba(149,157,165,0.25) 0px 8px 20px;
}

/* RESULT STRIP */
.match-card.win  { border-left: 4px solid #2ecc71; }
.match-card.loss { border-left: 4px solid #e74c3c; }
.match-card.draw { border-left: 4px solid orange; }
.match-card.fixture {border-left: 4px solid #ccc;}



/* =========================
   DATE
========================= */

.match-date {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 6px;
}

/* =========================
   META (TOP)
========================= */

.match-meta-top {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* LINE 1: competition + icon */
.meta-line-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LINE 2: attendance centered */
.meta-line-2 {
    text-align: center;
    font-size: 12px;
    color: #777;
}

/* competition */
.competition, .matchStats{
    font-size: 12px;
    color: #444;
}

/* stats icon */
.stats-link img {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: 0.2s;
    vertical-align: middle;
}

.stats-link:hover img {
    opacity: 1;
    transform: scale(1.1);
}


/* =========================
   TEAMS ROW
========================= */

.teams-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    flex-wrap: nowrap;
}

/* =========================
   TEAMS
========================= */

.team {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0; /* prevents overflow issues */
}

/* LEFT SIDE (HOME) */
.team.left {
    text-align: right;
    flex-direction: row-reverse;
}

/* RIGHT SIDE (AWAY) */
.team.right {
    justify-content: flex-start;
    text-align: left;
}

/* TEAM NAME */
.team span {
    font-weight: 500;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* =========================
   CRESTS
========================= */

.fixCrest {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* =========================
   SCORELINE (CENTERED)
========================= */

.scoreline {
    flex: 0 0 auto;
    min-width: 110px;

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

    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.5px;
}

/* =========================
   META (BOTTOM)
========================= */

.match-meta-bottom {
    text-align: center;
    font-size: 0.8rem;
    margin-top: 6px;
    color: #777;
}

/* =========================
   SEASON LINKS
========================= */

.season-links {
    width: 100%;
    margin-top: 20px;
    color: #333;
    background: white;
    padding: 10px;
}

.season-link {
    margin: 0 8px;
    cursor: pointer;
    opacity: 0.6;
    font-size: 14px;
}

.season-link.active {
    font-weight: bold;
    opacity: 1;
    text-decoration: underline;
}

/* =========================
   TABS
========================= */

.fixture-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    gap: 10px;
}

.tab {
    padding: 6px 14px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    cursor: pointer;
    border-radius: 20px;
    font-size: 14px;
    transition: 0.2s ease;
}

.tab.active {
    background: #222;
    color: #fff;
    border-color: #222;
}

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

@media (max-width: 700px) {

    .match-card {
        padding: 10px;
        width: 95%;
        margin: 0 auto;
        margin-bottom: 12px;
    }

    .fixCrest {
        width: 28px;
        height: 28px;
    }

    .scoreline {
        font-size: 16px;
        min-width: 80px;
    }

    .team span {
        font-size: 12px;
    }
    
    .match-meta-bottom {
    	margin-top: 3px;
    	font-size: 0.7rem;
    }
}
