/* ====================================================================
   HOT BLOCKS — Unified Site Stylesheet
   Times Square History Site
   Dark theme, HSL hue system, Poppins typeface
   ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

:root {
  /* Core palette */
  --bg-primary: #0d0e14;
  --bg-card: #13141c;
  --bg-elevated: #1a1b24;
  --bg-hover: #22232e;
  --border-subtle: rgba(255,255,255,0.06);
  --border-medium: rgba(255,255,255,0.1);

  /* Text */
  --text-primary: #d0d0d8;
  --text-secondary: #8a8a96;
  --text-muted: #5a5a66;
  --text-bright: #e8e8ec;

  /* Accent — green tint (can be overridden per page via --page-hue) */
  --page-hue: 145;
  --accent: hsl(var(--page-hue), 50%, 65%);
  --accent-dim: hsl(var(--page-hue), 30%, 35%);
  --accent-glow: hsl(var(--page-hue), 50%, 65%, 0.15);

  /* Layout */
  --content-max: 1100px;
  --spacing-section: 60px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--text-bright); }


/* ====================================================================
   HERO — Crossfade background with overlay text
   ==================================================================== */

.hero {
  position: relative;
  width: 100%;
  height: 75vh;
  min-height: 420px;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Slideshow images — stacked absolutely */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}
.hero-slide.active { opacity: 1; }

/* Dark gradient overlay for text legibility */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13,14,20,0.3) 0%,
    rgba(13,14,20,0.15) 40%,
    rgba(13,14,20,0.6) 75%,
    rgba(13,14,20,0.95) 100%
  );
  z-index: 1;
}

/* Hero text content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}
.hero-title {
  font-size: 3.2rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 8px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.hero-subtitle {
  font-size: 1.0rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
}

/* Era label that changes with each slide */
.hero-era {
  position: absolute;
  bottom: 28px;
  right: 32px;
  z-index: 2;
  font-size: 0.72rem;
  color: rgba(247, 244, 244, 0.521);
  letter-spacing: 0.06em;
  font-weight: 400;
  transition: opacity 0.8s;
}


/* ====================================================================
   MODULE CARDS — content entry points on homepage
   ==================================================================== */

.modules {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--spacing-section) 24px;
}

.modules-heading {
  font-size: 0.91rem;
  color: var(--text-muted);
  text-transform: uppercase;
  color: rgba(231, 235, 224, 0.699);
  letter-spacing: 0.12em;
  margin-bottom: 24px;
  text-align: center;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  cursor: pointer;
  display: block;
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) {
  .module-card:hover {
    border-color: var(--border-medium);
    transform: translateY(-3px);
  }
  .module-card:hover .module-thumb img {
    transform: scale(1.04);
  }
}

.module-card:active {
  transform: translateY(0);
}

.module-thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.module-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.module-info {
  padding: 20px 22px 24px;
}
.module-label {
  font-size: 0.68rem;
  /* Uses --card-hue if set on the card (via inline style), falls back to global accent hue */
  color: hsl(var(--card-hue, var(--page-hue, 145)), 55%, 58%);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 6px;
}
.module-title {
  font-size: 1.15rem;
  color: var(--text-bright);
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}
.module-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Phase 2 / coming soon card */
.module-card.coming-soon {
  opacity: 0.4;
  border-style: dashed;
  cursor: default;
}
.module-card.coming-soon .module-thumb {
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}
.module-card.coming-soon .module-thumb::after {
  content: "Coming Soon";
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}
@media (hover: hover) {
  .module-card.coming-soon:hover {
    transform: none;
    border-color: var(--border-subtle);
  }
}


/* ====================================================================
   SITE FOOTER
   ==================================================================== */

.site-footer {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-muted);
  font-size: 0.72rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--spacing-section);
  letter-spacing: 0.03em;
}
.site-footer a { color: var(--text-secondary); }


/* ====================================================================
   ARTICLE TEASER CARDS — homepage Zone 3, links to ATS stories
   ==================================================================== */

.articles {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px var(--spacing-section);
}

.articles-heading {
  font-size: 0.9rem;
  color: hsl(var(--card-hue, 145), 55%, 58%);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
  text-align: center;
}

.articles-label {
  font-size: 0.78rem;
  color: var(--text-bright);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  text-align: center;
}

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

.article-teaser {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  padding: 16px 14px 12px;
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.3s, transform 0.3s;
}

@media (hover: hover) {
  .article-teaser:hover {
    border-color: var(--border-medium);
    transform: translateY(-3px);
  }
  .article-teaser:hover .teaser-thumb img {
    transform: scale(1.06);
  }
}

.article-teaser:active {
  transform: translateY(0);
}

.teaser-label {
  font-size: 0.62rem;
  color: hsl(var(--card-hue, 145), 55%, 55%);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 4px;
}

.teaser-title {
  font-size: 0.88rem;
  color: hsl(var(--card-hue, 145), 55%, 65%);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 10px;
}

.teaser-thumb {
  width: 100%;
  height: 100px;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid hsl(var(--card-hue, 145), 40%, 35%);
  box-shadow: 0 0 8px hsl(var(--card-hue, 145), 50%, 40%, 0.3);
}
.teaser-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Responsive: stack teasers on smaller screens */
@media (max-width: 900px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
  .teaser-thumb { height: 120px; }
}


/* ====================================================================
   ARTICLE CALLOUT CARDS (for use within Decades page)
   ==================================================================== */

.article-callout {
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: background 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
@media (hover: hover) {
  .article-callout:hover {
    background: var(--bg-hover);
  }
}
.article-callout-thumb {
  width: 80px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}
.article-callout-text {
  flex: 1;
}
.article-callout-label {
  font-size: 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.article-callout-title {
  font-size: 0.92rem;
  color: var(--text-bright);
  font-weight: 600;
  margin: 2px 0;
}
.article-callout-hook {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.article-callout-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
  flex-shrink: 0;
}


/* ====================================================================
   RESPONSIVE
   ==================================================================== */

@media (max-width: 768px) {
  .hero { height: 60vh; min-height: 340px; }
  .hero-title { font-size: 2.0rem; letter-spacing: 0.12em; }
  .hero-subtitle { font-size: 0.85rem; }
  .hero-era { bottom: 16px; right: 16px; }

  .modules { padding: 40px 16px; }
  .module-grid { grid-template-columns: 1fr; }
  .module-thumb { height: 180px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.5rem; }
  .hero-subtitle { font-size: 0.78rem; }
}
