/* Dynamic intro – same structure as Vue app: transition, timer, scroll sections */

/* Sidebars: hidden during scroll, slide in only when landing is reached */
.intro-page .social-sidebar {
  transform: translateY(-50%) translateX(-100%);
  transition: transform 0.4s ease-out;
}
.intro-page.scroll-done .social-sidebar {
  transform: translateY(-50%) translateX(0);
}
.intro-page .event-sidebar {
  transform: translateY(-50%) translateX(100%);
  transition: transform 0.4s ease-out;
}
.intro-page.scroll-done .event-sidebar {
  transform: translateY(-50%) translateX(0);
}
@media (max-width: 768px) {
  .intro-page .sidebars-wrapper .event-sidebar,
  .intro-page .sidebars-wrapper .social-sidebar {
    transform: none;
  }
  .intro-page .sidebars-wrapper {
    transform: translateX(-50%) translateY(100%);
    transition: transform 0.4s ease-out;
    bottom: 5rem;
  }
  .intro-page.scroll-done .sidebars-wrapper {
    transform: translateX(-50%) translateY(0);
  }
}

/* Once landing is reached, hide scroll sections so they can't be scrolled back to (no jitter) */
.intro-page.scroll-done .intro-scroll-sections {
  display: none !important;
}

/* Start transition overlay */
.start-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-background, #1e2329);
  z-index: 10000;
  transform-origin: center center;
  pointer-events: none;
}
.start-transition.done {
  display: none;
}

/* Timer – fixed top-right */
.timer-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: var(--color-background, #1e2329);
  color: var(--color-text, #fff);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-family: 'Courier New', monospace;
  font-size: 1.2rem;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(var(--color-primary-rgb), 0.2);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.timer-container.timer-container--hidden {
  opacity: 0;
  transform: translateY(-6px);
  visibility: hidden;
  pointer-events: none;
}
/* When there are no scroll sections, keep timer hidden regardless of JS */
.intro-page.intro-no-scroll-sections .timer-container {
  opacity: 0;
  transform: translateY(-6px);
  visibility: hidden;
  pointer-events: none;
}
.timer-label {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}
.timer-display {
  font-size: 1.5rem;
  font-weight: bold;
}

/* Main scroll area – solid grey, no gradient */
.intro-main {
  position: relative;
  background: var(--color-background, #1e2329);
  min-height: 100vh;
}

/* Each scroll section: tall (200vh) so user scrolls through; content centered */
.scroll-section {
  position: relative;
  width: 100%;
  min-height: 200vh;
  overflow: hidden;
  background: transparent;
}
.section-layer {
  position: absolute;
  inset: 0;
}
.section-layer-road {
  z-index: 0;
}
.section-layer-road .road-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.section-layer-road .road {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke-dashoffset 0.1s linear;
}
.section-layer-cones {
  z-index: 10;
  pointer-events: none;
}
.cone-wrapper {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 120px;
}
.cone-wrapper .cone-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 12px rgba(var(--color-accent-rgb), 0.5));
}
.section-layer-content {
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Content item: title + text + image (same as Vue ContentItem) */
.content-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg, 12px);
  max-width: 600px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.content-item-reverse {
  direction: rtl;
}
.content-item-reverse > * {
  direction: ltr;
}
.content-item-image {
  width: 100%;
  min-height: 200px;
}
.content-item .content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}
.content-image-placeholder {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(var(--color-primary-rgb), 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted, #c0bfbf);
  font-size: 0.9rem;
}
.content-item-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.content-item-title {
  color: var(--color-text, #fff);
  font-size: clamp(1.5rem, 4vw, 3rem);
  margin: 0 0 0.75rem 0;
}
.content-item-text-content {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

/* Landing block below scroll sections – transparent so intro-main gradient shows. Padding matches other pages. */
.landing-block {
  min-height: 100vh;
  padding: 2.5rem 1.5rem;
  background: transparent;
}
.landing-block-inner {
  max-width: var(--layout-max-width);
  margin: 0 auto;
}
.landing-hero {
  text-align: center;
  margin-bottom: 3.5rem;
}
.landing-block-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text, #fff);
}
.landing-block-subhead {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  font-style: italic;
}
.landing-block-tagline {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.landing-section {
  margin-bottom: 2.5rem;
}
.landing-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text, #fff);
  margin-bottom: 0.75rem;
}
.landing-section-text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.landing-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-secondary, #FDD900);
  margin-bottom: 0.5rem;
}
.landing-figure {
  margin: 0 0 1rem 0;
  max-width: 100%;
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.landing-img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}
.landing-img-placeholder {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(var(--color-primary-rgb), 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted, #c0bfbf);
  font-size: 0.9rem;
}
.landing-figcaption {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.5rem 0.75rem 0;
}
/* Single CTA/button component for landing sections and footer strip */
.landing-cta {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background: rgba(255, 255, 255, 0.07);
  color: var(--color-text, #fff);
  text-decoration: none;
  font-family: var(--font-heading, system-ui, sans-serif);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius, 8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.landing-cta:hover {
  background: var(--color-accent, #E30118);
  border-color: var(--color-accent, #E30118);
  color: #fff;
}
.landing-cta:focus-visible {
  outline: 2px solid var(--color-accent, #E30118);
  outline-offset: 2px;
}
/* Text link (e.g. inline in body); use .landing-cta for all section/footer buttons */
.landing-link {
  font-size: 0.95rem;
  color: var(--color-accent, #E30118);
  font-weight: 600;
  text-decoration: none;
}
.landing-link:hover {
  color: var(--color-secondary, #FDD900);
}
.landing-block-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* YouTube embed: responsive 16:9 */
.youtube-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg, 12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.youtube-embed-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.content-item-video {
  margin-top: 1rem;
  max-width: 560px;
}
.landing-section-video {
  margin: 1rem 0;
}

@media (max-width: 768px) {
  .content-item {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .content-item-image {
    min-height: 200px;
  }
  .content-item-title {
    font-size: 1.75rem;
  }
  .timer-container {
    top: 1rem;
    right: 1rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  /* Merged bottom bar above fixed header when it appears */
  .intro-page .sidebars-wrapper {
    bottom: 5rem;
  }
}

@media (max-width: 640px) {
  .landing-block {
    padding: 1.5rem 1rem;
  }
}
