/* ============================================
   Liga Shortcodes — Match Cards
   Colors: #151517, #ffffff, #00C853
   Fonts: Bebas Neue (display), Inter (body)
   ============================================ */

/* --- Grid Layout --- */

.league-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (max-width: 1024px) {
    .league-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .league-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* --- Card --- */

.league-card {
    background: #1C1C1F;
    border: 1px solid #2A2A2D;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.league-card:hover {
    border-color: #3A3A3D;
    transform: translateY(-2px);
}

/* --- Card Header --- */

.league-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #2A2A2D;
}

.league-card__league {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #00C853;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.league-card__day {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #6B7280;
    background: #252528;
    padding: 4px 10px;
    border-radius: 20px;
}

/* --- Match Area --- */

.league-card__match {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

/* --- Team --- */

.league-card__team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.league-card__logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.league-card__logo--placeholder {
    width: 64px;
    height: 64px;
    background: #252528;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4B5563;
}

.league-card__logo--placeholder svg,
.result-card__logo--placeholder svg,
.standings-card__logo--placeholder svg {
    width: 55%;
    height: 55%;
}

.league-card__name {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.3;
    max-width: 110px;
}

/* --- VS Badge --- */

.league-card__vs {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #00C853;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    color: #FFFFFF;
    flex-shrink: 0;
}

/* --- Meta (Date / Time / Venue) --- */

.league-card__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: #9CA3AF;
}

.league-card__date,
.league-card__time,
.league-card__venue {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.league-card__date svg,
.league-card__time svg,
.league-card__venue svg {
    color: #6B7280;
    flex-shrink: 0;
}

.league-card__separator {
    color: #4B5563;
}

/* --- CTA Button --- */

.league-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    background: #00C853;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.league-card__cta:hover {
    background: #00B848;
}

.league-card__cta svg {
    transition: transform 0.2s ease;
}

.league-card__cta:hover svg {
    transform: translateX(3px);
}

/* --- Empty State --- */

.league-empty {
    font-family: 'Inter', sans-serif;
    color: #9CA3AF;
    text-align: center;
    padding: 48px 16px;
    font-size: 0.95rem;
}

/* --- Tournament Card --- */

.tournament-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #2A2A2D;
}

.tournament-card__eyebrow {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: #00C853;
    text-transform: uppercase;
}

.tournament-card__league {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6B7280;
    background: #252528;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.tournament-card__name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.1;
    color: #FFFFFF;
    margin: 0 0 16px;
}

.tournament-card__image-wrap {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin-bottom: 18px;
    background: #252528;
}

.tournament-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tournament-card__image-wrap--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tournament-card__placeholder-icon {
    color: #4B5563;
}

.tournament-card .league-card__cta {
    margin-top: auto;
}

/* --- Result Card --- */

