/* ============================================================
   SHOW PONY — DEADMEDIA ARCHIVE
   Global Stylesheet
   Color Palette: Black, Red (#cc0000), White, Charcoal
   Font: Bauhaus 93 style → using 'Russo One' + 'Special Elite'
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Russo+One&family=Special+Elite&family=Bebas+Neue&family=Share+Tech+Mono&display=swap');

/* ── CSS VARIABLES ───────────────────────────────────────── */
:root {
  --black:       #0a0a0a;
  --deep-black:  #000000;
  --red:         #cc0000;
  --red-dark:    #8b0000;
  --red-bright:  #ff1111;
  --white:       #f0ece4;
  --off-white:   #d4cfc7;
  --charcoal:    #1a1a1a;
  --grey:        #3a3a3a;
  --grey-light:  #888;

  --font-display: 'Russo One', 'Bebas Neue', sans-serif;
  --font-body:    'Special Elite', 'Courier New', monospace;
  --font-mono:    'Share Tech Mono', monospace;

  --border-red:   2px solid var(--red);
  --border-white: 1px solid var(--off-white);
  --gutter:       1.5rem;
  --nav-height:   44px;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── UTILITY ─────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.text-red   { color: var(--red); }
.text-white { color: var(--white); }
.uppercase  { text-transform: uppercase; letter-spacing: .1em; }

/* scanline texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,.07) 2px,
    rgba(0,0,0,.07) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ── HEADER / BRANDING ───────────────────────────────────── */
.site-header {
  background: var(--deep-black);
  border-bottom: var(--border-red);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: .75rem var(--gutter);
}

.site-logo {
  display: flex;
  align-items: center;
}
.site-logo img {
  height: 70px;
  width: auto;
  filter: brightness(1.05);
  transition: filter .2s;
}
.site-logo img:hover { filter: drop-shadow(0 0 8px var(--red)); }

.header-meta {
  justify-self: end;
  text-align: right;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--grey-light);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.header-meta strong { color: var(--white); display: block; margin-bottom: .2rem; }

/* ── UTILITY BAR (social + search) ──────────────────────── */
.utility-bar {
  background: var(--charcoal);
  border-bottom: 1px solid var(--grey);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .4rem var(--gutter);
  font-family: var(--font-mono);
  font-size: .72rem;
  gap: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.social-links a {
  color: var(--grey-light);
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: color .2s;
}
.social-links a:hover { color: var(--red); }
.social-links span    { color: var(--grey); }

.search-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.search-bar input {
  background: var(--black);
  border: 1px solid var(--grey);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: .72rem;
  padding: .25rem .6rem;
  width: 200px;
  outline: none;
  transition: border-color .2s;
}
.search-bar input:focus { border-color: var(--red); }
.search-bar button {
  background: var(--red);
  border: none;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: .72rem;
  padding: .25rem .7rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: background .2s;
}
.search-bar button:hover { background: var(--red-bright); }

/* ── MAIN NAV ────────────────────────────────────────────── */
.main-nav {
  background: var(--grey);
  border-bottom: var(--border-red);
  display: flex;
  align-items: center;
  height: var(--nav-height);
  padding: 0 var(--gutter);
  gap: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.main-nav a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 1.2rem;
  font-family: var(--font-display);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  border-right: 1px solid var(--grey-light);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.main-nav a:first-child { border-left: 1px solid var(--grey-light); }
.main-nav a:hover,
.main-nav a.active {
  background: var(--red);
  color: var(--white);
}

/* ── PAGE WRAPPER ────────────────────────────────────────── */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem var(--gutter);
}

/* ── SECTION HEADINGS ────────────────────────────────────── */
.section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  border-bottom: var(--border-red);
  padding-bottom: .4rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

/* ── TAPE ENTRY CARD (Index page) ───────────────────────── */
.tape-entry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--grey);
  padding-bottom: 2.5rem;
}

.tape-images {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.tape-img-slot {
  background: var(--charcoal);
  border: 1px solid var(--grey);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: .9rem;
  color: var(--grey-light);
  text-transform: uppercase;
  letter-spacing: .06em;
  overflow: hidden;
  position: relative;
}
.tape-img-slot img { width: 100%; height: 100%; object-fit: contain; }

.tape-meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tape-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem .8rem;
  font-size: .85rem;
}
.tape-info-grid dt {
  color: var(--grey-light);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.tape-info-grid dd {
  color: var(--white);
  font-family: var(--font-body);
}

.tape-notes {
  background: var(--charcoal);
  border-left: 3px solid var(--red);
  padding: .8rem 1rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--off-white);
  line-height: 1.7;
  flex: 1;
}
.tape-notes h4 {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: .72rem;
  margin-bottom: .4rem;
}

