/* Minimal, responsive, hacker-cyberpunk CSS with frosted glass and cyan polka dots */

/* Light reset */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* Theme variables (turquoise/cyan neon, frosted glass) */
:root{
  --bg: #07131a;
  --bg-dot: rgba(0, 255, 255, 0.55);
  --card: rgba(8, 28, 32, 0.6);
  --glass: rgba(20, 180, 210, 0.28);
  --text: #eaffff;
  --muted: #a6f0ff;
  --accent: #00e5ff;
  --outline: rgba(0, 229, 255, 0.9);
}

/* Cyan polka dot background (mobile-first) */
body {
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(circle at 2px 2px, var(--bg-dot) 2px, transparent 2px);
  background-size: 20px 20px;
  min-height: 100dvh;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  line-height: 1.5;
}

/* Layout container */
main {
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem;
  min-height: calc(100dvh - 140px);
}

/* Image frame as hero region with frosted glass overlay and neon title */
.image-frame {
  width: min(92vw, 1000px);
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 255, 255, 0.55);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  background: #000;
  transition: transform .3s ease, box-shadow .3s ease;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.image-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 90px rgba(0,255,255,.6);
}

/* Frosted glass layer over the image for cyberpunk glow */
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(0,0,0,.15), rgba(0,0,0,.25));
  backdrop-filter: blur(2px) saturate(110%);
  z-index: 1;
  pointer-events: none;
}

/* Prominent title badge (frosted glass, neon text) */
.image-frame::before {
  content: "Subway Tunnel Horrors: Echoes Beneath the Rails";
  position: absolute;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  padding: .55rem 1.05rem;
  font-weight: 900;
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  color: #eaffff;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.95);
  background: rgba(7, 20, 28, 0.68);
  border: 1px solid rgba(0, 255, 255, 0.85);
  border-radius: 999px;
  backdrop-filter: saturate(140%) blur(4px);
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
  letter-spacing: .4px;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.8);
}

/* Subtle glow behind the hero to emphasize cyberpunk vibe on larger screens */
@media (min-width: 768px) {
  .image-frame::before {
    bottom: 14%;
    font-size: clamp(1.25rem, 3.5vw, 1.9rem);
  }
  .image-frame {
    border-radius: 22px;
  }
  body { background-color: #06121a; }
}

/* Accessibility: focus styles for links and interactive elements */
a:focus-visible,
button:focus-visible,
[data-focus]:focus-visible {
  outline: 2px solid var(--outline);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Footer with featured product ad (prominent CTA) */
footer {
  padding: 1.75rem 1rem 2rem;
  text-align: center;
  color: #d7fbff;
}

/* Ad card styling (neon, glassy) */
.product-ad {
  display: inline-block;
  text-align: left;
  padding: .9rem;
  border-radius: 14px;
  margin: 0 auto 0.75rem;
  background: var(--card);
  border: 1px solid rgba(0, 255, 255, 0.6);
  max-width: 520px;
  width: min(90vw, 520px);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 rgba(0,0,0,.0);
}
.product-ad h3 {
  margin: 0 0 .4rem;
  font-size: .95rem;
  font-weight: 700;
  color: #bfffff;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.product-ad a {
  text-decoration: none;
}
.product-ad p {
  margin: 0;
  padding: .65rem 1rem;
  display: inline-block;
  font-weight: 800;
  color: #041c1f;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(0,255,255,.95), rgba(0,170,170,.95));
  border: 1px solid rgba(255,255,255,.9);
  transition: transform .15s ease;
}
.product-ad p:hover { transform: scale(1.02); }

/* Footer text style */
footer p {
  margin: 0.25rem 0 0;
  font-size: .92rem;
  color: #9de7f7;
}

/* Small screens: ensure good spacing */
@media (max-width: 420px) {
  .image-frame { width: 96vw; }
  .image-frame::before { bottom: 10%; padding: .5rem .9rem; }
}
