/*
  ============================================================
  Y2K NEOCITIES TEMPLATE — style.css
  ============================================================
  Quick customisation guide:
    • Colors  → edit the :root variables in the section below
    • Fonts   → swap the font-family values in :root
    • BG image → change --bg-image to your filename
    • Glow    → adjust --glow-* to change the neon intensity

  File references:
    • Background image: background.jpg
      Place it in the same folder as index.html.
  ============================================================
*/


/* ════════════════════════════════════════════════════════════
   DESIGN TOKENS — change everything from here
═══════════════════════════════════════════════════════════ */
:root {
  /* Colors */
  --color-bg:        #000033;   /* deep navy — page base */
  --color-panel:     rgba(10, 10, 60, 0.82); /* translucent dark indigo */
  --color-accent:    #00ffcc;   /* electric teal — primary glow */
  --color-accent-2:  #ff00ff;   /* hot magenta — hover / secondary */
  --color-highlight: #ffff00;   /* acid yellow — special text */
  --color-text:      #e0e0ff;   /* soft white-blue — body copy */
  --color-border:    #00ffcc;   /* same as accent for panel borders */

  /* Glow effects — increase multiplier to intensify */
  --glow-sm:  0 0  6px var(--color-accent);
  --glow-md:  0 0 12px var(--color-accent), 0 0 24px var(--color-accent);
  --glow-hot: 0 0  8px var(--color-accent-2), 0 0 20px var(--color-accent-2);

  /* Typography */
  --font-display: "Press Start 2P", "Courier New", monospace; /* pixel headlines */
  --font-body:    "VT323", "Courier New", monospace;           /* readable pixel body */

  /* Layout */
  --content-width: 700px;
  --panel-radius:  4px;
  --gap:           1.5rem;

  /* Background image — update filename here */
  --bg-image: url("background.jpg");
}


/* ════════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: var(--color-bg);      /* fallback if image fails */
  background-image: var(--bg-image);
  background-size: cover;
  background-attachment: fixed;           /* parallax feel */
  background-position: center;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.6;

  /* Keep everything centered */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── CRT / SCANLINE OVERLAY ──────────────────────────────
   The "signature element": a semi-transparent repeating
   gradient that mimics the horizontal scan lines of a CRT
   monitor. Remove this block to disable the effect.
   Adjust opacity (0.04) to make lines more or less visible.
──────────────────────────────────────────────────────── */
body::after {
  content: "";
  position: fixed;
  inset: 0;                    /* covers the full viewport */
  pointer-events: none;        /* never blocks clicks */
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    transparent          0px,
    transparent          3px,
    rgba(0, 0, 0, 0.04)  3px,
    rgba(0, 0, 0, 0.04)  4px
  );
}

a {
  color: var(--color-accent);
  text-decoration: underline dotted;
  transition: color 0.15s, text-shadow 0.15s;
}

a:hover,
a:focus-visible {
  color: var(--color-accent-2);
  text-shadow: var(--glow-hot);
  outline: none;
}

ul {
  list-style: none;
  padding: 0;
}

img {
  max-width: 100%;
  display: block;
}

/* Width cap for all direct children of body */
.ticker-wrap,
.site-header,
.main-nav,
.content-area,
.site-footer {
  width: 100%;
  max-width: var(--content-width);
}


/* ════════════════════════════════════════════════════════════
   TICKER / MARQUEE
   The scrolling banner at the very top.
   Adjust --ticker-speed (seconds) to speed up or slow down.
═══════════════════════════════════════════════════════════ */
:root { --ticker-speed: 28s; }

.ticker-wrap {
  overflow: hidden;
  background: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-display);
  font-size: 0.55rem;
  padding: 0.4rem 0;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.ticker-content {
  display: inline-block;
  animation: ticker-scroll var(--ticker-speed) linear infinite;
}

/* Duplicate the content in JS if you want seamless looping,
   or just leave a gap — it's charmingly retro either way.  */
.ticker-content span {
  margin-right: 3rem;
}

@keyframes ticker-scroll {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-100%); }
}

/* Pause on hover / reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .ticker-content { animation: none; }
}

.ticker-wrap:hover .ticker-content {
  animation-play-state: paused;
}


/* ════════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════ */
.site-header {
  text-align: center;
  padding: 2.5rem var(--gap) 1rem;
}

.site-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 4vw, 1.6rem); /* responsive pixel headline */
  color: var(--color-accent);
  text-shadow: var(--glow-md);
  letter-spacing: 0.08em;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.tagline {
  font-size: 1.4rem;
  color: var(--color-highlight);
  text-shadow: 0 0 6px var(--color-highlight);
}

