/* ==========================================================================
   Technoblade Wiki — features.css
   Home page hero, stats band, and the YouTube clip embed cards used by the
   Video Archive (YouTube Clips & Videos) page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Home page hero
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, #7c211c 0%, #9e2b25 55%, #b0453a 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fdf6f5;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-7) var(--space-6);
}

.hero-kicker {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #f8d05a;
  margin-bottom: var(--space-3);
}

.hero h1 {
  color: #ffffff;
  font-size: 2.4rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.hero-lead {
  margin-top: var(--space-3);
  max-width: 56ch;
  font-size: var(--text-md);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.hero-button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.hero-button-solid {
  background-color: #f0b429;
  border: 1px solid #f0b429;
  color: #3d1504;
}

.hero-button-solid:hover {
  background-color: #f8d05a;
  border-color: #f8d05a;
  color: #3d1504;
}

.hero-button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

.hero-button-ghost:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  color: #ffffff;
}

.hero-figure {
  margin: 0;
  background-color: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  max-width: 340px;
  justify-self: end;
}

.hero-figure img {
  width: 100%;
  border-radius: var(--radius-md);
}

.hero-figure figcaption {
  padding-top: var(--space-2);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.hero-memorial {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.hero-memorial strong {
  color: #f8d05a;
  font-weight: 600;
}

/* Decorative crown watermark */
.hero-crown {
  position: absolute;
  right: -40px;
  top: -34px;
  width: 220px;
  height: 220px;
  opacity: 0.08;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   2. Stats band (real channel milestones)
   -------------------------------------------------------------------------- */
.stats-band {
  margin-top: var(--space-5);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-surface);
}

.stat-tile {
  padding: var(--space-4) var(--space-5);
  text-align: center;
}

.stat-tile + .stat-tile {
  border-left: 1px solid var(--color-border);
}

@media (max-width: 639.98px) {
  .stat-tile + .stat-tile {
    border-left: none;
    border-top: 1px solid var(--color-border);
  }
}

.stat-value {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.15;
}

.stat-label {
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   3. YouTube clip cards (click-to-play facades)
   -------------------------------------------------------------------------- */
.video-grid {
  display: grid;
  gap: var(--space-4);
}

.clip-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.clip-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 767.98px) {
  .clip-card {
    grid-template-columns: 1fr;
  }
}

.clip-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #000000;
  overflow: hidden;
}

.clip-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.clip-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.clip-play::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.05) 45%);
  transition: background-color 0.15s ease;
}

.clip-play:hover::after {
  background-color: rgba(158, 43, 37, 0.18);
}

.clip-play-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background-color: rgba(158, 43, 37, 0.92);
  border: 2px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.clip-play:hover .clip-play-icon {
  transform: scale(1.08);
  background-color: #9e2b25;
}

.clip-play-icon svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
  margin-left: 3px;
}

.clip-play:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.clip-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.clip-body {
  padding: var(--space-4) var(--space-5);
}

.clip-body .section-kicker {
  margin-bottom: var(--space-1);
}

.clip-title {
  font-size: var(--text-md);
  margin-bottom: var(--space-1);
}

.clip-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.clip-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: var(--space-3);
}

.clip-yt {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--text-xs);
  font-weight: 600;
}

.clip-yt svg {
  width: 14px;
  height: 14px;
}

/* Video archive intro + era sections */
.archive-intro {
  margin-bottom: var(--space-6);
}

.clip-era {
  margin-top: var(--space-7);
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.clip-era > p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: calc(-1 * var(--space-3));
  margin-bottom: var(--space-4);
  max-width: 70ch;
}

/* More-uploads list */
.more-uploads {
  margin-top: var(--space-7);
  background-color: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.more-uploads h2 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.more-uploads > p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.more-uploads-list {
  padding: 0;
  list-style: none;
}

.more-uploads-list li {
  padding: var(--space-2) 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: var(--text-sm);
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.more-uploads-list li:last-child {
  border-bottom: none;
}

.more-uploads-list .upload-title {
  color: var(--color-link);
  font-weight: 500;
}

.more-uploads-list .upload-meta {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   4. Feature rows on home page (featured clips teaser)
   -------------------------------------------------------------------------- */
.featured-clips .video-grid {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   5. Timeline table (Minecraft career)
   -------------------------------------------------------------------------- */
.timeline-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  margin-top: var(--space-3);
}

.timeline-table th,
.timeline-table td {
  border: 1px solid var(--color-border);
  padding: 0.55rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.timeline-table th {
  background-color: var(--color-bg-subtle);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.timeline-table td:first-child {
  white-space: nowrap;
  font-weight: 600;
  color: var(--color-heading);
}

/* --------------------------------------------------------------------------
   6. Responsive hero
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: var(--space-6) var(--space-4);
  }

  .hero-figure {
    justify-self: center;
    max-width: 280px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero-crown {
    width: 150px;
    height: 150px;
    right: -30px;
    top: -24px;
  }
}
