/* =====================================================================
   PROJECT RED FUR — Stylesheet
   Poppy Playtime Chapter 4 Fangame
   ===================================================================== */

/* ─────────────────────────────
   VARIABLES
───────────────────────────── */
:root {
  --red:        #c0000a;
  --red-bright: #ff1a1a;
  --red-dark:   #6b0007;
  --red-glow:   rgba(192, 0, 10, 0.45);
  --orange:     #ff5500;
  --yellow:     #ffd000;
  --bg:         #0a0a0a;
  --surface:    #1a1414;
  --border:     #2e1a1a;
  --text:       #d4c0c0;
  --text-dim:   #7a6060;
  --mono:       'Share Tech Mono', monospace;
  --display:    'Bebas Neue', sans-serif;
  --body-font:  'Oswald', sans-serif;
}

/* ─────────────────────────────
   RESET & BASE
───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  font-weight: 300;
  overflow-x: hidden;
  cursor: crosshair;
}

/* Scanlines overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent, transparent 2px,
    rgba(0, 0, 0, 0.13) 2px, rgba(0, 0, 0, 0.13) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ─────────────────────────────
   HERO
───────────────────────────── */
#hero {
  position: relative;
  height: 100vh; min-height: 600px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden;
  border-bottom: 2px solid var(--red-dark);
}

#hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% 75%, rgba(192, 0, 10, 0.3) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 15% 85%, rgba(255, 85, 0, 0.1) 0%, transparent 60%),
    linear-gradient(180deg, #000 0%, #0d0505 60%, #1a0404 100%);
}

/* Warning stripes */
.stripe-bar { position: absolute; left: 0; right: 0; }

.stripe-bar.bottom {
  bottom: 0; height: 10px;
  background: repeating-linear-gradient(
    90deg, var(--red) 0, var(--red) 28px, #111 28px, #111 56px
  );
  animation: scroll-stripe 2s linear infinite;
}

.stripe-bar.top {
  top: 0; height: 5px;
  background: repeating-linear-gradient(
    90deg, var(--orange) 0, var(--orange) 18px, #000 18px, #000 36px
  );
  animation: scroll-stripe 1.5s linear infinite reverse;
}

@keyframes scroll-stripe {
  from { background-position: 0; }
  to   { background-position: 56px; }
}

/* Hero text */
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 20px;
}

.hero-chapter {
  font-family: var(--mono); font-size: .8rem;
  letter-spacing: .45em; color: var(--red);
  margin-bottom: 14px;
  animation: flicker .9s ease both;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(5rem, 14vw, 13rem);
  line-height: .9; color: #fff;
  text-shadow: 0 0 20px var(--red), 0 0 60px var(--red-dark), 2px 2px 0 var(--red-dark);
  animation: slam .55s cubic-bezier(.25, .46, .45, .94) .3s both;
}

.hero-title .accent {
  color: var(--red-bright);
  text-shadow: 0 0 30px var(--red-bright), 0 0 70px var(--red);
}

.hero-badge {
  display: inline-block; margin-top: 12px;
  background: var(--red-dark); border: 1px solid var(--red);
  padding: 4px 20px;
  font-family: var(--mono); font-size: .68rem;
  letter-spacing: .3em; color: var(--red-bright);
  animation: flicker 1s ease .9s both;
}

.hero-villain {
  font-family: var(--mono); font-size: .75rem;
  color: var(--text-dim); letter-spacing: .22em;
  margin-top: 6px;
  animation: flicker 1s ease 1.05s both;
}
.hero-villain span { color: var(--red-bright); }

.hero-sub {
  font-family: var(--mono); font-size: .72rem;
  color: var(--text-dim); letter-spacing: .28em;
  margin-top: 5px;
  animation: flicker 1s ease 1.15s both;
}

/* Download button */
.dl-btn {
  display: inline-flex; align-items: center; gap: 11px;
  margin-top: 38px; padding: 16px 42px;
  background: #666; color: #ccc;
  font-family: var(--display); font-size: 1.55rem; letter-spacing: .12em;
  text-decoration: none; border: 2px solid #999;
  position: relative; overflow: hidden;
  transition: background .2s, box-shadow .2s, transform .15s;
  cursor: pointer;
  animation: flicker 1s ease 1.4s both;
}