.header-deco {
  font-family: var(--font-display);
  font-size: 0.5rem;
  color: var(--color-accent-2);
  letter-spacing: 0.5em;
  margin: 0.5rem 0;
  opacity: 0.7;
}


/* ════════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════ */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem var(--gap) 1.25rem;
}


/* ════════════════════════════════════════════════════════════
   BUTTON — shared style for all .btn elements
   Buttons also trigger the click sound via script.js.
   To override the sound on a specific button, add
   data-nosound="true" to the element in HTML.
═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-block;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.5rem;
  letter-spacing: 0.05em;
  color: var(--color-bg);
  background: var(--color-accent);
  border: 2px solid var(--color-accent);
  border-radius: var(--panel-radius);
  padding: 0.55rem 0.9rem;
  text-decoration: none;
  box-shadow: var(--glow-sm);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s;

  /* Remove default button chrome */
  -webkit-appearance: none;
  appearance: none;
}

.btn:hover,
.btn:focus-visible {
  background: var(--color-accent-2);
  border-color: var(--color-accent-2);
  box-shadow: var(--glow-hot);
  color: #fff;
  outline: none;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}


/* ════════════════════════════════════════════════════════════
   CONTENT AREA & PANELS
   Each .panel mimics a classic desktop "window" widget.
═══════════════════════════════════════════════════════════ */
.content-area {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  padding: 0 var(--gap) var(--gap);
}

.panel {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--panel-radius);
  box-shadow: var(--glow-sm), inset 0 0 30px rgba(0, 255, 204, 0.03);
  overflow: hidden;
}

/* ── PANEL TITLEBAR ── */
.panel-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-display);
  font-size: 0.5rem;
  padding: 0.45rem 0.75rem;
  letter-spacing: 0.08em;
  text-shadow: none;
}

.panel-title {
  flex: 1;
  text-align: center;
}

.panel-controls {
  opacity: 0.6;
  letter-spacing: 0.2em;
}

/* ── PANEL BODY ── */
.panel-body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.panel-body p,
.panel-body li {
  font-size: 1.3rem;
}

.panel-body strong {
  color: var(--color-accent);
}

/* ── ASCII / PIXEL ART BLOCK ── */
.pixel-art {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--color-highlight);
  white-space: pre;
  line-height: 1.3;
  text-align: center;
  text-shadow: 0 0 4px var(--color-highlight);
}

/* ── UPDATE LOG ── */
.update-log {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.update-log li {
  border-left: 2px solid var(--color-accent);
  padding-left: 0.75rem;
}

.update-date {
  color: var(--color-highlight);
  font-size: 1rem;
}

/* ── LINKS LIST ── */
.links-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.links-list li::before {
  content: "► ";
  color: var(--color-accent-2);
}

/* ── GUESTBOOK PLACEHOLDER ── */
.guestbook-placeholder {
  border: 1px dashed var(--color-accent);
  padding: 1.5rem;
  text-align: center;
  color: rgba(224, 224, 255, 0.4);
  font-size: 1.1rem;
  border-radius: var(--panel-radius);
}

/* ── XMR DONATE BOX ── */
.xmr-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--color-accent);
  border-radius: var(--panel-radius);
  padding: 1rem;
  font-size: 1rem;
  line-height: 1.8;
  word-break: break-all;   /* long address wraps cleanly */
}

.xmr-box code {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--color-highlight);
  text-shadow: 0 0 4px var(--color-highlight);
  letter-spacing: 0.03em;
}

/* ── VISITOR COUNTER ── */
.counter {
  font-family: var(--font-display);
  font-size: 0.55rem;
  color: var(--color-highlight);
  text-shadow: 0 0 6px var(--color-highlight);
  letter-spacing: 0.15em;
}


/* ════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.site-footer {
  text-align: center;
  padding: var(--gap);
  font-size: 1.1rem;
  color: rgba(224, 224, 255, 0.5);
  border-top: 1px solid rgba(0, 255, 204, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-badges {
  color: rgba(224, 224, 255, 0.3);
  font-size: 0.95rem;
}

/* 88x31 pixel badges — standard retro size */
.footer-badges img {
  display: inline-block;
  margin: 0.2rem;
  image-rendering: pixelated;   /* keep that crunchy pixel look */
}


/* ════════════════════════════════════════════════════════════
   RESPONSIVE — narrow screens
   The design already uses flexible widths; this just cleans
   up the font sizes and spacing on very small viewports.
═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .main-nav { flex-direction: column; align-items: center; }
  .panel-body { padding: 1rem; }
  .ticker-wrap { font-size: 0.48rem; }
}
