/* ==================================
   Variant 2: Colored Badges Layout
   ================================== */

/* Match Card - Clean and minimal */
.match-card {
    padding: 14px 0;
    border-bottom: 1px solid #e8e8e8;
    background: white;
    transition: background 0.15s ease;
}

.match-card:hover {
    background: #fafafa;
}

.match-card.has-tip {
    background: linear-gradient(90deg, #f0fff4 0%, #ffffff 100%);
    border-left: 3px solid #10b981;
    padding-left: 11px;
}

/* Main match content - teams and scores side by side */
.match-main-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* Teams Section */
.match-teams-v2 {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-v2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-logo-v2 {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.team-name-v2 {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
}

/* Scores Section */
.match-scores-v2 {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.score-row-v2 {
    display: flex;
    gap: 4px;
    align-items: center;
}

.btn-v2 {
    width: 36px;
    height: 36px;
    border: 1.5px solid #d4b896;
    background: #f5f0e8;
    color: #5a4a3a;
    font-size: 19px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.btn-v2:hover:not(:disabled) {
    background: #ebe5da;
    border-color: #c4a882;
    transform: scale(1.05);
}

.btn-v2:active:not(:disabled) {
    transform: scale(0.95);
}

.btn-v2:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.score-display-v2 {
    width: 32px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 700;
    color: #1a1a1a;
    background: white;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
}

/* Odds Line - Below match content */
.odds-line-v2 {
    display: flex;
    gap: 6px;
    padding-left: 34px;
}

.odds-badge-v2 {
    padding: 5px 11px;
    background: #e8f4fd;
    border-radius: 6px;
    font-size: 13px;
    display: flex;
    gap: 4px;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.odds-badge-v2:hover {
    background: #d1ebfc;
    transform: translateY(-1px);
}

.odds-label-v2 {
    font-weight: 700;
    color: #0369a1;
}

.odds-value-v2 {
    font-weight: 600;
    color: #1a1a1a;
}

/* Time Header - Compact with badge */
.time-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0 8px 0;
    margin-top: 8px;
}

.time-badge-vg {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    padding: 4px 10px;
    background: #f5f5f5;
    border-radius: 6px;
}

.league-badge-vg {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.7;
}

/* League/Round Section - Top level grouping */
.league-round-section {
    margin-bottom: 32px;
}

.league-round-header {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    padding: 16px 0;
    border-bottom: 3px solid #0ea5e9;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #f0f9ff 0%, #ffffff 100%);
    padding-left: 12px;
    border-radius: 4px;
}

.league-round-section:first-child .league-round-header {
    margin-top: 0;
}

/* Date Header - Secondary grouping within league/round */
.date-header {
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    padding: 12px 0 8px 0;
    margin-top: 12px;
}

.date-group:first-child .date-header {
    margin-top: 0;
}

/* Responsive - Mobile optimization */
@media (max-width: 600px) {
    .match-main-v2 {
        gap: 8px;
    }

    .match-teams-v2 {
        flex: 1;
        min-width: 0;
    }

    .team-name-v2 {
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .match-scores-v2 {
        gap: 4px;
    }

    .score-row-v2 {
        gap: 3px;
    }

    .btn-v2 {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .score-display-v2 {
        width: 28px;
        height: 32px;
        font-size: 15px;
    }

    .odds-line-v2 {
        padding-left: 0;
        width: 100%;
    }

    .odds-badge-v2 {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .match-card {
        padding: 12px 0;
    }

    .team-logo-v2 {
        width: 20px;
        height: 20px;
    }

    .team-name-v2 {
        font-size: 13px;
    }

    .btn-v2 {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }

    .score-display-v2 {
        width: 26px;
        height: 30px;
        font-size: 14px;
    }
}

/* Container adjustments for cleaner look */
.matches-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 16px;
}

.matches-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

/* Overall container - removed background to keep stadium background from style.css */
.container {
    min-height: 100vh;
}

#matchesList {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
