/*
Theme Name: Uncode Child
Description: Child theme for Uncode theme
Author: Undsgn™
Author URI: http://www.undsgn.com
Template: uncode
Version: 1.0.0
Text Domain: uncode
*/


/* Carte FSR - fond transparent, texte blanc (derneir résultat + prochain match)*/
.fsr-card {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 18px;
  padding: 22px 26px;
  max-width: 920px;
  margin: 0 auto;
}

.fsr-card__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

/* Carte FSR – fond bordeaux NRC */
.fsr-card--burgundy {
  background-color: #76232f;
  border: none; /* optionnel : supprime le liseré */
}

.fsr-team {
  display: grid;
  justify-items: center;
  gap: 12px;
}

/* ⬆️ Blasons +15 % (84px → 96px) */
.fsr-team__logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

/* ⬆️ Nom du club : +1 pt et graisse réduite */
.fsr-team__name {
  font-size: 15px;          /* était 14px */
  font-weight: 400;         /* réduction de la graisse */
  line-height: 1.3;
  text-align: center;
  opacity: 0.9;
  max-width: 240px;
}

.fsr-score {
  font-size: 54px;
  font-weight: 600;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

/* Meta : date + heure sur une ligne */
.fsr-card__meta {
  margin-top: 18px;
  text-align: center;
}

/* Date & heure : taille réduite et inline */
.fsr-card__date,
.fsr-card__time {
  display: inline;
  font-size: 26px;
  font-weight: 500;
  opacity: 0.95;
}

/* Séparateur date – heure */
.fsr-card__time::before {
  content: " – ";
  padding: 0 6px;
}

/* Responsive */
@media (max-width: 768px) {
  .fsr-card__row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .fsr-team__logo {
    width: 80px;
    height: 80px;
  }

  .fsr-score {
    justify-content: center;
    font-size: 44px;
  }

  .fsr-team__name {
    font-size: 14px;
  }

  .fsr-card__date,
  .fsr-card__time {
    font-size: 22px;
  }
}

/* ================================
   Mermaids – 5 derniers résultats
   Desktop: cartes identiques
   Mobile: date/heure tout en bas (sans changer le PHP)
   ================================ */

.fsr-matchcards{
  display: grid;
  gap: 14px;
  justify-items: center;
}

.fsr-matchcard{
  background: #76232f;
  color: #ffffff;
  border-radius: 28px;
  padding: 22px 28px;
  width: 100%;
  max-width: 1100px;
  box-sizing: border-box;
}

/* Desktop: 3 colonnes stables */
.fsr-matchcard__row{
  display: grid;
  grid-template-columns: 1fr 240px 1fr;
  align-items: center;
  gap: 20px;
}

.fsr-matchcard__team{
  display: grid;
  justify-items: center;
  gap: 10px;
}

.fsr-matchcard__logo{
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.fsr-matchcard__name{
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  opacity: 0.95;

  max-width: 360px;
  min-height: calc(2 * 1.2em);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fsr-matchcard__center{
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.fsr-matchcard__score{
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.5px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.fsr-matchcard__datetime{
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.fsr-matchcard__date,
.fsr-matchcard__time{
  font-size: 16px;
  font-weight: 400;
  opacity: 0.9;
}

/* (si présents) non utilisés ici */
.fsr-matchcard__scoreleft,
.fsr-matchcard__scoreright{
  display: none;
}

/* ================================
   MOBILE
   Objectif:
   - Equipe gauche
   - Score
   - Equipe droite
   - Date/heure TOUT EN BAS
   ================================ */
@media (max-width: 900px){

  .fsr-matchcard{
    max-width: 92vw;
    padding: 18px 20px;
    border-radius: 22px;
  }

  /* On passe en 1 colonne et on utilise des "areas" */
  .fsr-matchcard__row{
    grid-template-columns: 1fr;
    gap: 10px;
    grid-template-areas:
      "left"
      "score"
      "right"
      "datetime";
  }

  /* Place les teams */
  .fsr-matchcard__team--left{ grid-area: left; }
  .fsr-matchcard__team--right{ grid-area: right; }

  /* Astuce clé: on "démonte" le center pour positionner ses enfants */
  .fsr-matchcard__center{
    display: contents; /* IMPORTANT */
  }

  /* Le score devient un item de la grille */
  .fsr-matchcard__score{
    grid-area: score;
    font-size: 26px;
  }

  /* La date/heure devient un item de la grille TOUT EN BAS */
  .fsr-matchcard__datetime{
    grid-area: datetime;
    margin-top: 4px;
    justify-content: center;
  }

  .fsr-matchcard__date,
  .fsr-matchcard__time{
    font-size: 14px;
  }

  /* Ajustements typo teams */
  .fsr-matchcard__team{
    gap: 8px;
  }

  .fsr-matchcard__name{
    font-size: 18px;
    max-width: none;
    min-height: auto;
    -webkit-line-clamp: unset;
    overflow: visible;
  }
}


/* ================================
   Classement FSR (LNA) – logos dans la colonne Team
   ================================ */

.fsr-tablewrap{
  width: 100%;
  overflow-x: auto;
}

.fsr-table{
  width: 100%;
  border-collapse: collapse;
  color: #fff;
}

.fsr-table th,
.fsr-table td{
  border: 1px solid rgba(255,255,255,0.18);
  padding: 14px 16px;
  vertical-align: middle;
}

.fsr-table thead th{
  font-weight: 600;
  opacity: 0.95;
  text-align: left;
}

/* Colonnes numériques */
.fsr-td-num{
  text-align: center;
  width: 80px;
  white-space: nowrap;
}

/* Team cell avec logo */
.fsr-teamcell{
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
}

.fsr-teamcell__logo{
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
}

.fsr-teamcell__name{
  display: inline-block;
  line-height: 1.2;
}

/* Responsive: garder lisible */
@media (max-width: 768px){
  .fsr-table th,
  .fsr-table td{
    padding: 12px 12px;
  }

  .fsr-teamcell__logo{
    width: 24px;
    height: 24px;
  }

  .fsr-td-num{
    width: 64px;
  }
}


/* ================================
   LNA – 5 derniers résultats
   Desktop: cartes identiques
   Mobile: date/heure tout en bas
   ================================ */

.fsr-matchcards{
  display: grid;
  gap: 14px;
  justify-items: center;
}

.fsr-matchcard{
  background: #76232f;
  color: #ffffff;
  border-radius: 28px;
  padding: 22px 28px;
  width: 100%;
  max-width: 1100px;
  box-sizing: border-box;
}

/* Desktop: 3 colonnes stables */
.fsr-matchcard__row{
  display: grid;
  grid-template-columns: 1fr 240px 1fr;
  align-items: center;
  gap: 20px;
}

.fsr-matchcard__team{
  display: grid;
  justify-items: center;
  gap: 10px;
}

.fsr-matchcard__logo{
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.fsr-matchcard__name{
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  opacity: 0.95;

  max-width: 360px;
  min-height: calc(2 * 1.2em);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fsr-matchcard__center{
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.fsr-matchcard__score{
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.5px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.fsr-matchcard__datetime{
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.fsr-matchcard__date,
.fsr-matchcard__time{
  font-size: 16px;
  font-weight: 400;
  opacity: 0.9;
}

/* ================================
   MOBILE
   - Equipe gauche
   - Score
   - Equipe droite
   - Date/heure tout en bas
   ================================ */
@media (max-width: 900px){

  .fsr-matchcard{
    max-width: 92vw;
    padding: 18px 20px;
    border-radius: 22px;
  }

  .fsr-matchcard__row{
    grid-template-columns: 1fr;
    gap: 10px;
    grid-template-areas:
      "left"
      "score"
      "right"
      "datetime";
  }

  .fsr-matchcard__team--left{ grid-area: left; }
  .fsr-matchcard__team--right{ grid-area: right; }

  .fsr-matchcard__center{
    display: contents;
  }

  .fsr-matchcard__score{
    grid-area: score;
    font-size: 26px;
  }

  .fsr-matchcard__datetime{
    grid-area: datetime;
    margin-top: 4px;
    justify-content: center;
  }

  .fsr-matchcard__date,
  .fsr-matchcard__time{
    font-size: 14px;
  }

  .fsr-matchcard__team{
    gap: 8px;
  }

  .fsr-matchcard__name{
    font-size: 18px;
    max-width: none;
    min-height: auto;
    -webkit-line-clamp: unset;
    overflow: visible;
  }
}


/* Classement Seniors LNA : logo + alignement */
.fsr-standings__team{
  display: flex;
  align-items: center;
  gap: 10px;
}

.fsr-standings__logo{
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 24px;
}
