/* CYBERPUNK THEME ✨🔧 */
/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&family=Share+Tech+Mono&display=swap');

/* ========== VARIABLES ========== */
:root {
  --pink: #ff38b8;
  --cyan: #00ffff;
  --bg: #0d0d0d;
  --fg: #c0c0c0;
  --card-bg: rgba(0, 0, 0, 0.6);
  --border: #333;
}

/* ========== GLOBAL STYLES ========== */
* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: 'Share Tech Mono', monospace;
  padding: 20px;
  line-height: 1.7;
  position: relative;
  overflow-x: hidden;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3 {
  font-family: 'Orbitron', sans-serif;
  color: var(--cyan);
  text-shadow: 0 0 5px var(--cyan), 0 0 10px var(--cyan);
  line-height: 1.2;
}

a {
  color: var(--pink);
  text-decoration: none;
  transition: color 0.3s, text-shadow 0.3s;
}
a:hover {
  color: #fff;
  text-shadow: 0 0 3px var(--pink);
}

/* ========== STRUCTURE ========== */
article, .chat-bubble, .memo, form, .comment-entry {
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: 0 0 10px #0ff, 0 0 25px #f0f;
  border-radius: 8px;
  padding: 1.2em;
  margin-bottom: 24px;
}

/* ========== REACTIONS ========== */
.reactions {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.reactable-paragraph:hover .reactions {
  opacity: 1;
  pointer-events: auto;
}
.react-btn {
  background-color: #222;
  color: var(--pink);
  border: 1px solid var(--pink);
  padding: 6px 12px;
  font-family: 'Orbitron', sans-serif;
  cursor: pointer;
  text-shadow: 0 0 3px var(--pink);
  border-radius: 4px;
  font-size: 0.9em;
  transition: all 0.2s ease;
}
.react-btn:hover {
  background-color: var(--pink);
  color: #000;
}

/* ========== CHAT BUBBLES ========== */
.chat-bubble {
  padding: 8px 12px;
  border-left: 4px solid var(--cyan);
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 8px #222;
}
.chat-user {
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
}
li.green .chat-bubble { color: #00ff99; }
li.blue .chat-bubble { color: #33ccff; }
li.purple .chat-bubble { color: #cc66ff; }
li.yellow .chat-bubble { color: #ffff66; }
li.red .chat-bubble { color: #ff3333; }

/* ========== FORMS ========== */
input[type="text"],
textarea {
  background: #111;
  color: #fff;
  border: 1px solid var(--pink);
  padding: 8px;
  width: 100%;
  margin-bottom: 12px;
  border-radius: 4px;
}
input:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 5px var(--pink);
}
button[type="submit"] {
  background: var(--pink);
  color: #000;
  font-family: 'Orbitron', sans-serif;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
}
button[type="submit"]:hover {
  background: #ff69c6;
}

/* ========== SPECIAL EFFECTS ========== */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    rgba(255,255,255,0.02),
    rgba(255,255,255,0.02) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 999;
}

/* ========== BANNER ========== */
.cyberpunk-banner {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 10;
  width: 180px;
  opacity: 0.85;
  filter: contrast(120%) brightness(110%);
  animation: flicker-glitch 2.2s infinite alternate;
  pointer-events: none;
}
.cyberpunk-banner img {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid var(--pink);
  box-shadow: 0 0 15px #ff38b8aa;
  border-radius: 4px;
}
@keyframes flicker-glitch {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

/* ========== FOOTER ========== */
footer {
  position: relative;
  text-align: center;
  color: #ccc;
  font-size: 0.9em;
  padding: 4em 1em 2em;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  background: url('../NDimages/city-bg.jpg') no-repeat center bottom;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-blend-mode: overlay;
  background-color: #0d0d0d;
  transition: background-position 3s ease;
}
footer:hover {
  background-position: center calc(100% - 20px);
}
footer::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, #0d0d0d 30%, transparent 90%);
  pointer-events: none;
  z-index: 0;
}
footer > * {
  position: relative;
  z-index: 1;
}

/* ========== MISC STYLES ========== */
code, em {
  color: var(--pink);
  font-style: normal;
  background: rgba(255, 56, 184, 0.1);
  padding: 2px 4px;
  border-radius: 4px;
}
hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, var(--pink), var(--cyan));
  margin: 30px 0;
}
a[href="#top"] {
  color: var(--cyan);
  font-size: 1.2em;
  display: inline-block;
  margin-top: 15px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  body {
    padding: 15px;
  }

  .cyberpunk-banner {
    top: auto;
    bottom: 20px;
    right: 10px;
    width: 130px;
  }

  .react-btn {
    padding: 5px 10px;
    font-size: 0.8em;
  }

  footer {
    font-size: 0.8em;
  }
}

/* ========== SPLASH SCREEN ========== */
.splash-screen {
  position: fixed;
  z-index: 9999;
  background: #000;
  color: #0ff;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  transition: opacity 0.8s ease;
}
.glitch-text {
  font-size: 2.2em;
  color: #00ffff;
  text-shadow: 
    0 0 5px #00ffff,
    2px 2px #ff00ff,
    -2px -2px #00f,
    0 0 10px #fff;
  animation: glitch-flicker 1.5s infinite;
}
.typing-text {
  margin-top: 20px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1em;
  color: #ff38b8;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid var(--pink);
  width: 0;
  animation: typewriter 2.5s steps(22) 0.6s forwards;
}
@keyframes glitch-flicker {
  0% { opacity: 1; transform: translate(0, 0); }
  20% { opacity: 0.9; transform: translate(-1px, 1px); }
  40% { opacity: 1; transform: translate(2px, -2px); }
  60% { opacity: 0.85; transform: translate(-2px, 2px); }
  80% { opacity: 1; transform: translate(1px, -1px); }
  100% { opacity: 1; transform: translate(0, 0); }
}
@keyframes typewriter {
  to {
    width: 14ch;
  }
}

/* ========== LIVESTREAM SCROLL ========== */
.livestream {
  max-height: 400px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

/* ========== AO3 LINK ========== */
.ao3-link {
  display: inline-block;
  margin: 20px 0;
  padding: 10px 16px;
  background: var(--pink);
  color: #000;
  font-family: 'Orbitron', sans-serif;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 0 6px var(--pink);
  transition: background 0.3s ease;
}
.ao3-link:hover {
  background: #ff69c6;
  box-shadow: 0 0 10px var(--cyan);
}

/* ========== NAV LIST ========== */
.nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin-top: 1em;
  font-family: 'Orbitron', sans-serif;
}
.nav-list li a {
  color: var(--pink);
  text-shadow: 0 0 4px var(--pink);
  text-transform: uppercase;
  font-size: 0.9em;
  transition: color 0.3s;
}
.nav-list li a:hover {
  color: #fff;
  text-shadow: 0 0 6px var(--cyan);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 1em;
}
