/**
 * ╔═══════════════════════════════════════════════════════════════════════════╗
 * ║                  DISPLAY MODULES - TOURNAMENT VIEW STYLES                  ║
 * ║                        7 Different Display Types                          ║
 * ╚═══════════════════════════════════════════════════════════════════════════╝
 */

/* ═══════════════════════════════════════════════════════════════════════════
   COMMON STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

.display-module {
    width: 100%;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.team-logo-small {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-right: 8px;
    vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODULE 1: COUNTDOWN
   ═══════════════════════════════════════════════════════════════════════════ */

.countdown-module {
    text-align: center;
    padding: 40px 20px;
}

.countdown-timer {
    margin-bottom: 20px;
}

.countdown-number {
    font-size: 72px;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1;
}

.countdown-label {
    font-size: 18px;
    color: #7f8c8d;
    margin-top: 8px;
}

.countdown-date {
    font-size: 16px;
    color: #34495e;
    margin-bottom: 30px;
}

.countdown-defender {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #ecf0f1;
}

.defender-label {
    font-size: 14px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.defender-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.defender-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.defender-name {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

.defender-year {
    font-size: 16px;
    color: #7f8c8d;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODULE 2: GOLD CARD
   ═══════════════════════════════════════════════════════════════════════════ */

.gold-card-module {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    text-align: center;
    padding: 50px 20px;
}

.winner-trophy {
    font-size: 64px;
    margin-bottom: 20px;
    animation: trophy-bounce 2s ease-in-out infinite;
}

@keyframes trophy-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.winner-info {
    margin-bottom: 30px;
}

.winner-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.winner-name {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
}

.winner-season {
    font-size: 20px;
    color: #34495e;
}

.finished-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODULE 3 & 5: REGULAR LEAGUE & SWISS PHASE
   ═══════════════════════════════════════════════════════════════════════════ */

.regular-league-module,
.swiss-phase-module {
    padding: 0;
}

.standings-table-wrapper {
    overflow-x: auto;
}

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

.standings-table thead {
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
}

.standings-table th {
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #dee2e6;
}

.standings-table th.rank,
.standings-table td.rank {
    width: 40px;
    text-align: center;
}

.standings-table th.team,
.standings-table td.team {
    min-width: 200px;
}

.standings-table th.played,
.standings-table th.won,
.standings-table th.drawn,
.standings-table th.lost,
.standings-table th.gd,
.standings-table th.points,
.standings-table td.played,
.standings-table td.won,
.standings-table td.drawn,
.standings-table td.lost,
.standings-table td.gd,
.standings-table td.points {
    width: 50px;
    text-align: center;
}

.standings-row {
    border-bottom: 1px solid #f1f3f5;
    transition: background-color 0.2s;
}

.standings-row:hover {
    background-color: #f8f9fa;
}

.standings-row td {
    padding: 12px 8px;
}

.standings-row .team {
    display: flex;
    align-items: center;
}

.standings-row .team-name {
    font-weight: 500;
    color: #2c3e50;
}

.standings-row .points {
    font-weight: 700;
    color: #2c3e50;
}

/* Qualification Zones */
.standings-row.zone-champions-league {
    background-color: rgba(52, 152, 219, 0.05);
}

.standings-row.zone-europa-league {
    background-color: rgba(230, 126, 34, 0.05);
}

.standings-row.zone-conference-league {
    background-color: rgba(46, 204, 113, 0.05);
}

.standings-row.zone-relegation {
    background-color: rgba(231, 76, 60, 0.05);
}

.standings-row.zone-promotion {
    background-color: rgba(46, 204, 113, 0.05);
}

.zones-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.zone-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.zone-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.zone-label {
    color: #495057;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODULE 4: GROUPS
   ═══════════════════════════════════════════════════════════════════════════ */

.groups-module {
    padding: 20px;
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.group-container {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.group-header {
    background: #2c3e50;
    color: white;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
}

.group-table {
    font-size: 13px;
}

.group-table th,
.group-table td {
    padding: 10px 6px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODULE 6: KNOCKOUT
   ═══════════════════════════════════════════════════════════════════════════ */

.knockout-module {
    padding: 20px;
}

.knockout-bracket {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
}

.knockout-round {
    min-width: 250px;
    flex-shrink: 0;
}

.round-header {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.round-matches {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.knockout-match {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.knockout-match.finished {
    border-color: #95a5a6;
}

.match-team {
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 10px;
    transition: background-color 0.2s;
}

.match-team:first-child {
    border-bottom: 1px solid #f1f3f5;
}

.match-team.winner {
    background-color: #d4edda;
    font-weight: 600;
}

.match-team .team-name {
    flex: 1;
    font-size: 14px;
    color: #2c3e50;
}

.match-team .team-score {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    min-width: 30px;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODULE 7: LEAGUE WITH PLAYOFFS
   ═══════════════════════════════════════════════════════════════════════════ */

.league-playoffs-module {
    padding: 0;
}

.phases-nav {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.phase-tab {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.phase-tab:hover {
    background: #e9ecef;
    color: #495057;
}

.phase-tab.active {
    color: #2c3e50;
    border-bottom-color: #3498db;
    background: white;
}

.phase-content {
    padding: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .countdown-number {
        font-size: 56px;
    }
    
    .winner-name {
        font-size: 24px;
    }
    
    .groups-grid {
        grid-template-columns: 1fr;
    }
    
    .knockout-bracket {
        gap: 20px;
    }
    
    .knockout-round {
        min-width: 200px;
    }
    
    .standings-table {
        font-size: 12px;
    }
    
    .standings-table th,
    .standings-table td {
        padding: 8px 4px;
    }
}

/* Made with Bob */