/**
 * Styles communs pour les cartes de matchs
 * Utilisé par ResultsGroup et calendrier_panel
 */

/* Styles de base pour tous les écrans */
.results-group {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.results-group .rg-scroll {
  overflow: auto;
  max-height: 460px;
}

.results-group .match-day-block {
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.results-group .match-day-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: #6b7280;
  margin: 4px 0 6px 2px;
  font-family: var(--font-family-number, inherit);
}

.results-group .match-card {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: center;
  min-height: 40px;
  padding: 0.5rem;
  border-radius: 10px;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.results-group .match-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.results-group .match-card:nth-child(odd) {
  background: #f6f8fc;
}

.results-group .match-card:nth-child(even) {
  background: #eef2f9;
}

.results-group .team {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.results-group .team span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1rem;
}

.results-group .team-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 28px;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.08));
}

.results-group .home {
  flex-direction: row-reverse;
  text-align: right;
}

.results-group .away {
  text-align: left;
}

.results-group .score {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-number, inherit);
  font-weight: 800;
  font-size: 1rem;
}

/* Styles desktop (écrans larges) */
@media (min-width: 769px) {
  .results-group {
    border-radius: 14px;
    padding: 18px;
  }
  
  .results-group .rg-scroll {
    padding-right: 6px;
  }
  
  .results-group .match-day-block {
    margin-bottom: 12px;
    gap: 0.3rem;
  }
  
  .results-group .match-day-date {
    margin: 6px 0 10px 2px;
  }
  
  .results-group .match-card {
    grid-template-columns: 1fr 72px 1fr;
    min-height: 38px;
    height: 38px;
    padding: 6px 10px;
  }
  
  .results-group .team span {
    font-size: 0.95rem;
  }
  
  .results-group .team-logo {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
  }
}

/* Styles mobile (écrans étroits) */
@media (max-width: 768px) {
  .results-group {
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
    padding: 0.75rem 0.75rem 1rem;
  }
}

/* ====== STYLES POUR LE CALENDRIER ====== */
.calendrier-stats {
    margin-bottom: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.stats-summary {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-accent, #2563eb);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive pour les stats */
@media (max-width: 768px) {
    .stats-summary {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
}
