/* ================================
   SLAPMAP: EAST BAY — STYLES.CSS
   ================================ */

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

html,
body {
  height: 100%;
  width: 100%;
  background: #000;
  font-family: 'Orbitron', sans-serif;
  color: #00ffcc;
   }

body:not(.paywall-page) {
  overflow: hidden;
}

/* ---------- NAVIGATION ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  padding: 0.6rem 0;
  z-index: 10000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  backdrop-filter: blur(4px);
}

.navbar-container {
    display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0 1rem;
  flex-wrap: wrap;
}

.navbar .nav-link {
  font-family: 'Orbitron', sans-serif;
  color: #00ffff;
  text-decoration: none;
  padding: 0.35rem 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  border-radius: 999px;
  transition: color 0.2s ease, text-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #ff00ff;
  text-shadow: 0 0 6px #ff00ff;
}

/* Add spacing so nav doesn’t overlap content */
body:not(.paywall-page) {
  padding-top: 60px;
}

/* ---------- MAP ---------- */
#map {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 0;
  filter: saturate(1.3) contrast(1.1);
}

body:not(.paywall-page) main {
  position: relative;
  height: calc(100vh - 60px);
  width: 100%;
  overflow: hidden;
}

@supports (height: 100dvh) {
  body:not(.paywall-page) main {
    height: calc(100dvh - 60px);
  }
}

body:not(.paywall-page) .map-wrapper {
  position: relative;
  height: 100%;
  width: 100%;
}

/* ---------- LOADING SCREEN ---------- */
#loading-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #080808 0%, #000 100%);
  color: #00ffcc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 9999;
  transition: opacity 0.8s ease;
}

#loading-screen.hide {
  opacity: 0;
  visibility: hidden;
}

.progress-bar {
  width: 300px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 20px;
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00ffcc, #ff00cc);
  transition: width 0.3s ease;
}

/* ---------- CATEGORY BUTTONS ---------- */
.button-container {
  position: absolute;
  top: 70px; /* shifted down below nav */
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
   padding: 0.35rem 0.75rem;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.button-container button {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #00ffcc;
  color: #00ffcc;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.2s;
}

.button-container button:hover {
  background: #00ffcc;
  color: #000;
  box-shadow: 0 0 10px #00ffcc;
}

.button-container button.active {
  background: #ff00cc;
  color: #fff;
  box-shadow: 0 0 10px #ff00cc;
}

/* ---------- POPUP ---------- */
.popup-content {
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #00ffcc;
  border-radius: 8px;
  padding: 10px;
  color: #b8fff0;
  box-shadow: 0 0 15px #00ffcc;
  font-size: 0.9rem;
  line-height: 1.4;
}

.popup-title {
  font-family: 'Orbitron', sans-serif;
  color: #00ffcc;
  font-size: 1rem;
  text-transform: uppercase;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}

.popup-title:hover {
  color: #ff00cc;
  text-shadow: 0 0 8px #ff00cc;
}

.price-badge {
  display: inline-block;
  background: linear-gradient(90deg, #00ffcc, #ff00cc);
  color: #000;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'VT323', monospace;
  font-size: 1rem;
  margin-top: 5px;
}

/* ---------- PRO TIP ---------- */
.protip {
  margin-top: 8px;
  padding: 6px 8px;
  background: rgba(255, 0, 204, 0.1);
  border-left: 3px solid #ff00cc;
  font-style: italic;
  color: #ff99ff;
  font-family: 'VT323', monospace;
  text-shadow: 0 0 6px #ff00cc;
}

.protip .label {
  color: #ff00cc;
  font-weight: bold;
  text-transform: uppercase;
  margin-right: 4px;
}

/* ---------- MEGA TITLE ---------- */
.mega-title {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-3deg);
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 13vw, 15rem);
  color: #00ffcc;
  text-shadow: 0 0 10px #00ffcc, 0 0 30px #00ffcc, 0 0 60px #ff00cc,
    0 0 120px #ff00cc;
  opacity: 0.25;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: pulseHue 8s infinite alternate;
}

@keyframes pulseHue {
  0% {
    filter: hue-rotate(0deg);
    opacity: 0.2;
  }
  50% {
    filter: hue-rotate(90deg) brightness(1.3);
    opacity: 0.4;
  }
  100% {
    filter: hue-rotate(360deg);
    opacity: 0.25;
  }
}

/* ---------- CRT OVERLAY ---------- */
.crt-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  animation: flicker 0.1s infinite;
  z-index: 9999;
}

@keyframes flicker {
  0%,
  19%,
  21%,
  23%,
  25%,
  54%,
  56%,
   100% {
    opacity: 0.05;
  }
  20%,
  24%,
  55% {
    opacity: 0.12;
  }
}

/* ---------- TERMINAL STYLE ABOUT PAGE ---------- */
body.terminal {
  background: #000;
  color: #00ffcc;
  font-family: 'VT323', monospace;
  font-size: 20px;
  letter-spacing: 0.5px;
  margin: 0;
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
}

body.terminal.forum-page {
  min-height: 100vh;
  height: auto;
  display: block;
  padding: 2.5rem 1.5rem 3rem;
}

@media (max-width: 768px) {
  body.terminal {
    justify-content: flex-start;
    padding: 1.5rem 1rem;
  }

  .terminal-container {
    padding: 1.5rem;
  }
}

.terminal-container {
  max-width: 700px;
  width: 90%;
  text-align: left;
  line-height: 1.6;
  background: rgba(0, 0, 0, 0.8);
  padding: 2rem;
  border: 1px solid rgba(0, 255, 204, 0.3);
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.15);
  animation: flicker 0.08s infinite alternate;
}

