/* =============================================
   ZAN TEATOR — BASEBALL CAREER ARCHIVE
   style.css
   ============================================= */

/* === RESET & BASE === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #0d1b2a;
  --navy-mid: #12253a;
  --navy-light: #1a3250;
  --gold: #c9a227;
  --gold-light: #e8c44a;
  --red: #b83232;
  --cream: #f5f0e8;
  --cream-dim: #e8e2d5;
  --white: #ffffff;
  --gray: #8a9bb0;
  --gray-light: #c4cfdb;

  --font-display: "Oswald", sans-serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-mono: "JetBrains Mono", monospace;

  --radius: 4px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--navy);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #0a1520 0%, #0d1b2a 40%, #142236 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 80% 20%,
      rgba(201, 162, 39, 0.07) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 10% 90%,
      rgba(184, 50, 50, 0.08) 0%,
      transparent 50%
    );
  pointer-events: none;
}

/* Stitched line texture on hero */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--red) 0%,
    var(--gold) 50%,
    var(--red) 100%
  );
}

/* Large background number */
.hero-bg-number {
  position: absolute;
  right: -0.05em;
  top: 50%;
  transform: translateY(-55%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(250px, 40vw, 500px);
  color: rgba(201, 162, 39, 0.04);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.04em;
}

/* === NAV === */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  position: relative;
  z-index: 10;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-light);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--gold);
}

/* === HERO CONTENT === */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2.5rem 4rem;
  position: relative;
  z-index: 5;
  max-width: 800px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 2rem;
}

.hero-name em {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.8rem;
  align-items: center;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-meta-item .label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}

.hero-meta-item .value {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--cream);
}

.hero-divider {
  color: var(--navy-light);
  align-self: center;
  font-size: 1.5rem;
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--gray-light);
  max-width: 500px;
  margin-bottom: 2.5rem;
  font-style: italic;
}

.hero-cta {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 0.9rem 2rem;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.2s;
  align-self: flex-start;
}

.hero-cta:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.hero-scroll-hint {
  text-align: center;
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--gray);
  animation: float 2.5s ease-in-out infinite;
  position: relative;
  z-index: 5;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

/* === STATS BAR === */
.stats-bar {
  background: var(--gold);
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.4rem 1rem;
  flex: 1;
  min-width: 100px;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

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

.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(13, 27, 42, 0.65);
  margin-top: 0.3rem;
  text-align: center;
}

/* === SECTIONS === */
.section {
  padding: 6rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 4rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1;
  color: var(--white);
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--gray-light);
  font-size: 1rem;
  font-style: italic;
  max-width: 600px;
}

/* === TIMELINE === */
.timeline-section {
  max-width: 1200px;
  padding-top: 5rem;
  padding-bottom: 5rem;
  background: transparent;
}

.era-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 3.5rem 0 2rem;
}

.era-line {
  flex: 1;
  height: 1px;
  background: rgba(201, 162, 39, 0.25);
}

.era-tag {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

/* TL Entry */
.tl-entry {
  display: grid;
  grid-template-columns: 90px 40px 1fr;
  gap: 0;
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateX(-20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.tl-entry.visible {
  opacity: 1;
  transform: translateX(0);
}

.tl-year-col {
  padding: 0.5rem 1rem 0 0;
  text-align: right;
}

.tl-year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold);
  line-height: 1.2;
}

.tl-age {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--gray);
  letter-spacing: 0.08em;
}

.tl-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.5rem;
}

.tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.tl-dot-college {
  width: 14px;
  height: 14px;
  background: var(--gold-light);
  box-shadow:
    0 0 0 4px rgba(201, 162, 39, 0.25),
    0 0 16px rgba(201, 162, 39, 0.3);
}

.tl-line {
  flex: 1;
  width: 1px;
  background: rgba(201, 162, 39, 0.2);
  margin-top: 4px;
}