/* pagination / next page button */
.page-btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .55rem 1.4rem;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .1s;
  text-align: center;
  margin-top: .5rem;
}
.page-btn:hover {
  background: var(--red-bright);
  transform: translateY(-1px);
}

/* ── GRID PAGE (Horror / Cult) ───────────────────────────── */
.genre-page-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  text-align: center;
  padding: 1.5rem 0 1rem;
  border-bottom: var(--border-red);
  margin-bottom: 2rem;
  position: relative;
}
.genre-page-title::after {
  content: '';
  display: block;
  width: 80px; height: 3px;
  background: var(--red);
  margin: .5rem auto 0;
}

.tape-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.tape-card {
  background: var(--charcoal);
  border: 1px solid var(--grey);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0;
  transition: border-color .25s, transform .2s;
  overflow: hidden;
}
.tape-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
}

.tape-card-thumb {
  background: var(--black);
  border-right: 1px solid var(--grey);
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--grey-light);
  text-align: center;
  padding: .5rem;
  text-transform: uppercase;
}
.tape-card-thumb img { width: 100%; height: 100%; object-fit: cover; }

.tape-card-info {
  padding: .75rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.tape-card-info h3 {
  font-family: var(--font-display);
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--white);
  line-height: 1.2;
}
.tape-card-info .meta-tag {
  display: inline-block;
  background: var(--red-dark);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: .65rem;
  text-transform: uppercase;
  padding: .1rem .4rem;
  letter-spacing: .05em;
}
.tape-card-info p {
  font-size: .78rem;
  color: var(--grey-light);
  margin-top: auto;
}

/* section classification labels */
.section-label {
  font-family: var(--font-display);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--red);
  border-top: 1px solid var(--grey);
  padding-top: .5rem;
  margin: 2rem 0 .8rem;
}

/* ── CONTACT PAGE ────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 1.5rem;
}

.contact-image-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-hero-img {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--charcoal);
  overflow: hidden;
  border: 1px solid var(--grey);
  position: relative;
}
.contact-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.1) saturate(1.2);
}

.fire-frame-block {
  position: relative;
  background: var(--black);
  border: 1px solid var(--grey);
  overflow: hidden;
  aspect-ratio: 16/7;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fire-frame-block img.fire-border {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  opacity: .85;
}
.fire-frame-block .contact-info-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--white);
  text-shadow: 0 0 12px var(--red);
}

.contact-bottom-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.vhs-tape-img {
  width: 160px;
  border: 2px solid var(--red);
}

/* signup form */
.signup-block {
  background: var(--charcoal);
  border: 1px solid var(--grey);
  padding: 1.5rem;
}
.signup-block h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1.2rem;
  border-bottom: var(--border-red);
  padding-bottom: .5rem;
}
.signup-block label {
  display: block;
  font-family: var(--font-mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--grey-light);
  margin-bottom: .25rem;
  margin-top: .9rem;
}
.signup-block label:first-of-type { margin-top: 0; }
.signup-block input[type="text"],
.signup-block input[type="email"] {
  width: 100%;
  background: var(--black);
  border: 1px solid var(--grey);
  border-bottom: 2px solid var(--red);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .9rem;
  padding: .45rem .7rem;
  outline: none;
  transition: border-color .2s;
}
.signup-block input:focus { border-color: var(--red-bright); }

