/* Styles personnalisés pour NiataNiataSports */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.bg-purple {
    background-color: #6f42c1 !important;
    color: #fff;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.match-card {
    transition: transform 0.2s;
    background: white;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.match-status {
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 20px;
}

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

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

.team-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.player-card {
    text-align: center;
    padding: 15px;
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.player-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.ranking-table th {
    background-color: #343a40;
    color: white;
}

.ranking-table tr:hover {
    background-color: #f1f1f1;
}

.stat-box {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.filters-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* --- Onglets scrollables sur mobile --- */
@media (max-width: 768px) {
  .nav-tabs-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .nav-tabs-scroll .nav-item {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
    .match-card .row {
        flex-direction: column;
        text-align: center;
    }
    
    .match-card .col-md-2,
    .match-card .col-md-7,
    .match-card .col-md-3 {
        margin-bottom: 10px;
    }
}