/* vrc.dj  Hero: homepage hero + carousel */
/* --- Hero */
.hero            { position: relative; flex: 1; display: flex; align-items: center; overflow: hidden; }
.hero-glow       { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-glow::before {
  content: '';
  position: absolute;
  width: 70vmax; height: 70vmax; border-radius: 50%;
  top: -25vmax; left: -15vmax;
  background: radial-gradient(circle, rgba(124,58,237,.14) 0%, transparent 65%);
  animation: glowDrift 10s ease-in-out infinite alternate;
}
.hero-glow::after {
  content: '';
  position: absolute;
  width: 55vmax; height: 55vmax; border-radius: 50%;
  bottom: -15vmax; right: -10vmax;
  background: radial-gradient(circle, rgba(14,165,233,.09) 0%, transparent 65%);
  animation: glowDrift 14s ease-in-out infinite alternate-reverse;
}
@keyframes glowDrift { from { transform: translate(0,0) scale(1); } to { transform: translate(3%,4%) scale(1.1); } }
.hero-content  { position: relative; z-index: 1; text-align: center; padding: 2rem 0 4rem; width: 100%; }
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .9rem;
  background: rgba(124,58,237,.12);
  border: 1px solid rgba(124,58,237,.25);
  border-radius: 32px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 1.5rem;
}
.hero-title    { font-size: clamp(2.5rem,8vw,5.5rem); font-weight: 900; letter-spacing: -.035em; line-height: 1; color: var(--white); margin-bottom: 1.25rem; }
.gradient-text { background: linear-gradient(135deg,#9d5cf7 0%,#0ea5e9 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub      { font-size: clamp(1rem,2.5vw,1.2rem); color: var(--text-secondary); max-width: 480px; margin: 0 auto 2.5rem; line-height: 1.7; }
.hero-actions  { display: flex; align-items: center; justify-content: center; gap: .875rem; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.hero-stat-num { display: block; font-size: 1.75rem; font-weight: 800; color: var(--white); letter-spacing: -.02em; }
.hero-stat-lbl { display: block; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-top: 2px; }

/* --- Hero carousel */
@keyframes hero-dot-pop {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}
/* Slide layout */
.hero-slide { display: flex; align-items: center; width: 100%; }
.hero--carousel {
  min-height: clamp(440px, 65vh, 720px);
}
.hero--carousel .hero-slide {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero--carousel .hero-slide.is-active { pointer-events: auto; }

/* Background layers (sit between glow and slide content in DOM order) */
.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
/* Only overlay when there's an actual background image (inline style present) */
.hero-bg-layer[style]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.42);
}
.hero-bg-layer.is-active { opacity: 1; }

/* Per-element enter/exit animations */
.hero--carousel .hero-slide [data-hero-el] {
  opacity: 0;
  transform: translateX(28px);
}
.hero--carousel .hero-slide.is-active [data-hero-el] {
  opacity: 1;
  transform: translateX(0);
  transition: opacity .55s cubic-bezier(.4,0,.2,1), transform .55s cubic-bezier(.4,0,.2,1);
}
.hero--carousel .hero-slide.is-active [data-hero-el="pill"]    { transition-delay:   0ms; }
.hero--carousel .hero-slide.is-active [data-hero-el="title"]   { transition-delay:  65ms; }
.hero--carousel .hero-slide.is-active [data-hero-el="sub"]     { transition-delay: 130ms; }
.hero--carousel .hero-slide.is-active [data-hero-el="actions"] { transition-delay: 195ms; }
.hero--carousel .hero-slide.is-active [data-hero-el="stats"]   { transition-delay: 260ms; }
.hero--carousel .hero-slide.is-exiting [data-hero-el] {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity .4s cubic-bezier(.4,0,.2,1), transform .4s cubic-bezier(.4,0,.2,1);
  transition-delay: 0ms !important;
}

/* Progress bar */
.hero-progress { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,.10); z-index: 5; }
.hero-progress-fill { height: 100%; width: 0; background: var(--accent-2-base); will-change: width; }

/* Navigation dots */
.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 6;
}
.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .25s ease, transform .25s ease;
  opacity: 0;
  animation: hero-dot-pop .35s cubic-bezier(.34,1.56,.64,1) forwards;
}
.hero-dot:nth-child(1) { animation-delay: .40s; }
.hero-dot:nth-child(2) { animation-delay: .48s; }
.hero-dot:nth-child(3) { animation-delay: .56s; }
.hero-dot.is-active         { background: var(--accent-2-base); transform: scale(1.25); }
.hero-dot:hover             { background: rgba(255,255,255,.5); }
.hero-dot.is-active:hover   { background: var(--accent-2-base); }

