@import url("./design-tokens.css");

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--fb-ink);
}

body {
  margin: 0;
  color: #f8fbff;
  font-family: var(--fb-font-sans);
  background:
    radial-gradient(circle at 12% 8%, rgba(39, 209, 127, 0.18), transparent 32rem),
    radial-gradient(circle at 88% 5%, rgba(244, 197, 66, 0.16), transparent 28rem),
    linear-gradient(135deg, #06111f 0%, #10233d 48%, #07131f 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.fb-page {
  min-height: 100vh;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 38px 38px;
}

.fb-container {
  width: min(var(--fb-max-width), calc(100vw - 32px));
  margin: 0 auto;
}

.fb-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}

.fb-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--fb-font-display);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: clamp(24px, 3vw, 36px);
}

.fb-brand img { width: 48px; height: 48px; }

.fb-nav-links {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--fb-muted);
  font-size: 14px;
}

.fb-nav-links a {
  padding: 9px 12px;
  border-radius: 999px;
}

.fb-nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.fb-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border: 1px solid var(--fb-line);
  border-radius: var(--fb-radius-xl);
  padding: clamp(28px, 6vw, 70px);
  background:
    linear-gradient(90deg, rgba(6, 17, 31, 0.96) 0%, rgba(6, 17, 31, 0.82) 45%, rgba(6, 17, 31, 0.3) 100%),
    url("./assets/svg/stadium-night.svg") center / cover no-repeat;
  box-shadow: var(--fb-shadow-soft);
}

.fb-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -48% 28%;
  height: 430px;
  background: url("./assets/svg/field-arc.svg") center bottom / contain no-repeat;
  opacity: 0.9;
  pointer-events: none;
}

.fb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 7px 12px;
  border: 1px solid rgba(39,209,127,0.4);
  border-radius: 999px;
  color: var(--fb-grass);
  background: rgba(39, 209, 127, 0.08);
  font-family: var(--fb-font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.fb-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  font-family: var(--fb-font-display);
  font-size: clamp(54px, 9vw, 112px);
  line-height: 0.86;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.fb-hero h1 span {
  color: var(--fb-gold);
  text-shadow: 0 5px 0 rgba(0,0,0,0.22);
}

.fb-hero p {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin: 24px 0 0;
  color: #d5e2f2;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.fb-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.fb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.fb-btn:hover { transform: translateY(-2px); }

.fb-btn-primary {
  color: #06111f;
  background: linear-gradient(135deg, var(--fb-gold), #ffe58c);
  box-shadow: 0 12px 30px rgba(244,197,66,0.22);
}

.fb-btn-secondary {
  color: #fff;
  border-color: var(--fb-line);
  background: rgba(255,255,255,0.07);
}

.fb-section {
  margin: 34px 0;
}

.fb-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.fb-section-title {
  margin: 0;
  font-family: var(--fb-font-display);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.fb-section-subtitle {
  margin: 8px 0 0;
  color: var(--fb-muted);
}

.fb-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.fb-card {
  border: 1px solid var(--fb-line);
  border-radius: var(--fb-radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent),
    var(--fb-card);
  box-shadow: var(--fb-shadow-soft);
  backdrop-filter: blur(14px);
}

.fb-card-pad { padding: 22px; }

.fb-card-4 { grid-column: span 4; }
.fb-card-5 { grid-column: span 5; }
.fb-card-6 { grid-column: span 6; }
.fb-card-7 { grid-column: span 7; }
.fb-card-8 { grid-column: span 8; }
.fb-card-12 { grid-column: span 12; }

.fb-stat-card {
  min-height: 164px;
  position: relative;
  overflow: hidden;
}

.fb-stat-card::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -44px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.15);
}

.fb-stat-label {
  color: var(--fb-muted);
  font-family: var(--fb-font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.fb-stat-value {
  margin-top: 12px;
  font-family: var(--fb-font-display);
  font-size: 56px;
  line-height: 0.9;
}

.fb-stat-delta {
  display: inline-flex;
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--fb-grass);
  background: rgba(39,209,127,0.11);
  font-size: 13px;
  font-weight: 800;
}

.fb-player-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  color: #07131f;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,244,217,0.94)),
    url("./assets/svg/card-paper.svg") center / cover no-repeat;
}

.fb-player-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 10px solid rgba(7,19,31,0.08);
  border-radius: inherit;
  pointer-events: none;
}

.fb-player-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
}

.fb-player-name {
  margin: 0;
  font-family: var(--fb-font-display);
  font-size: 48px;
  line-height: 0.9;
  text-transform: uppercase;
}

.fb-position {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--fb-red-stitch);
  font-family: var(--fb-font-display);
  font-size: 26px;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.18);
}

.fb-silhouette {
  height: 132px;
  margin: 18px 0;
  background: url("./assets/svg/batter-silhouette.svg") center bottom / contain no-repeat;
  opacity: 0.9;
}

.fb-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.fb-metric {
  padding: 10px;
  border-radius: 14px;
  background: rgba(7,19,31,0.08);
}

.fb-metric b {
  display: block;
  font-family: var(--fb-font-display);
  font-size: 26px;
  line-height: 1;
}

.fb-metric span {
  color: rgba(7,19,31,0.65);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fb-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--fb-radius-md);
}

.fb-table th,
.fb-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}

.fb-table th {
  color: var(--fb-muted);
  font-family: var(--fb-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.fb-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.fb-chip-hot { color: #06111f; background: var(--fb-grass); }
.fb-chip-watch { color: #06111f; background: var(--fb-gold); }
.fb-chip-cold { color: #fff; background: var(--fb-red-stitch); }

.fb-lineup {
  display: grid;
  gap: 10px;
}

.fb-lineup-slot {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
}

.fb-order {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #06111f;
  background: var(--fb-gold);
  font-weight: 1000;
}

.fb-small {
  color: var(--fb-muted);
  font-size: 13px;
}

.fb-news {
  display: grid;
  gap: 12px;
}

.fb-news-item {
  padding-left: 14px;
  border-left: 3px solid var(--fb-grass);
}

.fb-news-item strong { display: block; margin-bottom: 4px; }

.fb-footer {
  margin-top: 44px;
  padding: 34px 0 46px;
  color: var(--fb-muted);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 860px) {
  .fb-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .fb-nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .fb-hero {
    min-height: 520px;
  }

  .fb-hero::after {
    left: -20%;
    right: -40%;
    bottom: -42%;
    opacity: 0.62;
  }

  .fb-card-4,
  .fb-card-5,
  .fb-card-6,
  .fb-card-7,
  .fb-card-8 {
    grid-column: span 12;
  }

  .fb-section-head {
    display: block;
  }
}

@media (max-width: 560px) {
  .fb-container { width: min(100% - 20px, var(--fb-max-width)); }
  .fb-hero { padding: 24px; border-radius: 22px; }
  .fb-actions { flex-direction: column; }
  .fb-btn { width: 100%; }
  .fb-metrics { grid-template-columns: repeat(2, 1fr); }
  .fb-table th:nth-child(4), .fb-table td:nth-child(4) { display: none; }
}