.dl-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
  transform: translateX(-100%); transition: transform .45s ease;
}
.dl-btn:hover::before { transform: translateX(100%); }

.dl-btn:hover {
  background: #777;
  box-shadow: none;
  transform: none;
}

.dl-btn svg { width: 22px; height: 22px; fill: currentColor; flex-shrink: 0; }

/* Discord button */
.discord-btn {
  display: inline-flex; align-items: center; gap: 11px;
  margin-top: 12px; margin-left: 12px; padding: 16px 42px;
  background: #5865f2; color: #fff;
  font-family: var(--display); font-size: 1.55rem; letter-spacing: .12em;
  text-decoration: none; border: 2px solid #7289da;
  position: relative; overflow: hidden;
  transition: background .2s, box-shadow .2s, transform .15s;
  cursor: pointer;
  animation: flicker 1s ease 1.4s both;
}

.discord-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
  transform: translateX(-100%); transition: transform .45s ease;
}
.discord-btn:hover::before { transform: translateX(100%); }

.discord-btn:hover {
  background: #7289da;
  box-shadow: none;
  transform: none;
}

.discord-btn img { width: 22px; height: 22px; flex-shrink: 0; }

/* Keyframes */
@keyframes slam {
  from { opacity: 0; transform: scaleY(1.6) translateY(-40px); }
  to   { opacity: 1; transform: none; }
}

@keyframes flicker {
  0%   { opacity: 0; }
  55%  { opacity: .8; }
  65%  { opacity: .15; }
  80%  { opacity: .95; }
  100% { opacity: 1; }
}

/* ─────────────────────────────
   NAVIGATION
───────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 500;
  background: rgba(8, 4, 4, .94); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 52px;
}

.nav-logo {
  font-family: var(--display); font-size: 1.15rem;
  letter-spacing: .18em; color: var(--red-bright);
  text-shadow: 0 0 12px var(--red);
}

nav ul { list-style: none; display: flex; gap: 28px; }

nav ul a {
  font-family: var(--mono); font-size: .72rem;
  letter-spacing: .22em; color: var(--text-dim);
  text-decoration: none; text-transform: uppercase;
  transition: color .2s;
}
nav ul a:hover { color: var(--red-bright); }

/* ─────────────────────────────
   SHARED SECTION LAYOUT
───────────────────────────── */
.section { padding: 80px 40px; max-width: 1300px; margin: 0 auto; }

.section-label {
  font-family: var(--mono); font-size: .68rem;
  letter-spacing: .42em; color: var(--red);
  text-transform: uppercase; margin-bottom: 6px;
}

.section-title {
  font-family: var(--display); font-size: clamp(2.6rem, 6vw, 5rem);
  color: #fff; line-height: 1;
  text-shadow: 0 0 20px var(--red-dark);
  margin-bottom: 44px;
}

.red-line { width: 44px; height: 3px; background: var(--red); margin-bottom: 22px; }

.divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--red-dark) 0%, transparent 80%);
}

/* ─────────────────────────────
   SCREENSHOTS GRID
───────────────────────────── */
.ss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.ss-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9; background: #000;
  cursor: pointer; transition: border-color .25s;
}
.ss-card:hover { border-color: var(--red); }

.ss-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease, filter .3s;
  filter: saturate(.82);
}
.ss-card:hover img { transform: scale(1.05); filter: saturate(1.1) brightness(1.06); }

.ss-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(192, 0, 10, .6) 0%, transparent 55%);
  opacity: 0; transition: opacity .3s;
  display: flex; align-items: flex-end; padding: 14px;
}
.ss-card:hover .ss-overlay { opacity: 1; }
.ss-overlay span {
  font-family: var(--mono); font-size: .66rem;
  letter-spacing: .2em; color: #fff; text-transform: uppercase;
}

