/* ============================================================
   CAPITAL DF — PÁGINA DE JOGADOR
   Importa as variáveis e base do site principal via herança.
   Caminhos relativos a: pages/jogadores/
   ============================================================ */

/* ── Hero do Jogador ─────────────────────────────────────── */
.player-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 5rem;
  overflow: hidden;
  background: #091427;
}

.player-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: top center;
  transform: scale(1.05);
  transition: transform 8s ease;
  will-change: transform;
}

.player-hero__bg.is-loaded {
  transform: scale(1);
}

/* Gradiente diagonal escurecendo da esquerda */
.player-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg,
      rgba(9,20,39,.97) 0%,
      rgba(9,20,39,.82) 38%,
      rgba(9,20,39,.30) 70%,
      transparent 100%),
    linear-gradient(to top,
      rgba(9,20,39,.95) 0%,
      transparent 55%);
}

.player-hero__inner {
  position: relative;
  width: 100%;
  z-index: 2;
}

/* ── Breadcrumb ─────────────────────────────────────────── */
.player-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  font-family: var(--font-heading, 'Oswald', sans-serif);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.4);
  margin-bottom: 2.5rem;
}

.player-breadcrumb a {
  color: rgba(255,255,255,.4);
  text-decoration: none;
  transition: color .2s;
}

.player-breadcrumb a:hover {
  color: #45A7DA;
}

.player-breadcrumb i {
  font-size: .6rem;
}

.player-breadcrumb__current {
  color: rgba(255,255,255,.75);
}

/* ── Badge de posição ─────────────────────────────────────── */
.player-position-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #45A7DA;
  border: 1px solid rgba(69,167,218,.35);
  background: rgba(69,167,218,.08);
  border-radius: 50px;
  padding: .38rem 1rem;
  margin-bottom: 1rem;
}

.player-position-badge i {
  font-size: .65rem;
}

/* ── Nome do Jogador ─────────────────────────────────────── */
.player-name {
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
  margin-bottom: .2rem;
  letter-spacing: -1px;
}

.player-name__last {
  color: #45A7DA;
  display: block;
}

.player-fullname {
  font-size: .85rem;
  color: rgba(255,255,255,.4);
  font-weight: 400;
  letter-spacing: .5px;
  margin-bottom: 2.5rem;
  display: block;
}

/* ── Grid de stats rápidas ───────────────────────────────── */
.player-quick-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.player-stat {
  padding: 1rem 1.75rem 1rem 0;
  margin-right: 1.75rem;
  border-right: 1px solid rgba(255,255,255,.08);
  min-width: 90px;
}

.player-stat:last-child {
  border-right: none;
}

.player-stat__value {
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  display: block;
  margin-bottom: .2rem;
}

.player-stat__label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,.35);
  display: block;
}

.player-stat__accent {
  color: #45A7DA;
}

/* ── Botão Mais Informações ──────────────────────────────── */
.player-cta {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  background: #45A7DA;
  border: none;
  border-radius: 6px;
  padding: .85rem 2rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .25s, transform .25s, box-shadow .25s;
  box-shadow: 0 8px 24px rgba(69,167,218,.3);
}

.player-cta:hover {
  background: #2d8fc2;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(69,167,218,.4);
  color: #fff;
}

.player-cta i {
  font-size: .9rem;
  transition: transform .25s;
}

.player-cta:hover i {
  transform: translateX(4px);
}

/* ── Número decorativo ao fundo ─────────────────────────── */
.player-hero__number {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: clamp(6rem, 18vw, 18rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.04);
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

/* ── Seção de conteúdo extra ─────────────────────────────── */
.player-content {
  background: #091427;
  padding: 5rem 0;
}

.player-info-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 2.5rem;
  height: 100%;
}

.player-info-card__title {
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #45A7DA;
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.player-data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .8rem 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: .9rem;
}

.player-data-row:last-child {
  border-bottom: none;
}

.player-data-row__key {
  color: rgba(255,255,255,.4);
  font-size: .82rem;
}

.player-data-row__val {
  color: #fff;
  font-weight: 600;
  text-align: right;
}

/* ── Animações de entrada do Hero ───────────────────────── */
@keyframes pheUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pheFadeNum {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Cada item anima automaticamente via CSS — sem depender de JS */
.player-breadcrumb   { animation: pheUp .55s cubic-bezier(.22,.61,.36,1) .05s both; }
.player-position-badge { animation: pheUp .55s cubic-bezier(.22,.61,.36,1) .18s both; }
.player-name         { animation: pheUp .60s cubic-bezier(.22,.61,.36,1) .32s both; }
.player-fullname     { animation: pheUp .55s cubic-bezier(.22,.61,.36,1) .44s both; }
.player-quick-stats  { animation: pheUp .55s cubic-bezier(.22,.61,.36,1) .58s both; }
.player-cta          { animation: pheUp .55s cubic-bezier(.22,.61,.36,1) .72s both; }

/* Número decorativo */
.player-hero__number { animation: pheFadeNum 1.6s ease .9s both; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991px) {
  .player-hero {
    min-height: 100svh;
    padding-bottom: 4rem;
  }

  .player-hero__overlay {
    background:
      linear-gradient(to bottom,
        rgba(9,20,39,.6) 0%,
        rgba(9,20,39,.98) 60%);
  }

  .player-hero__overlay::after {
    display: none;
  }

  .player-quick-stats {
    gap: .5rem;
  }

  .player-stat {
    padding: .75rem 1.25rem .75rem 0;
    margin-right: 1.25rem;
  }
}

@media (max-width: 575px) {
  .player-name {
    font-size: clamp(2.2rem, 12vw, 3.5rem);
  }

  .player-quick-stats {
    flex-wrap: wrap;
    gap: 0;
  }

  .player-stat {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.07);
    padding: .6rem 0;
    margin-right: 0;
    width: 50%;
  }

  .player-cta {
    width: 100%;
    justify-content: center;
  }
}
