/* liminal-articles.css — unified global CRT/neon styles (site-wide)
   Goals:
   - Pure #000 backgrounds
   - Single, uniform H1 sizing across pages
   - Home elements (CRT title/subtitle, gallery, audio) included globally
*/

/* — Fonts — */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@100;400&display=swap');

/* — Theme Vars — */
:root {
  --bg-color: #000;       /* pure black */
  --text-color: #ccc;
  --link-color: #aaa;
  --hover-color: #fff;
  --neon-aqua: #00ffff;
}

/* — Base — */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Raleway', sans-serif;
  font-weight: 100;
  margin: 0;
  padding: 0;
}

h1 {
  font-weight: 100;
  margin: 0;
  color: #fff;
  text-shadow:
    0 0 10px #fff,
    0 0 20px #fff,
    0 0 30px #0ff,
    0 0 40px #0ff,
    0 0 50px #0ff,
    0 0 60px #0ff,
    0 0 70px #0ff;
}

/* Uniform main title sizing (Home + Articles) */
.crt-title h1,
header.crt h1 { font-size: 8vw; }

h2 {
  font-size: 3vmin;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #fff;
  text-shadow:
    0 0 10px #fff,
    0 0 20px #fff,
    0 0 30px #fff,
    0 0 40px #ff00de,
    0 0 50px #ff00de;
}

a {
  color: var(--link-color);
  transition: color 0.3s;
  text-decoration: none;
}
a:hover { color: var(--hover-color); }

header {
  text-align: center;
  padding: 40px 20px 20px; /* Home may visually add more vertical space via CRT blocks */
  background-color: var(--bg-color);
}

nav {
  background-color: var(--bg-color);
  padding: 10px;
  margin-bottom: 30px;
}
nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}
nav li { text-transform: uppercase; }

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background-color: var(--bg-color);
}

/* — Articles — */
article {
  margin-bottom: 60px;
  border: 1px solid var(--neon-aqua);
  border-radius: 5px;
  padding: 20px;
  box-shadow: 0 0 10px var(--neon-aqua);
  animation: glow-pulse 4s infinite alternate;
  line-height: 1.6;
  background-color: var(--bg-color);
}

@keyframes glow-pulse {
  0%   { box-shadow: 0 0 5px var(--neon-aqua); }
  100% { box-shadow: 0 0 20px var(--neon-aqua); }
}

/* Article headings on index cards (if used) */
article h3 {
  font-size: 10em;
  margin-bottom: 0.5em;
}

article p { margin-bottom: 1.5em; }

article img,
article video {
  max-width: 100%;
  display: block;
  margin: 2em auto;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

article a {
  display: inline-block;
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 20px;
}
article a:hover { background-color: #555; }

/* — Utilities — */
footer {
  background-color: var(--bg-color);
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  margin-top: 60px;
}

.crt {
  position: relative;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  padding: 20px;
  background-color: var(--bg-color);
  margin-bottom: 40px;
}

.back-button {
  display: inline-block;
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  margin-bottom: 20px;
}
.back-button:hover { background-color: #555; }

.comments,
.share-buttons { margin-top: 40px; }
.comments h3,
.share-buttons h3 { margin-bottom: 20px; }

.comment-form { margin-bottom: 40px; }
.comment-form label,
.comment-form textarea {
  display: block;
  margin-bottom: 10px;
}
.comment-form textarea {
  width: 100%;
  min-height: 100px;
  padding: 10px;
  border-radius: 5px;
  background-color: #222;
  color: #fff;
  border: none;
}
.comment-form button,
.share-buttons a {
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  margin-right: 10px;
}
.comment-form button:hover,
.share-buttons a:hover { background-color: #555; }

/* — Home elements (GLOBAL, consistent look) — */
/* CRT title + subtitle blocks */
.crt-title,
.crt-subtitle {
  position: relative;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  background-color: #000; /* enforce pure black */
  padding: 20px;
}
.crt-title::before,
.crt-subtitle::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(18,16,16,0) 50%, rgba(0,0,0,0.25) 50%),
    linear-gradient(90deg, rgba(255,0,0,0.06), rgba(0,255,0,0.02), rgba(0,0,255,0.06));
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

/* Optional neon flicker — applies wherever .crt-title is used */
.crt-title h1 {
  animation: flicker 9s infinite alternate;
}
@keyframes flicker {
  0%,18%,22%,25%,53%,57%,65% {
    text-shadow:
      0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff,
      0 0 50px #0ff, 0 0 35px #0ff, 0 0 15px #0ff;
  }
  20%,24%,55% { text-shadow: none; }
}

/* Gallery grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-rows: 200px;
  gap: 20px;
  margin-top: 40px;
  position: relative;
}
.gallery a { overflow: hidden; }
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s, filter .4s;
  display: block;
}
.gallery img:hover {
  transform: scale(1.1);
  filter: brightness(1.2) contrast(1.1);
  z-index: 1;
}

/* Audio player skin */
audio {
  background-color: #000;
  padding: 10px; margin-bottom: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  width: 100%;
}
audio::-webkit-media-controls-panel { background-color: #000; color: #fff; }
audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display { color: #fff; }
audio::-webkit-media-controls-enclosure { background-color: #000; }

/* — Responsive — */
@media screen and (max-width: 900px) {
  /* Keep main title legible and nav stacked */
  .crt-title h1,
  header.crt h1 { font-size: 8vw; }

  h2 { font-size: 5vmin; padding: 0; }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  main { padding: 10px; }

  /* Smaller gallery cards on narrow screens */
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    grid-auto-rows: 150px;
  }
}

@media screen and (max-width: 600px) {
  /* Maintain strong header presence on mobile */
  .crt-title h1,
  header.crt h1 { font-size: 10vw; }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  main { padding: 10px; }
}
