/* ===========================
   NONIRASILVERTAIL — style.css
   Biopunk Space Dragulf Theme
   =========================== */

:root {
  --void: #05050a;
  --deep-space: #0d0d1a;
  --panel: #111120;
  --panel-border: #1e1e3a;
  --green-core: #2ea84a;
  --green-bright: #4dff6e;
  --green-glow: #39ff5a;
  --green-dim: #1a5c2a;
  --purple-nebula: #6b2fa0;
  --purple-soft: #9b59d4;
  --purple-dim: #2a1040;
  --teal-cosmic: #1a7a8a;
  --teal-bright: #2ecce0;
  --white-text: #e8f0e8;
  --muted: #6a7a6a;
  --scanline: rgba(0, 255, 60, 0.025);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--white-text);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scanline overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    var(--scanline) 2px,
    var(--scanline) 4px
  );
  pointer-events: none;
  z-index: 9999;
  animation: scanShift 10s linear infinite;
}

@keyframes scanShift {
  0%   { background-position: 0 0; }
  100% { background-position: 0 -120px; }
}

/* ========== LIVE BANNER ========== */
.live-banner {
  position: fixed;
  top: 62px;
  left: 0;
  right: 0;
  z-index: 999;
  background: linear-gradient(90deg, #1a0a00, #2d1200, #1a0a00);
  border-bottom: 1px solid rgba(255, 80, 0, 0.4);
  padding: 0.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Source Code Pro', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #ffaa44;
}

.live-banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4400;
  box-shadow: 0 0 8px #ff4400;
  animation: pulseDot 1.2s infinite;
  flex-shrink: 0;
}

.live-banner-viewers {
  color: rgba(255, 170, 68, 0.6);
  font-size: 0.65rem;
}

.live-banner-btn {
  margin-left: auto;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: #ff4400;
  padding: 0.3em 1em;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s;
}

.live-banner-btn:hover { background: #ff6622; }

/* Offline dot — no pulse, grey */
.live-dot-offline {
  background: var(--muted) !important;
  box-shadow: none !important;
  animation: none !important;
}

/* ========== NAV ========== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 2.5rem;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 5, 10, 0.88);
  border-bottom: 1px solid var(--panel-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-logo {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  color: var(--green-bright);
  text-decoration: none;
  text-transform: uppercase;
}

.nav-logo span {
  color: var(--muted);
  font-weight: 300;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--green-bright); }

.nav-twitch {
  background: var(--green-core) !important;
  color: #000 !important;
  padding: 0.4em 1.2em;
  border-radius: 3px;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}

.nav-twitch:hover {
  background: var(--green-bright) !important;
  color: #000 !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--panel-border);
  color: var(--white-text);
  padding: 0.3em 0.7em;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 3px;
}

/* ========== HERO ========== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 8rem 3rem 4rem;
  max-width: 680px;
}

.hero-eyebrow {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: var(--green-core);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--green-core);
}

h1 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 0.3rem;
}

h1 .name-green {
  color: var(--green-bright);
  text-shadow: 0 0 40px rgba(77, 255, 110, 0.4);
}

h1:hover .name-green {
  animation: glitch 0.35s ease-in-out;
}

@keyframes glitch {
  0%   { text-shadow: 0 0 40px rgba(77,255,110,0.4); }
  25%  { text-shadow: 3px 0 0 rgba(46,204,224,0.8), -3px 0 0 rgba(107,47,160,0.8); }
  50%  { text-shadow: -3px 0 0 rgba(46,204,224,0.8), 3px 0 0 rgba(107,47,160,0.8); }
  75%  { text-shadow: 1px 0 0 rgba(46,204,224,0.5), -1px 0 0 rgba(107,47,160,0.5); }
  100% { text-shadow: 0 0 40px rgba(77,255,110,0.4); }
}

.hero-subtitle {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.78rem;
  color: var(--purple-soft);
  letter-spacing: 0.05em;
  margin: 1.5rem 0 2.5rem;
  line-height: 2;
}

.hero-subtitle .tag {
  display: inline-block;
  background: rgba(107, 47, 160, 0.15);
  border: 1px solid rgba(107, 47, 160, 0.4);
  padding: 0.15em 0.7em;
  border-radius: 2px;
  margin: 0.2em 0.3em 0.2em 0;
  font-size: 0.68rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-sona {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: clamp(260px, 32vw, 480px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
}

.hero-fursona {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 40px rgba(77, 255, 110, 0.3))
          drop-shadow(0 0 100px rgba(46, 168, 74, 0.1));
  animation: floatChar 5s ease-in-out infinite;
  mix-blend-mode: normal;
}

/* remove white bg from PNG */
.hero-fursona {
  image-rendering: auto;
}

@keyframes floatChar {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-16px); }
}

