/* ============================================
   WIDGET PROCHAINS MATCHS — "Sports Broadcast"
   Inspiré des overlays TV de retransmission sportive
   ============================================ */

/* Variables du widget */
.gw-widget {
  --gw-navy: #021b43;
  --gw-navy-light: #0a2a5c;
  --gw-orange: #ff5801;
  --gw-blue: #16baff;
  --gw-pink: #b7035b;
  --gw-bg: #f8f9fa;
  --gw-accent: var(--gw-navy);

  font-family: 'Montserrat', 'Quicksand', sans-serif;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 15px;
}

/* ===== EN-TÊTE ===== */

.gw-header {
  background: var(--gw-accent);
  padding: 14px 16px 12px;
  position: relative;
  overflow: hidden;
}

/* Variante féminine */
.gw-header--fem {
  --gw-accent: var(--gw-pink);
}

/* Motif diagonal décoratif sur le header */
.gw-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: -20px;
  width: 80px;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  transform: skewX(-12deg);
}
.gw-header::after {
  content: '';
  position: absolute;
  top: 0;
  right: 30px;
  width: 30px;
  height: 100%;
  background: rgba(255, 255, 255, 0.03);
  transform: skewX(-12deg);
}

/* Accent bar en bas du header (orange vif) */
.gw-header__accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gw-orange);
}

/* Label "Prochaines rencontres" */
.gw-header__label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gw-blue);
  margin-bottom: 2px;
}

/* Nom du championnat */
.gw-header__title {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
}

/* ===== CORPS DU WIDGET ===== */

.gw-body {
  padding: 0;
}

/* Séparateur de date */
.gw-date {
  background: var(--gw-bg);
  padding: 6px 16px;
  border-bottom: 1px solid #e9ecef;
}

.gw-date span {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #6c757d;
  letter-spacing: 0.5px;
}

/* ===== LIGNE DE MATCH ===== */

.gw-match {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s ease;
  text-decoration: none !important;
  color: inherit;
}

.gw-match:hover {
  background: #f0f6ff;
  color: inherit;
}

/* Match déjà joué — légère opacité réduite */
.gw-match--played {
  background: #fafafa;
}

/* Équipe (nom + logo) */
.gw-match__team {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

/* Domicile : nom à gauche, logo à droite */
.gw-match__team--home {
  justify-content: flex-end;
  text-align: right;
}

/* Extérieur : logo à gauche, nom à droite */
.gw-match__team--away {
  justify-content: flex-start;
  text-align: left;
}

/* Nom de l'équipe */
.gw-match__name {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--gw-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* Logo */
.gw-match__logo {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gw-match__logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* ===== SCORE / VS ===== */

.gw-match__score {
  flex: 0 0 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0 6px;
}

/* Points (score) */
.gw-match__pts {
  font-size: 15px;
  font-weight: 800;
  color: var(--gw-navy);
  min-width: 22px;
  text-align: center;
}

.gw-match__sep {
  font-size: 12px;
  color: #adb5bd;
  font-weight: 300;
}

/* Badge "VS" pour les matchs à venir */
.gw-match__vs {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: var(--gw-orange);
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: 1px;
}

/* Au hover, le VS pulse légèrement */
.gw-match:hover .gw-match__vs {
  transform: scale(1.05);
  transition: transform 0.15s ease;
}

/* ===== ÉTAT VIDE ===== */

.gw-widget--empty {
  padding: 30px 16px;
  text-align: center;
  color: #adb5bd;
  font-size: 13px;
  font-style: italic;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 767.98px) {
  .gw-header__title {
    font-size: 13px;
  }

  .gw-match {
    padding: 8px 10px;
  }

  .gw-match__name {
    font-size: 11px;
  }

  .gw-match__score {
    flex: 0 0 55px;
    margin: 0 3px;
  }

  .gw-match__pts {
    font-size: 13px;
  }

  .gw-match__logo {
    width: 24px;
    height: 24px;
  }

  .gw-match__logo img {
    width: 22px;
    height: 22px;
  }
}