/* Press-and-hold pause state */
.hero--carousel.carousel-held { user-select: none; }
.hero--carousel.carousel-held .hero-progress-fill { opacity: .5; }

/* Light-mode hero: white-alpha dots/bar become invisible - swap to dark-alpha equivalents */
[data-theme="light"] .hero {
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent-base) 6%, var(--bg-base)) 0%, var(--bg-base) 60%);
}
[data-theme="light"] .hero-progress                   { background: rgba(0,0,0,.10); }
[data-theme="light"] .hero-dot                         { background: rgba(0,0,0,.18); }
[data-theme="light"] .hero-dot:hover                   { background: rgba(0,0,0,.38); }
[data-theme="light"] .hero-dot.is-active               { background: var(--accent-2-base); }
[data-theme="light"] .hero-dot.is-active:hover         { background: var(--accent-2-base); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hero {
    background: linear-gradient(160deg, color-mix(in srgb, var(--accent-base) 6%, var(--bg-base)) 0%, var(--bg-base) 60%);
  }
  :root:not([data-theme="dark"]) .hero-progress               { background: rgba(0,0,0,.10); }
  :root:not([data-theme="dark"]) .hero-dot                    { background: rgba(0,0,0,.18); }
  :root:not([data-theme="dark"]) .hero-dot:hover              { background: rgba(0,0,0,.38); }
  :root:not([data-theme="dark"]) .hero-dot.is-active          { background: var(--accent-2-base); }
  :root:not([data-theme="dark"]) .hero-dot.is-active:hover    { background: var(--accent-2-base); }
}

