/* ===== IMPROVED MATCH CARDS - CLEAN HORIZONTAL DESIGN ===== */

/* Override default match card styles */
.matches-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    margin-top: 2rem !important;
}

.match-list-item {
    display: flex !important;
    align-items: center !important;
    padding: 1.25rem !important;
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

html[data-theme="light"] .match-list-item,
[data-theme="light"] .match-list-item {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.match-list-item:hover {
    transform: translateX(5px) !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.2) !important;
}

html[data-theme="light"] .match-list-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Map Image */
.match-map-image {
    flex-shrink: 0 !important;
    width: 180px !important;
    height: 100px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    position: relative !important;
}

.match-map-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.map-overlay {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 0.5rem !important;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9)) !important;
}

.map-name {
    color: white !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    display: block !important;
}

html[data-theme="light"] .map-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)) !important;
}

/* Match Content */
.match-list-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    padding: 0 1.5rem !important;
}

/* Match Header */
.match-list-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.match-id {
    font-size: 0.9rem !important;
    color: var(--accent-primary) !important;
    font-weight: 600 !important;
}

.match-date {
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
}

.match-date i {
    font-size: 0.7rem !important;
}

/* Teams */
.match-list-teams {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.team-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    transition: all 0.2s ease !important;
}

html[data-theme="light"] .team-row {
    background: rgba(0, 0, 0, 0.02) !important;
}

.team-row:hover {
    background: rgba(0, 217, 255, 0.05) !important;
}

.team-row.winner {
    background: rgba(76, 175, 80, 0.15) !important;
    border-left: 3px solid #4CAF50 !important;
}

html[data-theme="light"] .team-row.winner {
    background: rgba(16, 185, 129, 0.1) !important;
    border-left-color: #10b981 !important;
}

.team-name {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    flex: 1 !important;
}

html[data-theme="light"] .team-name {
    color: #0f172a !important;
}

.team-row.winner .team-name {
    color: #4CAF50 !important;
}

html[data-theme="light"] .team-row.winner .team-name {
    color: #10b981 !important;
}

.team-score {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    min-width: 50px !important;
    text-align: right !important;
    color: var(--text-primary) !important;
}

html[data-theme="light"] .team-score {
    color: #0f172a !important;
}

.team-row.winner .team-score {
    color: #4CAF50 !important;
}

html[data-theme="light"] .team-row.winner .team-score {
    color: #10b981 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .match-list-item {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .match-map-image {
        width: 100% !important;
        height: 150px !important;
    }
    
    .match-list-content {
        padding: 1rem 0 !important;
    }
}

/* Recent Matches Section Title */
.home-section h2 {
    color: var(--text-primary) !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
}

html[data-theme="light"] .home-section h2 {
    color: #0f172a !important;
}