.live-indicator {
  position: absolute;
  top: 80px;
  right: 3rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Source Code Pro', monospace;
  font-size: 0.63rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-glow);
  box-shadow: 0 0 8px var(--green-glow);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--green-glow); }
  50%       { opacity: 0.35; box-shadow: 0 0 2px var(--green-glow); }
}

/* ========== BUTTONS ========== */
.btn {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75em 2em;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  display: inline-block;
}

.btn-primary {
  background: var(--green-core);
  color: #000;
  box-shadow: 0 0 20px rgba(46, 168, 74, 0.3);
}

.btn-primary:hover {
  background: var(--green-bright);
  box-shadow: 0 0 30px rgba(77, 255, 110, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--green-bright);
  border: 1px solid var(--green-dim);
}

.btn-secondary:hover {
  border-color: var(--green-bright);
  box-shadow: 0 0 15px rgba(77, 255, 110, 0.15);
}

/* ========== SHARED SECTION ========== */
section { position: relative; }

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-dim), transparent);
}

.nebula-bg {
  background:
    radial-gradient(ellipse at 15% 50%, rgba(107, 47, 160, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 50%, rgba(26, 122, 138, 0.05) 0%, transparent 60%),
    var(--deep-space);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2.5rem;
}

.section-label {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.63rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green-core);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-label::after {
  content: '';
  height: 1px;
  background: linear-gradient(90deg, var(--green-dim), transparent);
  width: 80px;
}

h2 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #fff;
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}

.about-text p {
  color: #8a9a8a;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  line-height: 1.85;
}

.about-text p strong {
  color: var(--green-bright);
  font-weight: 500;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--panel-border);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  overflow: hidden;
}

.stat-item {
  background: var(--panel);
  padding: 1.75rem;
  text-align: center;
}

.stat-value {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--green-bright);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ========== LORE ========== */
#lore {
  background: var(--void);
}

#lore::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 255, 60, 0.012) 3px,
    rgba(0, 255, 60, 0.012) 4px
  );
  pointer-events: none;
}

.lore-terminal {
  background: rgba(5, 5, 10, 0.97);
  border: 1px solid var(--green-dim);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 2.5rem;
  box-shadow: 0 0 50px rgba(46, 168, 74, 0.07);
}