/* FotW pill variant - color driven by --fotw-color set inline on the slide */
.hero-pill--fotw {
  background: color-mix(in srgb, var(--fotw-color, #0ea5e9) 14%, transparent);
  border-color: color-mix(in srgb, var(--fotw-color, #0ea5e9) 40%, transparent);
  color: color-mix(in srgb, var(--fotw-color, #38bdf8) 30%, #fff);
}

/* FotW slide: scoped overrides for title gradient + buttons */
[data-slide="1"] .fotw-gradient-text,
.fotw-preview-overlay .fotw-gradient-text {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--fotw-color, #0ea5e9) 80%, #fff) 0%,
    color-mix(in srgb, var(--fotw-color, #0ea5e9) 35%, #fff) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-slide="1"] .btn-accent {
  background: color-mix(in srgb, var(--fotw-color, #0ea5e9) 22%, transparent);
  border-color: color-mix(in srgb, var(--fotw-color, #0ea5e9) 50%, transparent);
  color: color-mix(in srgb, var(--fotw-color, #0ea5e9) 30%, #fff);
}
[data-slide="1"] .btn-accent:hover,
[data-slide="1"] .btn-accent:focus-visible {
  background: color-mix(in srgb, var(--fotw-color, #0ea5e9) 80%, transparent);
  border-color: var(--fotw-color, #0ea5e9);
  color: #fff;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--fotw-color, #0ea5e9) 45%, transparent);
}
[data-slide="1"] .btn-ghost:hover,
[data-slide="1"] .btn-ghost:focus-visible {
  border-color: color-mix(in srgb, var(--fotw-color, #0ea5e9) 40%, transparent);
  color: color-mix(in srgb, var(--fotw-color, #0ea5e9) 40%, #fff);
}

/* FotW admin preview */
.fotw-preview {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.fotw-preview-overlay {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem;
  width: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.25) 100%);
}
.fotw-preview-overlay .fotw-gradient-text,
.fotw-preview-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: .5rem;
}
.fotw-preview-sub {
  color: var(--text-secondary);
  font-size: .88rem;
  max-width: 400px;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* FotW countdown + progress bar */
.fotw-countdown-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem 1rem;
  font-size: .8rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}
.fotw-countdown {
  font-family: 'Courier New', monospace;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent-glow);
}
.fotw-countdown-label { opacity: .7; font-size: .75rem; }
.fotw-countdown--warn { color: #f59e0b; text-shadow: 0 0 12px rgba(245,158,11,.4); }
.fotw-countdown--indef { color: var(--text-secondary); text-shadow: none; font-style: italic; font-weight: 400; }
.fotw-progress-bar {
  height: 3px;
  background: var(--border);
  border-radius: 0;
  overflow: hidden;
}
.fotw-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  border-radius: 0;
  transition: width .3s ease;
}

/* FotW timeline */
.fotw-timeline {
  position: relative;
  padding: .5rem 0 .5rem 2rem;
}
.fotw-timeline::before {
  content: '';
  position: absolute;
  left: .75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.fotw-timeline-entry {
  position: relative;
  padding: .75rem 1rem;
  margin-bottom: .75rem;
  background: color-mix(in srgb, var(--bg-card) 60%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.fotw-timeline-entry:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: 0 2px 12px color-mix(in srgb, var(--accent) 12%, transparent);
}
.fotw-timeline-dot {
  position: absolute;
  left: -1.65rem;
  top: 1rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--bg-base);
  z-index: 1;
}
.fotw-timeline-dot--active {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.fotw-timeline-dot--upcoming {
  background: var(--text-secondary);
}
.fotw-timeline-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.fotw-timeline-entry-left {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  min-width: 0;
}
.fotw-timeline-entry-right {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.fotw-timeline-tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--tag-color, var(--accent)) 18%, transparent);
  color: color-mix(in srgb, var(--tag-color, var(--accent)) 55%, #fff);
  border: 1px solid color-mix(in srgb, var(--tag-color, var(--accent)) 30%, transparent);
  text-decoration: none;
  transition: background .15s ease;
}
.fotw-timeline-tag:hover { background: color-mix(in srgb, var(--tag-color, var(--accent)) 28%, transparent); }
.fotw-timeline-date {
  font-size: .78rem;
  color: var(--text-secondary);
}
.fotw-timeline-duration {
  font-size: .72rem;
  color: var(--text-secondary);
  opacity: .7;
  min-width: 5.5rem;
  text-align: right;
}
.fotw-timeline-actions {
  display: flex;
  gap: .35rem;
}
.fotw-timeline-actions .btn { padding: .15rem .45rem; font-size: .75rem; }

/* FotW timeline gap warning */
.fotw-timeline-gap {
  position: relative;
  padding: .4rem 1rem;
  margin-bottom: .75rem;
  margin-left: .25rem;
  background: color-mix(in srgb, #f59e0b 8%, transparent);
  border: 1px dashed color-mix(in srgb, #f59e0b 35%, transparent);
  border-radius: var(--radius-sm);
  font-size: .72rem;
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: .4rem;
}

/* FotW history */
.fotw-history-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem 0;
  font-size: .8rem;
  color: var(--text-secondary);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}
.fotw-history-item:last-child { border-bottom: none; }
.fotw-history-tag {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .1rem .45rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--tag-color, #6c757d) 12%, transparent);
  color: color-mix(in srgb, var(--tag-color, #6c757d) 45%, #fff);
  border: 1px solid color-mix(in srgb, var(--tag-color, #6c757d) 20%, transparent);
  text-decoration: none;
}
.fotw-history-date { opacity: .6; font-size: .72rem; }
.fotw-history-ago  { margin-left: auto; font-size: .7rem; opacity: .5; font-style: italic; }

/* FotW empty state */
.fotw-empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
}
.fotw-empty-state i { font-size: 2.5rem; opacity: .3; display: block; margin-bottom: .75rem; }
.fotw-empty-state p { color: var(--text-secondary); font-size: .85rem; margin: 0; }

