/* =================================================================
   INJURIES PAGES CSS – injuries.css  (blessures.php + blessures-joueur.php)
   ================================================================= */

/* ––––––––––––––––––––––––––––––
   SHELL / LAYOUT
   –––––––––––––––––––––––––––––– */

.bbd-wrap{
  max-width: 1240px;
  margin: 0 auto;
  padding: 0;
}

.injuries-shell{
  width: 100%;
  max-width: 1240px;
  margin: 18px auto 40px;
  box-sizing: border-box;
}

@media (max-width: 640px){
  .bbd-wrap,
  .injuries-shell,
  .player-injury-shell{
    padding: 0 12px;
  }
}

/* ––––––––––––––––––––––––––––––
   HERO (blessures.php)
   –––––––––––––––––––––––––––––– */

.bbd-hero{
  position: relative;
  margin: 10px 0 18px;
  padding: 26px 26px 22px;
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,.08);
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(29,78,216,.12), transparent),
    radial-gradient(600px 200px at 100% 0%, rgba(239,68,68,.10), transparent),
    #fff;
  box-shadow: 0 18px 40px rgba(15,23,42,.08);
}

.bbd-hero h1{
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 950;
  color: #0f172a;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.bbd-hero p{
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
  font-weight: 600;
  max-width: 980px;
}

.injuries-hero-meta{
  margin-top: 14px;
}

.bbd-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15,23,42,.04);
  border: 1px solid rgba(15,23,42,.08);
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

/* ––––––––––––––––––––––––––––––
   SECTION TITLES / UTILITIES
   –––––––––––––––––––––––––––––– */

.bbd-sectionTitle{
  font-size: 22px;
  font-weight: 950;
  color: #0f172a;
  letter-spacing: -.01em;
  margin: 22px 0 14px;
}

.bbd-muted{
  color: rgba(15,23,42,.60);
}

.bbd-small{
  font-size: 13px;
}

/* ––––––––––––––––––––––––––––––
   CARDS
   –––––––––––––––––––––––––––––– */

.bbd-card{
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
  transition: box-shadow .2s, transform .2s;
}

.bbd-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15,23,42,.10);
}

.bbd-empty{
  padding: 18px 20px;
  color: rgba(15,23,42,.72);
  font-weight: 600;
}

.injuries-shell > .bbd-card{
  margin-bottom: 12px;
}

/* ––––––––––––––––––––––––––––––
   PILLS (status badges)
   –––––––––––––––––––––––––––––– */

.bbd-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.04);
  font-size: 12px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
  vertical-align: middle;
  letter-spacing: .02em;
}

.bbd-pill.out{
  color: #b91c1c;
  background: #fee2e2;
  border-color: rgba(239,68,68,.25);
}

.bbd-pill.dtd{
  color: #92400e;
  background: #fef3c7;
  border-color: rgba(245,158,11,.30);
}

.bbd-pill.in{
  color: #166534;
  background: #dcfce7;
  border-color: rgba(34,197,94,.30);
}

.bbd-pill.edit{
  color: #1d4ed8;
  background: rgba(37,99,235,.10);
  border-color: rgba(37,99,235,.20);
}

.bbd-pill.gleague{
  color: #5b21b6;
  background: rgba(139,92,246,.12);
  border-color: rgba(139,92,246,.24);
}

.injury-card--gleague{
  border-left: 4px solid #8b5cf6;
}

/* ––––––––––––––––––––––––––––––
   LINKS / META / COMMENT
   –––––––––––––––––––––––––––––– */

.bbd-link{
  color: #1d4ed8;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.bbd-link:hover{
  text-decoration: underline;
}

.bbd-meta{
  padding: 0 18px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #475569;
}

.bbd-comment{
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(15,23,42,.05);
  font-size: 14px;
  line-height: 1.5;
  color: #0f172a;
  font-weight: 700;
}

/* ––––––––––––––––––––––––––––––
   ACTIVE INJURY CARDS (list layout)
   –––––––––––––––––––––––––––––– */