.signup-btn {
  display: block;
  width: 100%;
  margin-top: 1.4rem;
  background: var(--red);
  border: none;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .75rem 1rem;
  cursor: pointer;
  transition: background .2s;
}
.signup-btn:hover { background: var(--red-bright); }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--charcoal);
  border-top: var(--border-red);
  padding: 1.2rem var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 4rem;
}
.site-footer p,
.site-footer a {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--grey-light);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.site-footer a:hover { color: var(--red); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

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

/* ── TABLET (≤ 900px) ────────────────────────────────────── */
@media (max-width: 900px) {

  .site-header {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .site-logo { justify-content: center; }
  .header-meta { justify-self: center; }

  .utility-bar {
    flex-direction: column;
    gap: .5rem;
    text-align: center;
  }
  .search-bar input { width: 160px; }

  .main-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav a { font-size: .8rem; padding: 0 .9rem; }

  .tape-entry {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tape-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

/* ── MOBILE (≤ 600px) ────────────────────────────────────── */
@media (max-width: 600px) {

  :root { --gutter: 1rem; }

  .site-logo img { height: 52px; }
  .header-meta   { font-size: .65rem; }

  .utility-bar { font-size: .68rem; }
  .social-links { gap: .6rem; flex-wrap: wrap; justify-content: center; }

  .main-nav a { font-size: .75rem; padding: 0 .7rem; }

  .genre-page-title { font-size: 1.7rem; }

  .tape-grid {
    grid-template-columns: 1fr;
  }
  .tape-card {
    grid-template-columns: 90px 1fr;
  }

  .contact-layout { gap: 1.4rem; }

  .contact-bottom-strip {
    flex-direction: column;
    align-items: flex-start;
  }
  .vhs-tape-img { width: 120px; }

  .signup-block { padding: 1rem; }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }
  .footer-links { justify-content: center; }
}

/* ── LARGE (≥ 1400px) ────────────────────────────────────── */
@media (min-width: 1400px) {
  .page-wrap { max-width: 1340px; }
  .tape-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================================
   JS-driven components (carousel / comments / forms)
   Appended by the Vercel+Supabase wiring pass.
   ========================================================= */

/* --- Back link + empty states --- */
.back-link {
  display: inline-block;
  margin: 1rem 0 1.5rem;
  font-family: var(--font-mono, monospace);
  color: var(--off-white, #e6e1d5);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
}
.back-link:hover { opacity: .8; }

.empty-state {
  font-family: var(--font-mono, monospace);
  color: var(--off-white, #e6e1d5);
  opacity: .7;
  padding: 1rem 0;
}

.form-status {
  font-family: var(--font-mono, monospace);
  font-size: .85rem;
  margin-top: .5rem;
  min-height: 1.2em;
  color: var(--off-white, #e6e1d5);
}

/* --- Carousel --- */
.tape-carousel {
  margin: 0 auto 2rem;
  max-width: 900px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.12);
  padding: 1rem;
}

.carousel-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.carousel-stage img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.6);
  color: var(--off-white, #e6e1d5);
  border: 1px solid rgba(255,255,255,.25);
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 2;
  font-family: var(--font-mono, monospace);
}
.carousel-btn:hover { background: rgba(0,0,0,.8); }
.carousel-btn.prev { left: .5rem; }
.carousel-btn.next { right: .5rem; }

.carousel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: .75rem;
  font-family: var(--font-mono, monospace);
  font-size: .85rem;
  color: var(--off-white, #e6e1d5);
  opacity: .85;
}

.carousel-label { margin: 0; }
.carousel-counter { opacity: .7; }

/* --- Tape detail block (under the carousel) --- */
.tape-detail {
  max-width: 900px;
  margin: 0 auto 2rem;
}

/* --- Comments section --- */
.comments-section {
  max-width: 900px;
  margin: 2rem auto 3rem;
}

.comments-section h2 {
  margin-bottom: 1rem;
  font-family: var(--font-display, serif);
}

.comment-list .comment {
  border-top: 1px solid rgba(255,255,255,.15);
  padding: .75rem 0;
}

.comment-list .comment:first-child { border-top: none; }

.comment header {
  display: flex;
  gap: .75rem;
  align-items: baseline;
  font-family: var(--font-mono, monospace);
  font-size: .8rem;
  opacity: .8;
  margin-bottom: .25rem;
}
.comment header strong { font-size: .9rem; opacity: 1; }
.comment header time { opacity: .6; }
.comment p { margin: 0; line-height: 1.5; }

/* --- Comment form --- */
.comment-form {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.15);
}

.comment-form input[type="text"],
.comment-form textarea {
  width: 100%;
  padding: .5rem .6rem;
  background: rgba(0,0,0,.25);
  color: var(--off-white, #e6e1d5);
  border: 1px solid rgba(255,255,255,.2);
  font-family: var(--font-mono, monospace);
  box-sizing: border-box;
}

.comment-form textarea {
  resize: vertical;
  min-height: 4rem;
}

.comment-form button {
  align-self: flex-start;
}

/* --- Clickable tape cards / entries --- */
.tape-card { transition: transform .15s ease, opacity .15s ease; }
.tape-card:hover { transform: translateY(-2px); opacity: .92; cursor: pointer; }

.tape-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tape-entry { transition: outline-color .15s ease; }
.tape-entry:hover { outline: 1px solid rgba(255,255,255,.15); }

