/* === Afif's Tech Lair — styles.css === */

/* ---------- ROOT COLORS ---------- */
:root {
  --bg: #0b0c10;
  --panel: #11131a;
  --text: #e6f1ff;
  --muted: #9aa4b2;
  --primary: #64ffda;
  --accent: #8a2be2;
  --link: #9bf6ff;
  --shadow: rgba(0, 0, 0, 0.4);
}

/* ---------- GLOBAL ---------- */
* {
  box-sizing: border-box;
}
html, body {
  height: 100%;
  margin: 0;
}
body {
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% 10%, #10131c, var(--bg)) fixed;
  font-family: "VT323", monospace;
  letter-spacing: 0.25px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(10, 10, 16, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #1a1d29;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.logo .glitch {
  font-family: "Press Start 2P", monospace;
  font-size: 20px;
  position: relative;
  color: var(--primary);
  text-shadow: 1px 0 #ff006a, -1px 0 #00eaff;
}
.logo .tagline {
  font-size: 14px;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav a {
  color: var(--link);
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px dashed transparent;
  transition: 0.3s;
}
.nav a:hover {
  border-bottom-color: var(--link);
}
#themeToggle {
  font-size: 18px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid #272b3a;
  cursor: pointer;
}

/* ---------- MARQUEE ---------- */
.marq {
  font-size: 16px;
  padding: 6px 0;
  background: linear-gradient(90deg, rgba(100,255,218,0.1), rgba(138,43,226,0.1));
  border-top: 1px solid #1a1d29;
  border-bottom: 1px solid #1a1d29;
}

/* ---------- LAYOUT ---------- */
.container {
  display: grid;
  gap: 16px;
  grid-template-columns: 260px 1fr;
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px;
}

/* ---------- SIDEBAR ---------- */
.sidebar {
  background: var(--panel);
  border: 1px solid #1f2433;
  box-shadow: 0 10px 20px var(--shadow);
  padding: 16px;
  border-radius: 14px;
}
.sidebar h3 {
  margin-top: 0;
  font-family: "Press Start 2P";
  font-size: 14px;
}
.sidebar ul {
  padding-left: 18px;
  margin-bottom: 12px;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.badge {
  font-family: "Press Start 2P";
  font-size: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #0e1220;
  color: #8ab4f8;
  border: 1px solid #2a3350;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* ---------- CARD STYLE ---------- */
.card {
  background: var(--panel);
  border: 1px solid #1f2433;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 20px var(--shadow);
}
.card h2 {
  font-family: "Press Start 2P";
  font-size: 16px;
  margin-top: 0;
}
.card p {
  font-size: 18px;
}

/* ---------- GAMES GRID ---------- */
.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.game {
  padding: 12px;
  border-radius: 10px;
  border: 1px dashed #2b3852;
  background: #0e1220;
  text-align: center;
  transition: 0.3s ease;
}
.game:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(100, 255, 218, 0.2);
}
.game h3 {
  margin: 10px 0 8px 0;
  font-size: 18px;
  color: var(--primary);
}
.mini-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  text-align: left;
}

/* ---------- POSTERS ---------- */
.poster {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #2b3852;
  margin-bottom: 8px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, box-shadow 0.4s;
}
.poster:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px 4px rgba(100, 255, 218, 0.5);
}

/* ---------- NOW PLAYING ---------- */
.now-playing {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #0e1220;
  border: 1px dashed #2b3852;
  font-size: 18px;
}
.led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.7;
}
.led-red {
  background: #ff4d4d;
  animation: blink 1.2s infinite;
}
.led-green {
  background: #7CFC00;
  animation: blink 1.6s infinite;
}
.led-blue {
  background: #00d0ff;
  animation: blink 2s infinite;
}
@keyframes blink {
  50% { opacity: 0.2; }
}

/* ---------- FORM ---------- */
form {
  display: grid;
  gap: 10px;
}
label {
  display: grid;
  gap: 6px;
  font-size: 16px;
  color: var(--muted);
}
input, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: #0e1220;
  color: var(--text);
  border: 1px solid #2b3852;
  outline: none;
}
button[type="submit"] {
  justify-self: start;
  font-family: "Press Start 2P";
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #0b0c10;
  border: none;
  box-shadow: 0 8px 16px rgba(100, 255, 218, 0.2);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
button[type="submit"]:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 20px rgba(138, 43, 226, 0.3);
}
.form-status {
  min-height: 20px;
  color: var(--primary);
  font-size: 16px;
}

/* ---------- FOOTER ---------- */
.site-footer {
  text-align: center;
  color: var(--muted);
  padding: 24px 8px;
  border-top: 1px solid #1a1d29;
}

/* ---------- STARFIELD BACKGROUND ---------- */
#stars {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: transparent;
  pointer-events: none;
}

/* ---------- SCANLINES ---------- */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(transparent 0 2px, rgba(255,255,255,0.03) 2px 3px);
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ---------- LIGHT THEME ---------- */
.light {
  --bg: #fafafa;
  --panel: #ffffff;
  --text: #1c2333;
  --muted: #4b5563;
  --primary: #0ea5e9;
  --accent: #7c3aed;
  --link: #2563eb;
  --shadow: rgba(0, 0, 0, 0.08);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .container {
    grid-template-columns: 1fr;
  }
  .sidebar {
    order: 2;
  }
}
