﻿/* Gedian Sports - scoped public MatchDetails improvements.
   Capsule baseline for future page tabs: horizontal scrolling pill navigation,
   green active pill, no icons, compact mobile layout. */
.public-match-details-page .pmd-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px !important;
    margin: 14px 0 18px !important;
    border: 1px solid #e0e8db !important;
    border-radius: 999px !important;
    background: #edf5e8 !important;
    overflow-x: auto !important;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

    .public-match-details-page .pmd-tabs .pmd-tab {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 38px !important;
        padding: 8px 17px !important;
        border: 0 !important;
        border-radius: 999px !important;
        background: transparent !important;
        color: #466f2d !important;
        font-family: Tajawal, sans-serif;
        font-size: .87rem !important;
        font-weight: 800 !important;
        white-space: nowrap;
        box-shadow: none !important;
    }

        .public-match-details-page .pmd-tabs .pmd-tab.is-active,
        .public-match-details-page .pmd-tabs .pmd-tab[aria-selected="true"] {
            background: #5b8c3b !important;
            color: white !important;
            box-shadow: 0 2px 8px rgba(70,111,45,.16) !important;
        }

        .public-match-details-page .pmd-tabs .pmd-tab:focus-visible {
            outline: 2px solid #466f2d;
            outline-offset: 2px;
        }

.public-match-details-page .pmd-competition-team-positions:empty {
    display: none;
}

.public-match-details-page .pmd-competition-team-positions:not(:empty) {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
    margin: 14px 0 20px;
}

.public-match-details-page .pmd-competition-team-positions > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid #e5e7eb;
    min-width: 0;
}

.public-match-details-page .pmd-competition-team-positions strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.public-match-details-page .pmd-competition-team-positions span {
    color: #466f2d;
    font-weight: 800;
}

.public-match-details-page .pmd-history-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 24px;
    margin-bottom: 18px;
}

.public-match-details-page .pmd-history-team {
    min-width: 0;
}

    .public-match-details-page .pmd-history-team h3 {
        margin: 0 0 8px;
        font-weight: 800;
        font-size: .98rem;
    }

.public-match-details-page .pmd-history-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px 2px;
    border-bottom: 1px solid #e9eee5;
    color: #1f2937;
    text-decoration: none;
    min-width: 0;
}

    .public-match-details-page .pmd-history-row:hover {
        color: #466f2d;
        background: #fbfdf9;
    }

.public-match-details-page .pmd-history-identity {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

    .public-match-details-page .pmd-history-identity strong {
        font-size: .89rem;
        overflow-wrap: anywhere;
    }

    .public-match-details-page .pmd-history-identity img {
        width: 25px;
        height: 25px;
        object-fit: contain;
        flex: 0 0 25px;
    }

.public-match-details-page .pmd-history-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .82rem;
}

.public-match-details-page .pmd-history-outcome {
    font-size: .78rem;
    font-weight: 800;
}

    .public-match-details-page .pmd-history-outcome.is-win {
        color: #19803c;
    }

    .public-match-details-page .pmd-history-outcome.is-draw {
        color: #aa7900;
    }

    .public-match-details-page .pmd-history-outcome.is-loss {
        color: #c53b3b;
    }

    .public-match-details-page .pmd-history-outcome.is-unknown {
        color: #6b7280;
    }

.public-match-details-page .pmd-history-date {
    color: #6b7280;
    font-size: .78rem;
    text-align: right;
}

@media (max-width: 640px) {
    .public-match-details-page .pmd-tabs {
        border-radius: 20px !important;
    }

        .public-match-details-page .pmd-tabs .pmd-tab {
            min-height: 36px !important;
            padding: 7px 12px !important;
            font-size: .8rem !important;
        }

    .public-match-details-page .pmd-history-grid,
    .public-match-details-page .pmd-competition-team-positions:not(:empty) {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .public-match-details-page .pmd-history-row {
        padding: 9px 2px;
    }
}