.zoom-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(192, 0, 10, .85); border-radius: 50%;
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.ss-card:hover .zoom-icon { transform: translate(-50%, -50%) scale(1); }
.zoom-icon svg { width: 22px; height: 22px; fill: #fff; }

/* ─────────────────────────────
   LIGHTBOX
───────────────────────────── */
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, .94);
  align-items: center; justify-content: center; flex-direction: column;
}
#lightbox.open { display: flex; }

#lightbox img {
  max-width: 90vw; max-height: 80vh; object-fit: contain;
  border: 1px solid var(--red-dark);
  box-shadow: 0 0 80px var(--red-glow);
}

#lb-close {
  position: absolute; top: 22px; right: 28px;
  font-family: var(--display); font-size: 2rem;
  color: var(--text-dim); cursor: pointer;
  background: none; border: none; transition: color .2s;
}
#lb-close:hover { color: var(--red-bright); }

.lb-nav { display: flex; gap: 16px; margin-top: 18px; }

.lb-btn {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .2em;
  color: var(--text-dim); background: var(--surface);
  border: 1px solid var(--border); padding: 10px 22px;
  cursor: pointer; text-transform: uppercase; transition: all .2s;
}
.lb-btn:hover { background: var(--red-dark); color: #fff; border-color: var(--red); }

#lb-counter {
  font-family: var(--mono); font-size: .68rem;
  color: var(--text-dim); letter-spacing: .25em; margin-top: 10px;
}

/* ─────────────────────────────
   NEWS / DEV LOG
───────────────────────────── */
.news-list { display: flex; flex-direction: column; gap: 10px; }

.news-entry {
  border-left: 3px solid var(--red-dark);
  padding: 22px 26px; background: var(--surface);
  position: relative; overflow: hidden;
  transition: border-color .2s;
}
.news-entry:hover { border-color: var(--red-bright); }

.news-entry::before {
  content: ''; position: absolute; left: -3px; top: 0;
  width: 3px; height: 0; background: var(--red-bright);
  transition: height .3s ease;
}
.news-entry:hover::before { height: 100%; }

.news-date {
  font-family: var(--mono); font-size: .63rem;
  letter-spacing: .32em; color: var(--red);
  text-transform: uppercase; margin-bottom: 10px;
}

.news-line {
  font-family: var(--body-font); font-size: .93rem;
  line-height: 1.72; font-weight: 300; margin-bottom: 2px;
}

.news-line a {
  color: var(--orange); text-decoration: underline;
  text-underline-offset: 3px; transition: color .2s;
}
.news-line a:hover { color: var(--yellow); }

.news-empty {
  font-family: var(--mono); font-size: .75rem;
  color: var(--text-dim); letter-spacing: .2em; padding: 30px 0;
}

/* ─────────────────────────────
   PROGRESS CARDS
───────────────────────────── */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.status-card {
  background: var(--surface); border: 1px solid var(--border);
  padding: 24px; position: relative; overflow: hidden;
}

.status-card::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  height: 3px; background: var(--red);
  width: var(--pct, 0%);
  transition: width 1.3s cubic-bezier(.25, .46, .45, .94);
}

.sc-label {
  font-family: var(--mono); font-size: .63rem;
  letter-spacing: .3em; color: var(--text-dim);
  text-transform: uppercase; margin-bottom: 6px;
}
.sc-name { font-family: var(--display); font-size: 1.5rem; color: #fff; margin-bottom: 10px; }
.sc-pct  { font-family: var(--display); font-size: 2.4rem; color: var(--red-bright); text-shadow: 0 0 14px var(--red); }

/* ─────────────────────────────
   FOOTER
───────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 38px 40px; text-align: center;
  font-family: var(--mono); font-size: .68rem;
  color: var(--text-dim); letter-spacing: .18em;
}
footer em { color: var(--red); font-style: normal; }

/* ─────────────────────────────
   SCROLLBAR
───────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--red-dark); }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ─────────────────────────────
   RESPONSIVE
───────────────────────────── */
@media (max-width: 680px) {
  nav { padding: 0 18px; }
  nav ul { gap: 14px; }
  .section { padding: 55px 18px; }
}