body.terminal.forum-page .terminal-container {
  margin: 0 auto;
}

.terminal-title {
  color: #00ffff;
  text-transform: lowercase;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.terminal-text {
  white-space: pre-line;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.terminal-link {
  display: inline-block;
  margin-top: 2rem;
  color: #ff00ff;
  text-decoration: none;
  text-transform: lowercase;
  font-weight: bold;
}

.terminal-link:hover {
  text-shadow: 0 0 10px #ff00ff;
}

/* subtle flicker */
@keyframes flicker {
  0% { opacity: 0.99; }
  50% { opacity: 1; }
  100% { opacity: 0.97; }
}

/* ---------- FORUM STYLING ---------- */
.terminal-note {
  margin-top: 1.25rem;
  color: rgba(0, 255, 204, 0.85);
  font-size: 0.95rem;
}

.terminal-note strong {
  color: #ff00ff;
}

.forum-panel {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 255, 204, 0.3);
  border-radius: 8px;
  margin-top: 2rem;
  padding: 1rem;
  padding: 1.1rem;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.15);
  display: none;
}

.forum-panel.giscus {
  font-family: 'VT323', monospace;
}

.forum-panel.is-active {
  display: block;
}

.noscript-hint {
  display: inline-block;
  margin-top: 1rem;
  color: rgba(0, 255, 204, 0.65);
}

@media (max-width: 600px) {
  body.terminal.forum-page {
    padding: 2rem 1rem 2.5rem;
  }
}

/* ---------- RETRO HUD + BRANDING ---------- */
.retro-header {
  position: absolute;
  top: 132px;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 520px);
  text-align: center;
  color: #00ffcc;
  z-index: 900;
  display: grid;
  gap: 0.6rem;
}

.header-bar {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(0, 255, 204, 0.4);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  box-shadow: 0 0 25px rgba(0, 255, 204, 0.25);
}

.header-bar h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(0, 255, 204, 0.6);
}

.header-bar p {
  font-size: clamp(0.9rem, 2.4vw, 1.2rem);
  text-transform: lowercase;
  color: rgba(184, 255, 240, 0.9);
}

.retro-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.retro-nav button {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 0, 255, 0.4);
  color: #ff99ff;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'VT323', monospace;
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.retro-nav button:hover {
  background: rgba(255, 0, 255, 0.3);
  color: #fff;
  border-color: rgba(255, 0, 255, 0.7);
}

#system-clock {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  font-family: 'VT323', monospace;
  font-size: 0.95rem;
  color: rgba(0, 255, 204, 0.85);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 255, 204, 0.35);
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  z-index: 1100;
  pointer-events: none;
}

#system-clock #data-stream {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* ---------- CONTACT PAGE LAYOUT ---------- */
.content-wrapper {
  padding: 5.5rem 0 3.5rem;
  display: grid;
  gap: 1.5rem;
}

.content-wrapper h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: #00ffff;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.lead {
  font-size: 1rem;
  color: rgba(184, 255, 240, 0.9);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form .btn {
  justify-self: start;
}

.contact-form .alert {
  margin-top: 1rem;
}

/* ---------- RESPONSIVE BEHAVIOUR ---------- */
@media (max-width: 1024px) {
  .header-bar h1 {
    letter-spacing: 1px;
  }

  .navbar .nav-link {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 0;
  }

  .navbar-container {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 0.75rem;
  }

  .navbar-container::-webkit-scrollbar {
    display: none;
  }

  .navbar-container {
    scrollbar-width: none;
  }

  .navbar .nav-link {
    flex: 0 0 auto;
    font-size: 0.78rem;
    letter-spacing: 0.8px;
  }

  .button-container {
    top: 58px;
    left: 0;
    right: 0;
    transform: none;
    margin: 0 auto;
    width: 100%;
    border-radius: 18px;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
  }

  .button-container::-webkit-scrollbar {
    display: none;
  }

  .button-container {
    scrollbar-width: none;
  }

  .button-container button {
    flex: 0 0 auto;
    font-size: 0.75rem;
    padding: 0.6rem 1rem;
  }

  body:not(.paywall-page) main {
    height: calc(100vh - 140px);
  }

  @supports (height: 100dvh) {
    body:not(.paywall-page) main {
      height: calc(100dvh - 140px);
    }
  }

  .retro-header {
    top: 128px;
    width: calc(100% - 2rem);
  }

  .retro-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .retro-nav::-webkit-scrollbar {
    display: none;
  }

  .retro-nav {
    scrollbar-width: none;
  }

  .retro-nav button {
    flex: 0 0 auto;
  }

  #system-clock {
    bottom: 1rem;
    left: 1rem;
    font-size: 0.85rem;
  }

  .content-wrapper {
    padding-top: 4.75rem;
  }

  .contact-form .btn {
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 540px) {
  body.terminal {
    font-size: clamp(16px, 4.6vw, 18px);
  }

  .terminal-container {
    width: 100%;
    padding: 1.4rem;
  }

  .terminal-title {
    font-size: clamp(2rem, 9vw, 2.4rem);
  }

  .retro-header {
    display: none;
  }

  body:not(.paywall-page) main {
    height: calc(100vh - 110px);
  }

  @supports (height: 100dvh) {
    body:not(.paywall-page) main {
      height: calc(100dvh - 110px);
    }
  }

  #system-clock {
    display: none;
  }

  .content-wrapper {
    padding-top: 4.25rem;
  }

  .button-container button {
    font-size: 0.72rem;
  }
}
