/* ==========================================================================
   OtherWorlds TV — brand.css
   One shared source for colors, type, nav, logo effects, and card styles.
   Every page on every OtherWorlds subdomain should link this same file.
   Change a value here once; it updates everywhere that links it.
   ========================================================================== */

:root {
  --bg: #111;
  --text: #eee;
  --muted: #b9b9b9;
  --accent: #0ff;          /* the OtherWorlds cyan */
  --accent-soft: #8cf;
  --link: #9cf;
  --radius: 8px;
  --card-shadow: 0 0 12px #000;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: system-ui, sans-serif;
  margin: 0;
  padding: 0;
}

a { color: var(--link); }

/* ---------- Logo ---------- */
.ow-logo-wrap {
  text-align: center;
  margin-top: 1rem;
}

.ow-logo-wrap img {
  max-width: 300px;
  width: 90%;
  height: auto;
}

.glitch-logo {
  animation: glitch 4s infinite, flicker 6s infinite;
  image-rendering: pixelated;
}

@keyframes glitch {
  0%, 100% { opacity: 1; transform: none; }
  10% { transform: translate(0.5px, -0.5px) skew(0.2deg); }
  20% { opacity: 0.95; }
  30% { transform: translate(-1px, 0.5px) skew(-0.3deg); }
  50% { transform: translate(0.8px, 0.8px); opacity: 0.97; }
  70% { transform: skew(0.5deg); }
  90% { transform: translate(-0.5px, -0.5px) skew(-0.3deg); opacity: 1; }
}

@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.3; }
}

/* ---------- Nav ---------- */
nav.ow-nav {
  padding: 1rem;
  text-align: center;
}

nav.ow-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav.ow-nav li {
  display: inline-block;
  margin: 0 1rem;
}

nav.ow-nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
  text-shadow: 0 0 6px var(--accent);
}

nav.ow-nav a:hover {
  text-decoration: underline;
  animation: flickerglow 1s infinite;
}

/* NOTE: the original stylesheet (copy-pasted across ~295 pages) had this
   keyframe block duplicated with a stray, malformed closing fragment.
   Fixed here — this is the single correct version. */
@keyframes flickerglow {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    text-shadow: 0 0 6px var(--accent), 0 0 12px var(--accent), 0 0 18px var(--accent);
  }
  20%, 24%, 55% {
    text-shadow: 0 0 2px #044;
  }
}

/* ---------- Scanline overlay ---------- */
.scanlines {
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035) 0px,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 2px
  );
  animation: scanline-flicker 1s steps(2) infinite;
}

@keyframes scanline-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

main {
  padding: 2rem;
}

/* ---------- Shared card component ----------
   Used by hosts, staff, and (optionally) other poster/profile grids. */
.ow-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.ow-card {
  text-align: center;
  width: 160px;
}

.ow-card img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease;
}

.ow-card img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px var(--accent);
}

.ow-card p {
  margin-top: 0.5rem;
  font-weight: bold;
  color: var(--accent-soft);
  font-size: 0.95rem;
}

.ow-card .role {
  font-size: 0.75rem;
  font-weight: normal;
  color: var(--muted);
  margin-top: 0;
}

/* ---------- Profile page (host / staff detail) ---------- */
.ow-profile {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
  justify-content: center;
}

.ow-profile img {
  max-width: 200px;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.ow-profile .bio {
  max-width: 600px;
}

.ow-profile .bio h2 {
  margin-top: 0;
  color: var(--accent);
}

.ow-profile .bio p {
  margin-bottom: 1rem;
}

.ow-coming-soon {
  font-style: italic;
  color: var(--muted);
}

/* ---------- 404 ---------- */
.lost-signal {
  text-align: center;
  max-width: 600px;
  margin: 4rem auto;
  color: #ccc;
  animation: flicker404 1.2s infinite alternate;
}
.lost-signal h1 { font-size: 2.5rem; text-shadow: 0 0 5px #f0f; }
.tv-static {
  width: 100%;
  height: 200px;
  background: url('/images/static.gif') repeat;
  background-size: cover;
  filter: contrast(1.4) brightness(0.8);
  margin: 2rem 0;
}
.back-link { display: inline-block; margin-top: 1rem; color: var(--accent); font-weight: bold; text-shadow: 0 0 5px var(--accent); }
.back-link:hover { text-decoration: underline; text-shadow: 0 0 12px var(--accent); }
@keyframes flicker404 { from { opacity: 0.95; } to { opacity: 0.8; } }