.terminal-bar {
  background: #0a0a14;
  border-bottom: 1px solid var(--panel-border);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-red    { background: #ff5f57; }
.t-yellow { background: #febc2e; }
.t-green  { background: var(--green-core); }

.terminal-title {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-left: auto;
}

.terminal-body {
  padding: 1.8rem 2rem;
  font-family: 'Source Code Pro', monospace;
  font-size: 0.78rem;
  line-height: 2.1;
  color: #7aaa7a;
}

.terminal-body .prompt  { color: var(--green-bright); }
.terminal-body .comment { color: var(--muted); }
.terminal-body .key     { color: var(--teal-bright); }
.terminal-body .value   { color: #d0d8d0; }
.terminal-body .warning { color: #febc2e; }
.terminal-body .special { color: var(--purple-soft); }

.lore-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.lore-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lore-card:hover {
  border-color: var(--green-dim);
  box-shadow: 0 0 20px rgba(46, 168, 74, 0.06);
}

.lore-card-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 0.75rem;
}

.lore-card p {
  font-size: 0.85rem;
  color: #7a8a7a;
  line-height: 1.85;
}

/* ========== SCHEDULE ========== */
#schedule { background: var(--panel); }

.schedule-grid {
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 2.5rem;
}

.schedule-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--panel-border);
  transition: background 0.2s;
}

.schedule-row:last-child { border-bottom: none; }
.schedule-row:hover { background: rgba(46, 168, 74, 0.04); }

.sched-day {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: #fff;
}

.schedule-row.off .sched-day { color: var(--muted); }

.sched-info {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #7a8a7a;
}

.sched-status {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-core);
  background: rgba(46, 168, 74, 0.1);
  padding: 0.25em 0.8em;
  border-radius: 2px;
}

.sched-status.off {
  color: var(--muted);
  background: rgba(106, 122, 106, 0.08);
}

/* ========== COSMOS ========== */
#cosmos {
  background: var(--void);
}

#cosmos::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 25%, rgba(107, 47, 160, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 75%, rgba(26, 122, 138, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(46, 168, 74, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.cosmos-intro {
  max-width: 600px;
  font-size: 0.92rem;
  color: #7a8a7a;
  line-height: 1.9;
  margin-top: 0.75rem;
}

.space-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.space-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.space-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(107, 47, 160, 0.12) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.space-card:hover::after { opacity: 1; }

.space-card:hover {
  border-color: rgba(107, 47, 160, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(107, 47, 160, 0.1);
}

.space-emoji {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
}

.space-card-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.6rem;
}

.space-card p {
  font-size: 0.82rem;
  color: #6a7a6a;
  line-height: 1.75;
}

/* ========== SOCIALS ========== */
.socials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.social-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 1.5rem;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.social-card:hover {
  border-color: var(--green-dim);
  background: rgba(46, 168, 74, 0.04);
  transform: translateY(-2px);
}

.social-icon { font-size: 1.5rem; line-height: 1; }

.social-platform {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.social-handle {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--green-bright);
}

/* ========== EMOTES ========== */
#emotes { background: var(--panel); }

.emote-placeholder {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.emote-slot {
  aspect-ratio: 1;
  background: var(--deep-space);
  border: 1px dashed var(--panel-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Source Code Pro', monospace;
  font-size: 0.5rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-align: center;
}

/* ========== SUPPORT ========== */
#support { background: var(--deep-space); }

.support-inner {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.support-inner p {
  color: #7a8a7a;
  font-size: 0.9rem;
  line-height: 1.85;
  margin-bottom: 2rem;
}

.support-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ========== FOOTER ========== */
footer {
  background: var(--void);
  border-top: 1px solid var(--panel-border);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--green-bright);
  text-transform: uppercase;
}

.footer-copy {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.6rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--green-bright); }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .about-grid       { grid-template-columns: 1fr; gap: 2.5rem; }
  .lore-sections    { grid-template-columns: 1fr; }
  .space-grid       { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  nav { padding: 0 1.2rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: rgba(5, 5, 10, 0.97);
    border-bottom: 1px solid var(--panel-border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
    backdrop-filter: blur(14px);
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .hero-content { padding: 7rem 1.5rem 10rem; }
  .hero-sona {
    width: 55vw;
    max-width: 240px;
    bottom: 0;
    right: 0;
    opacity: 0.5;
  }

  .live-indicator { right: 1rem; }

  .container { padding: 3.5rem 1.5rem; }

  .schedule-row { grid-template-columns: 100px 1fr; }
  .sched-status { display: none; }

  .space-grid { grid-template-columns: 1fr; }

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

@media (prefers-reduced-motion: reduce) {
  body::before,
  .hero-fursona,
  .live-dot { animation: none; }
}