.result-card__match {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.result-card__team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.result-card__logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.result-card__logo--placeholder {
    width: 64px;
    height: 64px;
    background: #252528;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4B5563;
}

.result-card__name {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.3;
    max-width: 110px;
}

.result-card__team{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.result-card__team--lose .result-card__name {
    color: #6B7280;
}

.result-card__score {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.result-card__score-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    line-height: 1;
    color: #FFFFFF;
    min-width: 20px;
    text-align: center;
}

.result-card__score-num--win {
    color: #00C853;
}

.result-card__score-num--lose {
    color: #6B7280;
}

.result-card__score-sep {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    color: #4B5563;
}

/* --- Standings Card --- */

.standings-card__scroll {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid #2A2A2D;
}

.standings-card__table {
    width: 100%;
    min-width: 540px;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
}

.standings-card__table thead th {
    position: sticky;
    top: 0;
    background: #151517;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: #9CA3AF;
    text-transform: uppercase;
    text-align: center;
    padding: 10px 8px;
    border-bottom: 1px solid #2A2A2D;
    white-space: nowrap;
}

.standings-card__table .standings-card__team-col {
    text-align: left;
    padding-left: 14px;
}

.standings-card__row td {
    padding: 10px 8px;
    text-align: center;
    font-size: 0.82rem;
    color: #E5E7EB;
    border-bottom: 1px solid #2A2A2D;
    white-space: nowrap;
}

.standings-card__row:last-child td {
    border-bottom: none;
}

.standings-card__row:nth-child(even) td {
    background: #252528;
}

.standings-card__row:hover td {
    background: #2A2A2D;
}

.standings-card__row--highlight td {
    background: rgba(0, 200, 83, 0.08) !important;
}

.standings-card__row--highlight .standings-card__name {
    color: #00C853;
}

.standings-card__pos {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.05rem;
    color: #00C853;
    width: 36px;
}

.standings-card__team {
    text-align: left !important;
    padding-left: 14px !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.standings-card__logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
}

.standings-card__logo--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #2A2A2D;
    border-radius: 50%;
    color: #4B5563;
    flex-shrink: 0;
}

.standings-card__name {
    color: #FFFFFF;
    font-weight: 500;
    white-space: nowrap;
}

.standings-card__num--pts {
    font-weight: 700;
    color: #00C853;
}

.standings-card .league-card__cta {
    margin-top: auto;
}

/* --- Fixtures Card --- */

.league-fixtures {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.fixtures-card__list {
    display: flex;
    flex-direction: column;
}

.fixtures-card__row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 42px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 14px 8px;
    border-bottom: 1px solid #2A2A2D;
    text-decoration: none;
    transition: background 0.2s ease;
}

.fixtures-card__row:last-child {
    border-bottom: none;
}

.fixtures-card__row:hover {
    background: #252528;
    border-radius: 10px;
}

.fixtures-card__time {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    color: #00C853;
    white-space: nowrap;
}

.fixtures-card__time--none {
    font-size: 0.8rem;
    color: #6B7280;
}

.fixtures-card__team {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.fixtures-card__team--home {
    justify-content: flex-end;
    text-align: right;
}

.fixtures-card__team--away {
    justify-content: flex-start;
    text-align: left;
}

.fixtures-card__logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.fixtures-card__logo--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #252528;
    border-radius: 50%;
    color: #4B5563;
    flex-shrink: 0;
}

.fixtures-card__logo--placeholder svg {
    width: 55%;
    height: 55%;
}

.fixtures-card__name {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fixtures-card__vs {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #00C853;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: #FFFFFF;
    flex-shrink: 0;
}

.fixtures-card__venue {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #9CA3AF;
    white-space: nowrap;
}

.fixtures-card__venue svg {
    color: #6B7280;
    flex-shrink: 0;
}

.fixtures-card__arrow {
    color: #6B7280;
    transition: transform 0.2s ease, color 0.2s ease;
}

.fixtures-card__row:hover .fixtures-card__arrow {
    color: #00C853;
    transform: translateX(3px);
}

/* --- Results Card --- */

.results-card__row {
    grid-template-columns: 64px minmax(0, 1fr) auto minmax(0, 1fr) auto auto;
}

.results-card__score {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.results-card__score-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    line-height: 1;
    color: #FFFFFF;
    min-width: 18px;
    text-align: center;
}

.results-card__score-num--win {
    color: #00C853;
}

.results-card__score-num--lose {
    color: #6B7280;
}

.results-card__score-sep {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.05rem;
    color: #4B5563;
}

.results-card__score--none {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: #9CA3AF;
    background: #252528;
    border: 1px solid #2A2A2D;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.fixtures-card__name--lose {
    color: #6B7280;
}

/* --- Responsive Adjustments --- */

@media (max-width: 640px) {
    .league-card {
        padding: 20px;
    }

    .league-card__header {
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .league-card__logo {
        width: 56px;
        height: 56px;
    }

    .league-card__logo--placeholder {
        width: 56px;
        height: 56px;
    }

    .league-card__name {
        font-size: 0.8rem;
        max-width: 90px;
    }

    .league-card__vs {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .league-card__meta {
        font-size: 0.72rem;
    }

    .tournament-card__name {
        font-size: 1.5rem;
    }

    .result-card__logo {
        width: 56px;
        height: 56px;
    }

    .result-card__logo--placeholder {
        width: 56px;
        height: 56px;
    }

    .result-card__name {
        font-size: 0.8rem;
        max-width: 90px;
    }

    .result-card__score-num {
        font-size: 1.3rem;
    }

    .result-card__score-sep {
        font-size: 1rem;
    }

    .fixtures-card__row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 10px;
        padding: 12px 4px;
    }

    .fixtures-card__time {
        order: 1;
        flex: 0 0 100%;
        font-size: 0.9rem;
    }

    .fixtures-card__time--none {
        font-size: 0.72rem;
    }

    .fixtures-card__team--home {
        order: 2;
        flex: 1 1 0;
        min-width: 0;
    }

    .fixtures-card__vs {
        order: 3;
        flex: 0 0 30px;
        width: 30px;
        height: 30px;
        font-size: 0.72rem;
    }

    .fixtures-card__team--away {
        order: 4;
        flex: 1 1 0;
        min-width: 0;
    }

    .fixtures-card__arrow {
        order: 5;
        flex: 0 0 auto;
    }

    .fixtures-card__venue {
        display: none;
    }

    .fixtures-card__logo,
    .fixtures-card__logo--placeholder {
        width: 26px;
        height: 26px;
    }

    .fixtures-card__name {
        font-size: 0.8rem;
        line-height: 1.3;
        white-space: normal;
        overflow: visible;
    }

    .results-card__score,
    .results-card__score--none {
        order: 3;
    }

    .results-card__score {
        gap: 5px;
    }

    .results-card__score-num {
        font-size: 1.15rem;
        min-width: 14px;
    }
}
