/**
 * OddsEkspert V2 - Match Detail Page Styles
 */

.oev2-match-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Section */
.oev2-match-page__header {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-bottom: 24px;
}

.oev2-match-page__league {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
}

.oev2-match-page__league-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.oev2-match-page__league-name {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Teams Layout */
.oev2-match-page__teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
}

.oev2-match-page__team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.oev2-match-page__team--home {
    justify-self: end;
}

.oev2-match-page__team--away {
    justify-self: start;
}

.oev2-match-page__team-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.oev2-match-page__team-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Score Container */
.oev2-match-page__score-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 100px;
}

.oev2-match-page__score {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 36px;
    font-weight: 700;
}

.oev2-match-page__score--live {
    color: #dc3545;
}

.oev2-match-page__score-separator {
    color: #999;
}

.oev2-match-page__vs {
    font-size: 24px;
    font-weight: 500;
    color: #999;
}

.oev2-match-page__kickoff {
    font-size: 14px;
    color: #666;
    text-align: center;
}

.oev2-match-page__status {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
}

.oev2-match-page__status--live {
    background-color: #dc3545;
    color: #fff;
    animation: oev2-pulse 2s infinite;
}

.oev2-match-page__status--final {
    background-color: #6c757d;
    color: #fff;
}

@keyframes oev2-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Match Info */
.oev2-match-page__info {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}

.oev2-match-page__info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.oev2-match-page__info-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
}

.oev2-match-page__info-value {
    font-size: 14px;
    color: #333;
}

/* Content Sections */
.oev2-match-page__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.oev2-match-page__section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.oev2-match-page__section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #0066cc;
    color: #333;
}

/* Details Grid */
.oev2-match-page__details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.oev2-match-page__detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.oev2-match-page__detail-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
}

.oev2-match-page__detail-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Standings Table */
.oev2-match-page__standings-table-wrapper {
    overflow-x: auto;
}

.oev2-match-page__standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.oev2-match-page__standings-table th {
    background: #f8f9fa;
    padding: 10px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    border-bottom: 2px solid #e5e5e5;
}

.oev2-match-page__standings-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #e5e5e5;
}

.oev2-match-page__standings-row--highlight {
    background-color: #fff8e1;
}

.oev2-match-page__standings-row--highlight td {
    font-weight: 600;
}

.oev2-match-page__standings-pos {
    width: 40px;
    text-align: center;
}

.oev2-match-page__standings-team {
    display: flex;
    align-items: center;
    gap: 8px;
}

.oev2-match-page__standings-team-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.oev2-match-page__standings-played,
.oev2-match-page__standings-won,
.oev2-match-page__standings-draw,
.oev2-match-page__standings-lost,
.oev2-match-page__standings-gd {
    width: 40px;
    text-align: center;
}

.oev2-match-page__standings-points {
    width: 50px;
    text-align: center;
    font-weight: 600;
}

/* Navigation */
.oev2-match-page__nav {
    margin-top: 24px;
}

.oev2-match-page__back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
}

.oev2-match-page__back-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    .oev2-match-page {
        padding: 12px;
    }

    .oev2-match-page__header {
        padding: 16px;
    }

    .oev2-match-page__teams {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .oev2-match-page__team--home,
    .oev2-match-page__team--away {
        justify-self: center;
    }

    .oev2-match-page__team {
        flex-direction: row;
        gap: 12px;
    }

    .oev2-match-page__team--home {
        flex-direction: row-reverse;
    }

    .oev2-match-page__team-logo {
        width: 48px;
        height: 48px;
    }

    .oev2-match-page__team-name {
        font-size: 16px;
    }

    .oev2-match-page__score-container {
        order: -1;
    }

    .oev2-match-page__score {
        font-size: 28px;
    }

    .oev2-match-page__info {
        flex-direction: column;
        gap: 12px;
    }

    .oev2-match-page__section {
        padding: 16px;
    }

    .oev2-match-page__details-grid {
        grid-template-columns: 1fr 1fr;
    }

    .oev2-match-page__standings-table {
        font-size: 12px;
    }

    .oev2-match-page__standings-table th,
    .oev2-match-page__standings-table td {
        padding: 8px 4px;
    }

    .oev2-match-page__standings-team-logo {
        width: 16px;
        height: 16px;
    }
}

/* H2H Section Styles (for future use) */
.oev2-match-page__h2h-summary {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.oev2-match-page__h2h-stat {
    text-align: center;
}

.oev2-match-page__h2h-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.oev2-match-page__h2h-stat-label {
    font-size: 12px;
    color: #666;
}

/* Form Section Styles (for future use) */
.oev2-match-page__form {
    display: flex;
    gap: 4px;
}

.oev2-match-page__form-result {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.oev2-match-page__form-result--win {
    background-color: #28a745;
}

.oev2-match-page__form-result--draw {
    background-color: #ffc107;
    color: #333;
}

.oev2-match-page__form-result--loss {
    background-color: #dc3545;
}

/* Odds Table Styles (for future use) */
.oev2-match-page__odds-table {
    width: 100%;
    border-collapse: collapse;
}

.oev2-match-page__odds-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid #e5e5e5;
}

.oev2-match-page__odds-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
}

.oev2-match-page__odds-bookmaker {
    text-align: left;
    font-weight: 500;
}

.oev2-match-page__odds-value {
    font-weight: 600;
    color: #0066cc;
}

/* Lineups Styles (for future use) */
.oev2-match-page__pitch {
    background: linear-gradient(180deg, #4a9f4a 0%, #3d8f3d 100%);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    min-height: 400px;
}

.oev2-match-page__pitch-markings {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.oev2-match-page__lineup-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.oev2-match-page__lineup-player-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.oev2-match-page__lineup-player-name {
    font-size: 11px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}