.tl-cards {
  padding: 0.3rem 0 2.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* === CARDS === */
.tl-card {
  background: rgba(26, 50, 80, 0.5);
  border: 1px solid rgba(196, 207, 219, 0.1);
  border-left: 3px solid rgba(201, 162, 39, 0.4);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.tl-card:hover {
  background: rgba(26, 50, 80, 0.75);
  border-left-color: var(--gold);
}

.tl-card-alt {
  border-left-color: rgba(138, 155, 176, 0.4);
}

.tl-card-alt:hover {
  border-left-color: var(--gray-light);
}

.tl-card-accent {
  border-left-color: rgba(184, 50, 50, 0.6);
}

.tl-card-accent:hover {
  border-left-color: var(--red);
}

.tl-card-highlight {
  background: rgba(26, 50, 80, 0.8);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-left: 3px solid var(--gold);
}

.tl-card-highlight:hover {
  background: rgba(26, 50, 80, 0.95);
  border-color: var(--gold);
}

.tl-card-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.4rem;
}

.tl-badge-gold {
  color: var(--gold);
}
.tl-badge-college {
  color: var(--gold-light);
}

.tl-card-level {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.15rem;
}

.tl-card-team {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.15rem;
}

.tl-card-league {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 0.7rem;
  font-style: italic;
}

.tl-stats-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  margin-bottom: 0.7rem;
}

.tl-stats-mini span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cream-dim);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  letter-spacing: 0.04em;
}

.tl-card-note {
  font-size: 0.82rem;
  color: var(--gray-light);
  line-height: 1.5;
  border-top: 1px solid rgba(196, 207, 219, 0.08);
  padding-top: 0.6rem;
  margin-top: 0.3rem;
}

/* === STATS TABLE === */
.stats-section {
  background: transparent;
}

.stats-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 162, 39, 0.15);
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.stats-table thead tr {
  background: rgba(201, 162, 39, 0.12);
  border-bottom: 2px solid rgba(201, 162, 39, 0.3);
}

.stats-table th {
  padding: 0.8rem 0.75rem;
  text-align: left;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.stats-table td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--cream-dim);
  white-space: nowrap;
}

.stats-table tbody tr:hover td {
  background: rgba(201, 162, 39, 0.05);
}

.stats-table .col-avg {
  font-weight: 400;
  color: var(--gold-light);
}

.stats-table .col-team {
  color: var(--white);
  font-weight: 400;
}
.stats-table .col-year {
  color: var(--gold);
}

.stats-table .row-highlight td {
  background: rgba(201, 162, 39, 0.07);
}

.stats-table .row-champ td:first-child::before {
  content: "🏆 ";
}

/* === MILESTONES === */
.milestones-section {
  background: transparent;
}

.milestones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}

.milestone-card {
  background: rgba(18, 37, 58, 0.8);
  border: 1px solid rgba(196, 207, 219, 0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s,
    border-color 0.2s;
}

.milestone-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.milestone-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 162, 39, 0.25);
}