.injuries-row-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 10px;
  flex-wrap: wrap;
}

.injuries-player-head{
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.injuries-avatar-lg{
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 16px;
  flex: 0 0 64px;
  background: #f1f5f9;
  border: 1px solid rgba(148,163,184,.22);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

.bbd-name{
  display: inline-block;
  font-size: 18px;
  font-weight: 950;
  color: #0f172a;
  line-height: 1.2;
  margin-right: 8px;
  letter-spacing: -.01em;
}

.injuries-team-logo-md{
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
  margin-left: 6px;
}

/* ––––––––––––––––––––––––––––––
   ACTIVE INJURY CARD – GRID LAYOUT
   –––––––––––––––––––––––––––––– */

.injury-card{
  padding: 0;
  overflow: hidden;
}

.injury-card__grid{
  display: grid;
  grid-template-columns: 220px 120px minmax(0, 1fr) 170px;
}

.injury-card__col{
  padding: 20px 18px;
  min-width: 0;
}

.injury-card__col + .injury-card__col{
  border-left: 1px solid rgba(15,23,42,.08);
}

.injury-card__col--player{
  display: flex;
  align-items: center;
  gap: 14px;
}

.injury-card__headshot{
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  flex: 0 0 80px;
  background: #f8fafc;
  border: 3px solid #fff;
  box-shadow: 0 8px 18px rgba(15,23,42,.15);
}

.injury-card__player-meta{
  min-width: 0;
}

.injury-card__name{
  font-size: 16px;
  line-height: 1.15;
  font-weight: 950;
  color: #0f172a;
  letter-spacing: -.01em;
}

.injury-card__col--team{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}

.injury-card__team-logo{
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(15,23,42,.10));
}

.injury-card__team-tri{
  font-size: 14px;
  font-weight: 900;
  color: #475569;
  letter-spacing: .08em;
}

.injury-card__col--status{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.injury-card__status-row{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.injury-card__status-pill{
  font-size: 13px;
  min-height: 30px;
  padding: 0 12px;
}

.injury-card__dates{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #475569;
}

.injury-card__comment{
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(15,23,42,.05);
  font-size: 14px;
  line-height: 1.5;
  color: #0f172a;
  font-weight: 700;
}

.injury-card__col--link{
  display: flex;
  align-items: center;
  justify-content: center;
}

.injury-card__link{
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 1100px){
  .injury-card__grid{
    grid-template-columns: 1fr;
  }

  .injury-card__col + .injury-card__col{
    border-left: none;
    border-top: 1px solid rgba(15,23,42,.08);
  }

  .injury-card__col--team,
  .injury-card__col--link{
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
  }

  .injury-card__col--team{
    flex-direction: row;
    gap: 12px;
  }
}

/* ––––––––––––––––––––––––––––––
   EVENTS TABLE
   –––––––––––––––––––––––––––––– */

.injuries-events-note{
  margin: 0 0 10px;
}

.injuries-table-wrap{
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.bbd-table{
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  border-spacing: 0;
}

.bbd-table thead th{
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  padding: 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #64748b;
  border-bottom: 1px solid rgba(15,23,42,.08);
}

.bbd-table tbody td{
  padding: 14px;
  border-bottom: 1px solid rgba(226,232,240,.95);
  vertical-align: middle;
  font-size: 14px;
  color: #0f172a;
  font-weight: 700;
}

.bbd-table tbody tr:last-child td{
  border-bottom: 0;
}

.bbd-table tbody tr:hover{
  background: #f8fafc;
}

.injuries-table-player{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.injuries-avatar-sm{
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 12px;
  flex: 0 0 40px;
  background: #f1f5f9;
  border: 1px solid rgba(148,163,184,.22);
}

.injuries-team-logo-sm{
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  margin-left: 6px;
}

/* ––––––––––––––––––––––––––––––
   HISTORY ROWS
   –––––––––––––––––––––––––––––– */

.injury-history{
  display: flex;
  flex-direction: column;
}

.injury-history__row{
  display: grid;
  grid-template-columns: 220px 110px 120px 160px 1fr;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid rgba(15,23,42,.06);
  transition: background .15s;
}

.injury-history__row:hover{
  background: #f8fafc;
}

.injury-history__player{
  display: flex;
  align-items: center;
  gap: 10px;
}

.injury-history__avatar{
  width: 38px;
  height: 38px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  aspect-ratio: 1/1;
}

.injury-history__team{
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.injury-history__team img{
  width: 20px;
}

.injury-history__status{
  font-weight: 800;
}

.injury-history__dates{
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: #64748b;
  font-weight: 700;
}

.injury-history__comment{
  font-size: 14px;
  color: #0f172a;
  font-weight: 600;
}

/* ––––––––––––––––––––––––––––––
   SEO BLOCK
   –––––––––––––––––––––––––––––– */

.bbd-seo-wrap{
  margin-top: 10px;
}

.bbd-seo{
  padding: 22px 24px;
  border-radius: 20px;
  background:
    radial-gradient(400px 120px at 0% 0%, rgba(29,78,216,.08), transparent),
    #fff;
}

.injuries-seo-title{
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 950;
  color: #0f172a;
  letter-spacing: -.01em;
}

.bbd-seo p{
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(15,23,42,.78);
  font-weight: 600;
}

.injuries-seo-note{
  margin-bottom: 0;
}

/* ––––––––––––––––––––––––––––––
   PLAYER PAGE – SHELL
   –––––––––––––––––––––––––––––– */

.player-injury-shell{
  width: 100%;
  max-width: 1240px;
  margin: 16px auto 40px;
  box-sizing: border-box;
}

/* ––––––––––––––––––––––––––––––
   PLAYER PAGE – HERO
   –––––––––––––––––––––––––––––– */

.player-hero{
  display: flex;
  gap: 20px;
  padding: 22px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(15,23,42,.08);
  margin-bottom: 16px;
}

.player-hero-left{
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.player-hero-headshot{
  width: 110px;
  height: 110px;
  border-radius: 20px;
  object-fit: cover;
  background: #f1f5f9;
  flex: 0 0 110px;
}

.player-hero-body{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.player-hero-name{
  font-size: 32px;
  font-weight: 950;
  color: #0f172a;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.player-hero-meta{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.player-status{
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .04em;
}

.player-status.out{ background: #fee2e2; color: #b91c1c; }
.player-status.dtd{ background: #fef3c7; color: #92400e; }
.player-status.on{  background: #dcfce7; color: #166534; }

.player-meta{
  padding: 5px 10px;
  border-radius: 999px;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

.player-hero-active{
  padding: 10px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(15,23,42,.06);
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.5;
}

.player-hero-comment{
  font-size: 14px;
  line-height: 1.45;
  color: #0f172a;
  font-weight: 600;
}

.player-hero-right{
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
}

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

.player-team-tri{
  font-weight: 900;
  letter-spacing: .1em;
  color: #475569;
  font-size: 14px;
}

/* ––––––––––––––––––––––––––––––
   PLAYER PAGE – PANELS
   –––––––––––––––––––––––––––––– */

.player-panel{
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(15,23,42,.08);
  padding: 18px 20px;
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
  margin-bottom: 14px;
}

.player-panel h2{
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 950;
  color: #0f172a;
  letter-spacing: -.01em;
}

/* ––––––––––––––––––––––––––––––
   PLAYER PAGE – LEGEND
   –––––––––––––––––––––––––––––– */

.inj-legend{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.inj-legend__dot{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.inj-legend__sw{
  width: 12px;
  height: 12px;
  border-radius: 4px;
  border: 1px solid rgba(148,163,184,.45);
  display: inline-block;
  flex-shrink: 0;
}

.inj-legend__sw.out{ background: #fee2e2; border-color: #fecaca; }
.inj-legend__sw.dtd{ background: #ffedd5; border-color: #fed7aa; }
.inj-legend__sw.on{  background: #ecfdf5; border-color: #bbf7d0; }

/* ––––––––––––––––––––––––––––––
   PLAYER PAGE – CALENDAR
   –––––––––––––––––––––––––––––– */

.inj-cal__month{
  border: 1px solid rgba(148,163,184,.30);
  border-radius: 14px;
  padding: 10px 12px;
  margin-top: 10px;
  background: #fff;
}

.inj-cal__month > summary{
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: #0f172a;
}

.inj-cal__month > summary::-webkit-details-marker{
  display: none;
}

.inj-cal__summary-right{
  font-weight: 600;
  color: #475569;
  font-size: .87rem;
}

.inj-cal__grid{
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.inj-cal__dow{
  font-size: .75rem;
  color: #64748b;
  text-align: center;
  font-weight: 700;
}

.inj-cal__day{
  border: 1px solid rgba(148,163,184,.30);
  border-radius: 10px;
  background: #fff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  transition: opacity .12s;
  user-select: none;
}

.inj-cal__day.off{ background: #fee2e2; border-color: #fecaca; color: #b91c1c; }
.inj-cal__day.dtd{ background: #ffedd5; border-color: #fed7aa; color: #92400e; }
.inj-cal__day.on{  background: #ecfdf5; border-color: #bbf7d0; color: #166534; }
.inj-cal__day.zero{ opacity: .28; background: #fff; }

.inj-cal__day .gmark{
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(15,23,42,.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: 0;
}

.inj-cal__day .gmark.game   { background: #94a3b8; }
.inj-cal__day .gmark.played { background: #22c55e; }
.inj-cal__day .gmark.missed { background: #ef4444; }

/* V/D fusionné dans le dot – .gresult masqué */
.inj-cal__day .gresult{ display: none; }

/* ––––––––––––––––––––––––––––––
   PLAYER PAGE – HISTORY TABLE
   –––––––––––––––––––––––––––––– */

.inj-hist-table{
  width: 100%;
  border-collapse: collapse;
}

.inj-hist-table th,
.inj-hist-table td{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(148,163,184,.28);
  vertical-align: top;
  font-size: 14px;
  text-align: left;
}

.inj-hist-table th{
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  background: #f8fafc;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.inj-hist-table tbody tr:last-child td{
  border-bottom: 0;
}

.inj-hist-table tbody tr:hover{
  background: rgba(15,23,42,.02);
}

/* ––––––––––––––––––––––––––––––
   RESPONSIVE – shared
   –––––––––––––––––––––––––––––– */

@media (max-width: 860px){
  .bbd-hero{
    padding: 18px;
    border-radius: 18px;
  }

  .bbd-hero h1{
    font-size: 21px;
  }

  .injuries-row-head{
    padding: 14px 14px 10px;
  }

  .bbd-meta{
    padding: 0 14px;
  }

  .bbd-comment{
    padding: 10px 14px 16px;
  }

  .bbd-seo{
    padding: 18px;
  }

  .player-hero{
    flex-wrap: wrap;
  }

  .player-hero-right{
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
  }
}

@media (max-width: 640px){
  .bbd-hero h1{
    font-size: 19px;
  }

  .bbd-hero p,
  .bbd-comment,
  .bbd-seo p{
    font-size: 14px;
  }

  .injuries-player-head{
    align-items: flex-start;
  }

  .injuries-avatar-lg{
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-radius: 14px;
  }

  .bbd-name{
    font-size: 16px;
    display: block;
    margin: 0 0 6px;
  }

  .bbd-link{
    font-size: 13px;
  }

  .bbd-meta{
    font-size: 13px;
    line-height: 1.5;
  }

  .bbd-table{
    min-width: 820px;
  }

  .injury-history__row{
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .player-hero-name{
    font-size: 24px;
  }

  .player-hero-headshot{
    width: 80px;
    height: 80px;
    flex-basis: 80px;
  }

  .inj-cal__grid{
    gap: 6px;
  }

  .inj-cal__day{
    padding: 12px 0;
    font-size: .85rem;
  }

  .player-hero{
    gap: 14px;
    padding: 16px;
  }

  .player-hero-left{
    flex-wrap: wrap;
  }
}
