/* static/css/matches.css */

.competition-header { display: flex; justify-content: space-between; align-items: center; background: var(--bg-card); border-radius: var(--tbg-radius-md); padding: 24px; margin: 24px 0; border: 1px solid var(--tbg-border); flex-wrap: wrap; gap: 16px; }
.comp-header-left { display: flex; align-items: center; gap: 20px; }
.comp-header-logo { width: 72px; height: 72px; object-fit: contain; flex-shrink: 0; }
.comp-icon-large { font-size: 3rem; line-height: 1; }
.competition-header h1 { margin: 0 0 4px; font-size: 1.6rem; font-weight: 900; color: var(--tbg-text); }
.comp-meta { color: var(--tbg-text-muted); margin: 0 0 6px; font-size: 0.9rem; }
.comp-type-badge { display: inline-block; background: #0D5A37; color: #DFFFEF; padding: 3px 12px; border-radius: var(--tbg-radius-pill); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }

.competition-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--tbg-border); margin-bottom: 24px; }
.tab-link { padding: 10px 20px; font-weight: 700; color: var(--tbg-text-muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: var(--tbg-transition); }
.tab-link:hover { color: var(--tbg-text); }
.tab-link.active { color: var(--neon-mint); border-bottom-color: var(--neon-green); }

.matchday-section { background: var(--bg-card); border-radius: var(--tbg-radius-md); padding: 20px; margin-bottom: 24px; border: 1px solid var(--tbg-border); }
.matchday-section.matchday-current { border-color: rgba(97, 255, 177, .43); box-shadow: 0 0 0 1px rgba(33, 242, 139, .06), 0 8px 28px rgba(0, 0, 0, .35); }

.matchday-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--tbg-border); flex-wrap: wrap; gap: 12px; }
.matchday-header h2 { margin: 0; font-size: 1.2rem; font-weight: 900; color: var(--tbg-text); }

.badge-current  { background: linear-gradient(135deg, #79FFC0, #21F28B); color: #03150B; padding: 3px 10px; border-radius: var(--tbg-radius-pill); font-size: 0.7rem; font-weight: 800; }
.badge-played   { background: rgba(255, 255, 255, 0.05); color: var(--tbg-text-muted); padding: 3px 10px; border-radius: var(--tbg-radius-pill); font-size: 0.7rem; font-weight: 700; }
.badge-upcoming { background: rgba(33, 242, 139, .14); color: var(--neon-mint); border: 1px solid rgba(121, 255, 192, .16); padding: 3px 10px; border-radius: var(--tbg-radius-pill); font-size: 0.7rem; font-weight: 800; }

.matches-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.match-card { background: linear-gradient(145deg, #10271B, #09140F); border: 1px solid var(--tbg-border); border-radius: 16px; padding: 14px; transition: var(--tbg-transition); }
.match-card:hover { border-color: rgba(33, 242, 139, .55); box-shadow: var(--tbg-shadow-hover); }

.match-date { font-size: 0.75rem; color: var(--tbg-text-muted); margin-bottom: 10px; text-transform: uppercase; font-weight: 700; }
.match-kickoff { color: var(--tbg-text); font-weight: 800; margin-left: 4px; }

.match-row-body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-bottom: 10px; }
.match-team { font-size: 0.9rem; font-weight: 600; color: var(--tbg-text); }
.match-team.home { text-align: left; }
.match-team.away { text-align: right; }
.match-team.winner .team-name { color: var(--neon-mint); font-weight: 900; }
.team-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.match-score-box { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 70px; font-weight: 900; font-size: 1.1rem; color: var(--tbg-text); font-family: var(--tbg-font-heading); }
.match-score-box .vs { font-size: 0.75rem; color: var(--tbg-text-muted); font-weight: 700; }
.match-score-box.final .score { font-size: 1.3rem; color: var(--tbg-text); }
.match-score-box.final .sep { color: var(--tbg-text-muted); margin: 0 2px; }

.match-footer { display: flex; justify-content: flex-end; }
.status { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; }
.status.finished  { color: #9BFFD0; background: rgba(33, 242, 139, .11); border: 1px solid rgba(97, 255, 177, .15); }
.status.scheduled { color: #B7C9BF; background: rgba(180, 210, 193, .07); border: 1px solid rgba(180, 210, 193, .10); }

.empty-state { text-align: center; padding: 60px 20px; background: var(--bg-card); border-radius: var(--tbg-radius-md); border: 1px solid var(--tbg-border); }
.empty-state h3 { margin: 0 0 8px; font-size: 1.3rem; color: var(--tbg-text); }
.empty-state p { color: var(--tbg-text-muted); margin: 4px 0; }

@media (max-width: 768px) {
    .competition-header { padding: 16px; }
    .comp-header-logo { width: 56px; height: 56px; }
    .competition-header h1 { font-size: 1.3rem; }
    .matches-grid { grid-template-columns: 1fr; }
    .matchday-header { flex-direction: column; align-items: flex-start; }
}