/* ===============================
   LinuxDojo BBS — Neon Theme
   =============================== */

/* Theme variables (kept from your neon palette) */
:root{
  --bg: #0b0f14;
  --bg-2:#0c1017;
  --fg:#e9fbff;
  --muted:#90a4ae;
  --neon-cyan:#00ffd5;
  --neon-mag:#ff3d73;
  --neon-yellow:#ffe600;
  --term-green:#35ff85;
  --card: #0e141b;
  --glow: 0 0 14px rgba(0,255,213,.25), 0 0 26px rgba(255,61,115,.13);
}

/* Global background + grid overlay */
html, body { height: 100%; }
body.grid-overlay{
  margin:0;
  color:var(--fg);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255,61,115,.12), transparent 60%),
    radial-gradient(900px 600px at 10% 0%, rgba(0,255,213,.10), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 70%, #0a0e13);
  font-family: Montserrat, system-ui, sans-serif;
  overflow-x:hidden;
}
.grid-overlay::before{
  content:"";
  position:fixed; inset:0;
  background:
    linear-gradient(transparent 31px, rgba(255,255,255,.05) 32px),
    linear-gradient(90deg, transparent 31px, rgba(255,255,255,.05) 32px);
  background-size:32px 32px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.35), rgba(0,0,0,0) 70%);
  pointer-events:none;
  animation: drift 24s linear infinite;
}
@keyframes drift{ to { transform: translateY(32px); } }

/* Box-drawing alignment (critical for borders) */
.bbs-topline,
.bbs-bottomline,
.panel-title {
  font-family: 'Share Tech Mono', monospace;
  white-space: pre;
  letter-spacing: 0;
  text-align: center;
  color: #b2fff0;
  text-shadow: 0 0 10px rgba(0,255,213,.35);
}

/* Header */
.bbs-header {
  max-width: 1100px;
  margin: clamp(20px,4vw,48px) auto 10px;
  padding: 0 12px;
}
.bbs-title {
  text-align: center;
  margin: 8px 0;
  font-family: 'VT323', monospace;
  font-size: clamp(28px, 6vw, 48px);
  color: #e9fbff;
  text-shadow:
    0 0 18px rgba(0,255,213,.25),
    0 0 2px rgba(255,230,0,.35);
}
.title-link {
  color: inherit;
  text-decoration: none;
}
.cursor { animation: blink 1s step-start infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Status bar */
.bbs-statusbar {
  font-family: "Share Tech Mono", monospace;
  color:#b2fff0;
  letter-spacing:.06em;
  display:flex;
  justify-content:center;
  gap: 8px;
  margin: 6px 0 10px;
  text-shadow: 0 0 8px rgba(0,255,213,.25);
}
.bbs-statusbar .sep { opacity:.6; }

/* Nav */
.bbs-nav ul{
  list-style:none;
  margin: 10px auto 0;
  padding: 8px 0 10px;
  display:flex; flex-wrap:wrap;
  justify-content:center; gap: 14px;
  border-top:1px solid rgba(255,255,255,.08);
  border-bottom:1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
}
.bbs-nav a{
  --c: var(--neon-cyan);
  color:#eaffff;
  text-decoration:none;
  font-weight:700;
  letter-spacing:.02em;
  padding:8px 12px;
  border-radius:10px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.08);
  box-shadow: var(--glow);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.bbs-nav a:hover{
  transform: translateY(-1px) scale(1.01);
  border-color: rgba(0,255,213,.35);
}

/* Main/panels */
.bbs-main{
  max-width: 1100px;
  margin: 16px auto 40px;
  padding: 0 12px;
}
.bbs-panel{
  background: #0a1016;
  border:1px solid rgba(255,255,255,.06);
  box-shadow: 0 6px 16px rgba(0,0,0,.45), 0 0 20px rgba(0,255,213,.08);
  margin: 16px 0;
  padding: 12px 14px 16px;
}
.bbs-h2{
  font-family: Montserrat, system-ui, sans-serif;
  color:#e9fbff;
  margin: 8px 0 6px;
}
.bbs-text{
  color:#cfe8ff;
  line-height:1.55;
}

/* Triptych gallery */
.triptych{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.tile{
  background: #0a1016;
  border: 1px solid rgba(255, 255, 255, .05);
  box-shadow: 0 6px 16px rgba(0,0,0,.4), 0 0 20px rgba(0, 255, 213, .08);
  overflow:hidden;
}
.tile img{
  width:100%;
  display:block;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
@media (max-width: 560px){
  .triptych{ grid-template-columns: 1fr; }
}

/* Terminal block */
.joe-terminal{
  background: #030609;
  color: #b8ffe0;
  border: 1px solid rgba(0,255,213,.22);
  box-shadow: 0 0 22px rgba(0,255,213,.10) inset;
  padding: 12px 14px;
  font-family: 'Share Tech Mono', monospace;
  line-height: 1.45;
  position: relative;
}
.joe-terminal .caret{
  display:inline-block; width:8px; height:1em; background:#b8ffe0; margin-left:2px;
  animation: caretBlink 1.1s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity:.15; } }

/* Footer */
.bbs-footer{
  text-align:center;
  color:#cfe8ff;
  padding: 18px 12px 40px;
  font-size: 12px;
  letter-spacing:.05em;
}
.footer-badge img{
  margin-top:10px;
  max-width:120px;
}

/* Small polish */
a { color: var(--neon-cyan); }
a:hover { color: #b2fff0; }