.milestone-year {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.milestone-icon {
  font-size: 1.8rem;
  margin-bottom: 0.7rem;
}

.milestone-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.milestone-desc {
  font-size: 0.82rem;
  color: var(--gray-light);
  line-height: 1.55;
}

/* === GALLERY === */
.gallery-section {
  background: transparent;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.gallery-placeholder {
  aspect-ratio: 4/3;
  background: rgba(26, 50, 80, 0.4);
  border: 1px dashed rgba(196, 207, 219, 0.15);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: var(--gray);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-align: center;
  padding: 1rem;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.gallery-placeholder:hover {
  border-color: rgba(201, 162, 39, 0.3);
  background: rgba(26, 50, 80, 0.6);
}

.gallery-placeholder-icon {
  font-size: 2rem;
}

.gallery-note {
  font-size: 0.8rem;
  color: var(--gray);
  font-family: var(--font-mono);
  text-align: center;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.15);
}

.gallery-note code {
  color: var(--gold);
  background: rgba(201, 162, 39, 0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
}

/* === FOOTER === */
.site-footer {
  background: #080e16;
  border-top: 1px solid rgba(201, 162, 39, 0.15);
  padding: 3.5rem 2.5rem;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gray-light);
  font-weight: 300;
  letter-spacing: 0.06em;
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gray);
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-content {
    padding: 2rem 1.5rem 3rem;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .tl-entry {
    grid-template-columns: 70px 30px 1fr;
  }

  .stats-bar {
    justify-content: flex-start;
    gap: 0;
  }
  .stat-pill {
    min-width: 80px;
    padding: 1rem 0.5rem;
  }
  .stat-num {
    font-size: 1.6rem;
  }

  .milestones-grid {
    grid-template-columns: 1fr;
  }

  .era-header {
    flex-wrap: wrap;
  }
  .era-line {
    min-width: 30px;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 3.5rem;
  }
  .tl-year-col {
    display: none;
  }
  .tl-entry {
    grid-template-columns: 30px 1fr;
  }
}

/* === SCROLL ANIMATIONS === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* slight stagger for milestone cards */
.milestone-card:nth-child(2) {
  transition-delay: 0.05s;
}
.milestone-card:nth-child(3) {
  transition-delay: 0.1s;
}
.milestone-card:nth-child(4) {
  transition-delay: 0.15s;
}
.milestone-card:nth-child(5) {
  transition-delay: 0.2s;
}
.milestone-card:nth-child(6) {
  transition-delay: 0.25s;
}
.milestone-card:nth-child(7) {
  transition-delay: 0.3s;
}
.milestone-card:nth-child(8) {
  transition-delay: 0.35s;
}

.tl-entry:nth-child(odd) {
  transition-delay: 0.05s;
}
/* === HERO PHOTO === */
.hero-photo-wrap {
  position: absolute;
  right: clamp(2rem, 8vw, 7rem);
  bottom: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-photo {
  width: clamp(200px, 24vw, 380px);
  display: block;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(18%) contrast(1.05);
  mask-image: linear-gradient(to top, transparent 0%, black 18%);
  -webkit-mask-image: linear-gradient(to top, transparent 0%, black 18%);
}

.hero-photo-badge {
  position: absolute;
  top: 1.2rem;
  left: -1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy);
  background: var(--gold);
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .hero-photo-wrap {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    align-items: flex-end;
    padding-right: 1.5rem;
    margin-top: -1rem;
  }
  .hero-photo {
    width: clamp(140px, 45vw, 240px);
  }
}

/* === AWARDS STRIP === */
.awards-strip {
  background: var(--navy-mid);
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.65rem 2.5rem;
  overflow-x: auto;
  white-space: nowrap;
}

.awards-strip-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  flex-shrink: 0;
}

.awards-strip-items {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--cream-dim);
  letter-spacing: 0.03em;
}

.awards-sep {
  color: rgba(201, 162, 39, 0.4);
}

/* === COLLEGE SEASON BREAKDOWN === */
.college-seasons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0.8rem 0 1rem;
  border-top: 1px solid rgba(201, 162, 39, 0.15);
  padding-top: 0.8rem;
}

.college-season {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.college-season:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.college-season-year {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.college-season-awards {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

.college-season-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.7rem;
  margin-bottom: 0.5rem;
}

.college-season-stats span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cream-dim);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.12rem 0.45rem;
  border-radius: 2px;
}

.college-season-note {
  font-size: 0.8rem;
  color: var(--gray-light);
  line-height: 1.5;
}

.babson-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid rgba(201, 162, 39, 0.3);
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
  margin-top: 0.5rem;
  transition:
    background 0.2s,
    color 0.2s;
}

.babson-link:hover {
  background: rgba(201, 162, 39, 0.1);
  border-color: var(--gold);
}
