* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header du Match */
.match-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 2rem 0;
    border-bottom: 3px solid #3b82f6;
}

.competition-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.competition {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.match-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
}

.venue {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    opacity: 0.8;
}

.live-badge {
    background-color: #ef4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

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

.match-score {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.team {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.away-team {
    flex-direction: row-reverse;
    text-align: right;
}

.team-logo {
    font-size: 3rem;
}

.team-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.team-info p {
    opacity: 0.7;
    font-size: 0.875rem;
}

.score-time {
    text-align: center;
}

.score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.home-score, .away-score {
    font-size: 3rem;
    font-weight: 700;
    color: #3b82f6;
}

.separator {
    font-size: 2rem;
    opacity: 0.5;
}

.match-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Navigation des Onglets */
.tabs-nav {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
}

.tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.tab-btn:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}

.tab-btn.active {
    background-color: #3b82f6;
    color: white;
}

/* Contenu Principal */
.main-content {
    padding: 2rem 0;
}

.tab-content {
    display: none;
}

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

/* Cards */
.card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-content {
    padding: 1.5rem;
}

/* Timeline */
.timeline-event {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #f8fafc;
    margin-bottom: 1rem;
    transition: background-color 0.2s;
}

.timeline-event:hover {
    background-color: #f1f5f9;
}

.event-time {
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    min-width: 40px;
    text-align: center;
}

.event-icon {
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.event-details {
    flex: 1;
}

.event-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.goal-badge {
    background-color: #dcfce7;
    color: #166534;
}

.sub-badge {
    background-color: #dbeafe;
    color: #1e40af;
}

.card-badge {
    background-color: #fef3c7;
    color: #92400e;
}

.event-team {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.event-player {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.event-description {
    font-size: 0.875rem;
    color: #64748b;
}

/* Compositions */
.lineups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-badge {
    background-color: #f1f5f9;
    color: #1e293b;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.team-badge.home {
    background-color: #dbeafe;
    color: #1e40af;
}

.team-badge.away {
    background-color: #fecaca;
    color: #991b1b;
}

.player-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.player {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: #f8fafc;
}

.player-number {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
}

.player-number.gk {
    background-color: #eab308;
}

.player-number.def {
    background-color: #3b82f6;
}

.player-number.mid {
    background-color: #10b981;
}

.player-number.att {
    background-color: #ef4444;
}

.player-name {
    font-weight: 600;
}

.player-position {
    font-size: 0.875rem;
    color: #64748b;
}

/* Statistiques */
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-value, .away-value {
    font-size: 1.125rem;
    font-weight: 700;
    min-width: 2rem;
}

.stat-name {
    font-weight: 500;
    color: #64748b;
}

.stat-bar {
    display: flex;
    height: 0.75rem;
    border-radius: 0.375rem;
    overflow: hidden;
    background-color: #f1f5f9;
}

.home-bar {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transition: width 0.5s ease;
}

.away-bar {
    background: linear-gradient(90deg, #ef4444, #dc2626);
    transition: width 0.5s ease;
    margin-left: auto;
}

/* Chat */
.chat-card {
    height: 600px;
    display: flex;
    flex-direction: column;
}

.chat-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.message-count {
    background-color: #f1f5f9;
    color: #1e293b;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.message {
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: #f8fafc;
}

.message.highlighted {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border: 1px solid #93c5fd;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.username {
    font-weight: 600;
    color: #3b82f6;
    font-size: 0.875rem;
}

.timestamp {
    font-size: 0.75rem;
    color: #64748b;
}

.message-text {
    font-size: 0.875rem;
}

.chat-input {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
}

.message-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.message-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.send-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.send-btn:hover {
    background-color: #2563eb;
}



/* Navigation Menu */
.main-nav {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: #1e293b;
}

.nav-logo {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.nav-link:hover {
    color: #1e293b;
    background-color: #f1f5f9;
}

.nav-link.active {
    color: #3b82f6;
    background-color: #dbeafe;
}


/* Responsive */
@media (max-width: 768px) {
    .match-score {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .away-team {
        flex-direction: row;
        text-align: center;
    }
    
    .tabs {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .tab-btn {
        border-radius: 0;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .lineups-grid {
        grid-template-columns: 1fr;
    }
    
    .competition-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .match-details {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .match-header {
        padding: 1rem 0;
    }
    
    .match-score {
        padding: 1rem;
    }
    
    .team-logo {
        font-size: 2rem;
    }
    
    .home-score, .away-score {
        font-size: 2rem;
    }
    
    .team-info h2 {
        font-size: 1.125rem;
    }
}