/* Variables */
:root {
    --worldcup-primary: #1a3e60;
    --worldcup-secondary: #c9a03d;
    --worldcup-gold: #d4af37;
    --worldcup-dark: #0a2538;
    --worldcup-light: #f4f6f9;
}

/* Page principale */
.worldcup-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background: var(--worldcup-light);
}

/* Hero Section */
.worldcup-hero {
    background: linear-gradient(135deg, var(--worldcup-primary), var(--worldcup-dark));
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.worldcup-hero::before {
    content: "🏆";
    position: absolute;
    font-size: 200px;
    opacity: 0.1;
    right: -50px;
    top: -50px;
}

.worldcup-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.worldcup-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.worldcup-countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.countdown-card {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 10px;
    min-width: 80px;
}

.countdown-number {
    font-size: 2rem;
    font-weight: bold;
}

.countdown-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Navigation */
.worldcup-nav {
    background: white;
    border-radius: 50px;
    padding: 5px;
    margin-bottom: 30px;
    display: flex;
    gap: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.worldcup-nav-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: transparent;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
}

.worldcup-nav-btn.active {
    background: var(--worldcup-primary);
    color: white;
}

.worldcup-nav-btn:hover:not(.active) {
    background: #e0e0e0;
}

/* Onglets */
.worldcup-tab {
    display: none;
}

.worldcup-tab.active {
    display: block;
}

/* Matchs */
.matches-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.match-day {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.match-day-header {
    background: var(--worldcup-primary);
    color: white;
    padding: 15px 20px;
    font-weight: bold;
    font-size: 1.1rem;
}

.match-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

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

.team {
    flex: 2;
    display: flex;
    align-items: center;
    gap: 15px;
}

.team-home {
    justify-content: flex-end;
}

.team-away {
    justify-content: flex-start;
}

.team-flag {
    width: 40px;
    height: 30px;
    object-fit: cover;
    border-radius: 5px;
}

.team-name {
    font-weight: 500;
}

.match-score {
    flex: 1;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.match-score.live {
    color: #e74c3c;
    animation: pulse 1s infinite;
}

.match-info {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}

.match-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: bold;
}

.status-live {
    background: #e74c3c;
    color: white;
    animation: pulse 1s infinite;
}

.status-completed {
    background: #27ae60;
    color: white;
}

.status-scheduled {
    background: #95a5a6;
    color: white;
}

/* Groupes */
.groups-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.group-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.group-header {
    padding: 15px;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
}

.group-table {
    width: 100%;
    border-collapse: collapse;
}

.group-table th,
.group-table td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.group-table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 0.8rem;
}

.group-table .team-cell {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-flag-small {
    width: 30px;
    height: 20px;
    object-fit: cover;
}

/* Calendrier */
.calendar-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    overflow-x: auto;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
}

.calendar-table th,
.calendar-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.calendar-table th {
    background: var(--worldcup-primary);
    color: white;
    position: sticky;
    top: 0;
}

/* Classement */
.ranking-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    overflow-x: auto;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.ranking-table th {
    background: var(--worldcup-primary);
    color: white;
}

.ranking-table .rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    font-weight: bold;
}

/* Actualités */
.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 20px;
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.news-title a {
    color: var(--worldcup-primary);
    text-decoration: none;
}

.news-title a:hover {
    text-decoration: underline;
}

.news-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.news-date {
    font-size: 0.8rem;
    color: #999;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .worldcup-title {
        font-size: 1.5rem;
    }
    
    .match-card {
        flex-direction: column;
        gap: 15px;
    }
    
    .team {
        width: 100%;
        justify-content: center;
    }
    
    .groups-container {
        grid-template-columns: 1fr;
    }
    
    .worldcup-nav {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .worldcup-nav-btn {
        border-radius: 10px;
    }
}