/* ============================================================
   CYBERZONE FORUMS - STYLESHEET
   Best viewed at 800x600, 16-bit color, Netscape Navigator 4
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=VT323&family=Press+Start+2P&display=swap');

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

:root {
  --neon-cyan:   #00ffff;
  --neon-yellow: #ffff00;
  --neon-lime:   #00ff66;
  --neon-pink:   #ff00cc;
  --neon-orange: #ff6600;
  --dark-bg:     #000033;
  --panel-bg:    #000066;
  --panel-dark:  #000044;
  --panel-lite:  #0000aa;
  --border-lite: #6666ff;
  --border-gold: #ffcc00;
  --text-main:   #ccccff;
  --text-bright: #ffffff;
  --text-link:   #ffff00;
  --text-visited:#ff99ff;
}

html {
  background-color: var(--dark-bg);
  background-image:
    radial-gradient(circle at 20% 50%, rgba(0,0,255,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0,255,255,0.08) 0%, transparent 40%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 255, 0.03) 2px,
      rgba(0, 0, 255, 0.03) 4px
    );
  min-height: 100vh;
}

body {
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 18px;
  color: var(--text-main);
  min-width: 900px;
  cursor: default;
}

a {
  color: var(--text-link);
  text-decoration: underline;
}
a:visited { color: var(--text-visited); }
a:hover   { color: var(--neon-lime); text-shadow: 0 0 6px var(--neon-lime); }

/* ---- MARQUEE BAR ---- */
.marquee-bar {
  background: var(--neon-pink);
  color: #000;
  font-size: 16px;
  font-weight: bold;
  padding: 3px 0;
  border-bottom: 3px solid #000;
  letter-spacing: 1px;
}

/* ---- SITE HEADER ---- */
.site-header {
  background: linear-gradient(180deg, #000011 0%, #000055 40%, #000033 100%);
  border-bottom: 4px solid var(--border-gold);
  padding: 18px 10px 8px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0,0,255,0.04) 10px,
    rgba(0,0,255,0.04) 20px
  );
  pointer-events: none;
}

.header-stars {
  color: var(--border-gold);
  font-size: 14px;
  letter-spacing: 2px;
}

.header-title {
  margin: 8px 0 4px;
  line-height: 1;
}

.title-cyber {
  font-family: 'Press Start 2P', monospace;
  font-size: 38px;
  color: var(--neon-cyan);
  text-shadow:
    0 0 10px var(--neon-cyan),
    0 0 30px var(--neon-cyan),
    2px 2px 0 #000055;
  letter-spacing: 4px;
}

.title-zone {
  font-family: 'Press Start 2P', monospace;
  font-size: 38px;
  color: var(--neon-yellow);
  text-shadow:
    0 0 10px var(--neon-yellow),
    0 0 30px var(--neon-yellow),
    2px 2px 0 #005500;
  letter-spacing: 4px;
}

.title-forums {
  display: block;
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  color: var(--neon-pink);
  text-shadow: 0 0 8px var(--neon-pink);
  letter-spacing: 12px;
  margin-top: 6px;
}

.header-subtitle {
  color: var(--neon-lime);
  font-size: 20px;
  margin: 4px 0 10px;
  text-shadow: 0 0 6px var(--neon-lime);
  letter-spacing: 2px;
}

/* ---- NAV BUTTONS ---- */
.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 0 2px;
  flex-wrap: wrap;
}

.nav-btn {
  font-family: 'VT323', monospace;
  font-size: 18px;
  padding: 4px 16px;
  background: var(--panel-bg);
  color: var(--neon-cyan);
  border: 2px outset #4444ff;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.1s;
  text-shadow: 0 0 4px currentColor;
}

.nav-btn:hover {
  background: #0000aa;
  color: var(--neon-yellow);
  border: 2px inset #4444ff;
}

.nav-btn:active {
  border-style: inset;
  transform: translateY(1px);
}

.blink-btn {
  animation: blinkBorder 0.8s step-end infinite;
}

@keyframes blinkBorder {
  0%, 100% { border-color: #4444ff; }
  50% { border-color: var(--neon-pink); color: var(--neon-pink); }
}

/* ---- STATS BAR ---- */
.stats-bar {
  background: #000022;
  border-top: 2px solid #333366;
  border-bottom: 2px solid #333366;
  padding: 5px 16px;
  font-size: 16px;
  color: var(--neon-lime);
  text-align: center;
  letter-spacing: 1px;
}

.counter-num {
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  color: var(--neon-orange);
  text-shadow: 0 0 6px var(--neon-orange);
  background: #000;
  padding: 1px 4px;
  border: 1px inset #444;
}

/* ---- MAIN LAYOUT ---- */
.main-layout {
  display: flex;
  gap: 0;
  padding: 10px;
  align-items: flex-start;
}

/* ---- SIDEBARS ---- */
.sidebar {
  width: 180px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-box {
  background: var(--panel-dark);
  border: 2px solid var(--border-lite);
  border-top: 3px solid var(--border-gold);
  padding: 0 0 8px;
}

.sidebar-title {
  background: linear-gradient(90deg, var(--panel-lite), var(--panel-bg));
  color: var(--neon-yellow);
  font-size: 14px;
  font-weight: bold;
  padding: 4px 8px;
  border-bottom: 2px solid var(--border-lite);
  letter-spacing: 1px;
  text-shadow: 0 0 4px var(--neon-yellow);
}

.online-list, .hot-list {
  list-style: none;
  padding: 6px 8px;
  font-size: 15px;
  line-height: 1.7;
}

.online-list li { color: var(--neon-lime); }
.hot-list li a  { font-size: 14px; }

.top-list {
  padding: 6px 8px 4px 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--neon-cyan);
}

.top-list small {
  color: #9999cc;
  font-size: 13px;
}

.construction-box {
  text-align: center;
  padding-bottom: 8px;
}

.construction-gif {
  font-size: 28px;
  animation: constrBlink 1s step-end infinite;
  display: inline-block;
}

@keyframes constrBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ---- MAIN CONTENT ---- */
.main-content {
  flex: 1;
  padding: 0 10px;
  min-width: 0;
}

.page { display: none; }
.page.active { display: block; }

/* ---- WELCOME BOX ---- */
.welcome-box {
  background: #000044;
  border: 2px solid var(--neon-cyan);
  padding: 8px 14px;
  margin-bottom: 12px;
  font-size: 17px;
  color: var(--text-main);
  text-shadow: none;
}

/* ---- FORUM SECTIONS ---- */
.forum-section {
  margin-bottom: 14px;
  border: 2px solid var(--border-lite);
}

.section-header {
  background: linear-gradient(90deg, #000099, #0000cc, #000099);
  color: var(--neon-yellow);
  font-size: 18px;
  font-weight: bold;
  padding: 6px 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border-gold);
  text-shadow: 0 0 6px var(--neon-yellow);
  letter-spacing: 1px;
  user-select: none;
}

.section-header:hover {
  background: linear-gradient(90deg, #0000cc, #0000ff, #0000cc);
}

.toggle-arrow {
  font-size: 14px;
  color: var(--neon-cyan);
}

.section-body {
  background: var(--panel-dark);
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.section-body.collapsed {
  max-height: 0 !important;
  overflow: hidden;
}

/* ---- FORUM TABLE ---- */
.forum-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
}

.forum-table thead tr {
  background: #000055;
  color: var(--neon-cyan);
  text-shadow: 0 0 4px var(--neon-cyan);
}

.forum-table th {
  padding: 5px 10px;
  border: 1px solid #333366;
  text-align: left;
  font-size: 15px;
  font-weight: normal;
  letter-spacing: 1px;
}

.forum-table td {
  padding: 6px 10px;
  border: 1px solid #1a1a44;
  vertical-align: top;
}

.forum-table tbody tr {
  background: var(--panel-dark);
}

.forum-table tbody tr:nth-child(even) {
  background: #00002e;
}

.forum-table tbody tr:hover {
  background: #000066;
}

.thread-title {
  color: var(--text-link);
  cursor: pointer;
  font-weight: bold;
  font-size: 17px;
}

.thread-title:hover {
  color: var(--neon-lime);
  text-shadow: 0 0 4px var(--neon-lime);
}

.thread-desc {
  font-size: 14px;
  color: #9999cc;
  margin-top: 2px;
}

.thread-meta {
  font-size: 14px;
  color: #7777aa;
}

.thread-icon {
  font-size: 20px;
}

.hot-icon { animation: hotPulse 1.5s ease-in-out infinite; }
@keyframes hotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ---- PAGE TITLE ---- */
.page-title {
  background: linear-gradient(90deg, #000099, #0000cc, #000099);
  color: var(--neon-yellow);
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  padding: 10px 14px;
  margin-bottom: 14px;
  border: 2px solid var(--border-gold);
  text-shadow: 0 0 6px var(--neon-yellow);
  letter-spacing: 2px;
}

/* ---- POST FORM ---- */
.post-form-box {
  background: var(--panel-dark);
  border: 2px solid var(--border-lite);
  padding: 16px;
}

.form-row {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-row label {
  color: var(--neon-cyan);
  font-size: 16px;
  font-weight: bold;
}

.retro-input, .retro-select, .retro-textarea {
  font-family: 'VT323', monospace;
  font-size: 18px;
  background: #000011;
  color: var(--text-bright);
  border: 2px inset #333399;
  padding: 5px 8px;
  outline: none;
  width: 100%;
}

.retro-input:focus, .retro-select:focus, .retro-textarea:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
}

.retro-select option {
  background: #000033;
  color: var(--text-bright);
}

.retro-textarea {
  resize: vertical;
  min-height: 140px;
}

.bbcode-toolbar {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.bb-btn {
  font-family: 'VT323', monospace;
  font-size: 16px;
  background: #000055;
  color: var(--neon-cyan);
  border: 2px outset #4444aa;
  padding: 2px 8px;
  cursor: pointer;
}

.bb-btn:hover {
  background: #0000aa;
}

.bb-btn:active {
  border-style: inset;
}

.checkbox-row {
  flex-direction: row;
  gap: 20px;
}

.checkbox-row label {
  color: var(--text-main);
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.submit-btn {
  font-family: 'VT323', monospace;
  font-size: 18px;
  background: linear-gradient(180deg, #006600, #004400);
  color: var(--neon-lime);
  border: 2px outset #008800;
  padding: 6px 18px;
  cursor: pointer;
  text-shadow: 0 0 4px var(--neon-lime);
}

.submit-btn:hover {
  background: linear-gradient(180deg, #009900, #006600);
  color: #fff;
}

.submit-btn:active { border-style: inset; }

.cancel-btn {
  font-family: 'VT323', monospace;
  font-size: 18px;
  background: linear-gradient(180deg, #660000, #440000);
  color: #ff6666;
  border: 2px outset #880000;
  padding: 6px 18px;
  cursor: pointer;
}

.cancel-btn:hover { background: linear-gradient(180deg, #880000, #660000); }

.preview-btn {
  font-family: 'VT323', monospace;
  font-size: 18px;
  background: linear-gradient(180deg, #004466, #002244);
  color: var(--neon-cyan);
  border: 2px outset #006699;
  padding: 6px 18px;
  cursor: pointer;
}

.preview-btn:hover { background: linear-gradient(180deg, #006699, #004466); }

.post-preview-box {
  margin-top: 14px;
  background: #000022;
  border: 2px dashed var(--neon-cyan);
  padding: 12px;
  color: var(--text-main);
  font-size: 17px;
  line-height: 1.5;
}

.post-success {
  margin-top: 14px;
  background: #003300;
  border: 2px solid var(--neon-lime);
  padding: 10px 14px;
  color: var(--neon-lime);
  font-size: 18px;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- MEMBERS PAGE ---- */
.member-search {
  margin-bottom: 12px;
}

.members-table .rank-admin    { color: var(--neon-orange); }
.members-table .rank-mod      { color: var(--neon-lime); }
.members-table .rank-veteran  { color: var(--neon-cyan); }
.members-table .rank-member   { color: var(--text-main); }
.members-table .rank-newbie   { color: #9999cc; }

/* ---- RULES PAGE ---- */
.rules-box {
  background: var(--panel-dark);
  border: 2px solid var(--border-lite);
  padding: 16px 20px;
}

.rules-intro {
  color: var(--neon-yellow);
  font-size: 18px;
  margin-bottom: 14px;
  text-shadow: 0 0 4px var(--neon-yellow);
}

.rules-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rules-list li {
  color: var(--text-main);
  line-height: 1.5;
  font-size: 17px;
}

.rules-list b {
  color: var(--neon-cyan);
  font-size: 18px;
}

.rules-footer {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 2px dashed var(--border-lite);
  color: var(--neon-orange);
  font-size: 16px;
  text-align: center;
}

.rules-footer small { color: #7777aa; }

/* ---- SHOUTBOX ---- */
.shoutbox-container {
  background: var(--panel-dark);
  border: 2px solid var(--border-lite);
}

.shout-messages {
  height: 380px;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--neon-cyan) #000022;
}

.shout-messages::-webkit-scrollbar { width: 8px; }
.shout-messages::-webkit-scrollbar-track { background: #000022; }
.shout-messages::-webkit-scrollbar-thumb { background: var(--neon-cyan); }

.shout-msg {
  font-size: 16px;
  color: var(--text-main);
  border-bottom: 1px dotted #222255;
  padding-bottom: 4px;
  animation: fadeIn 0.3s ease;
}

.shout-msg .shout-user {
  font-weight: bold;
  font-size: 17px;
}

.shout-msg .shout-time {
  color: #666699;
  font-size: 13px;
  margin-left: 6px;
}

.shout-input-area {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 2px solid var(--border-lite);
  background: var(--panel-bg);
  flex-wrap: wrap;
}

.shout-name  { width: 140px; flex-shrink: 0; }
.shout-text  { flex: 1; min-width: 150px; }
.shout-btn   { flex-shrink: 0; }

/* ---- THREAD VIEW ---- */
.thread-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.thread-post {
  background: var(--panel-dark);
  border: 2px solid var(--border-lite);
  margin-bottom: 12px;
  display: flex;
}

.thread-post-user {
  width: 130px;
  flex-shrink: 0;
  background: #000044;
  border-right: 2px solid var(--border-lite);
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.post-avatar {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 4px;
}

.post-username {
  color: var(--neon-cyan);
  font-weight: bold;
  font-size: 15px;
  word-break: break-all;
}

.post-rank {
  font-size: 13px;
  padding: 1px 6px;
}

.post-count {
  font-size: 13px;
  color: #9999cc;
}

.thread-post-body {
  flex: 1;
  padding: 10px 14px;
}

.post-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #333366;
  padding-bottom: 6px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #7777aa;
}

.post-date { color: var(--neon-lime); }

.post-body-text {
  color: var(--text-main);
  font-size: 17px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.post-sig {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #333366;
  font-size: 14px;
  color: #7777aa;
  font-style: italic;
}

/* ---- POLL ---- */
.poll-box { text-align: left; }

.poll-question {
  color: var(--neon-cyan);
  font-size: 15px;
  padding: 6px 8px;
  border-bottom: 1px solid #333366;
  margin-bottom: 6px;
  font-weight: bold;
}

.poll-options { padding: 0 8px 6px; }

.poll-option {
  cursor: pointer;
  padding: 3px 0;
  transition: transform 0.1s;
}

.poll-option:hover { transform: translateX(3px); }

.poll-label {
  display: block;
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 2px;
}

.poll-bar-wrap {
  background: #000022;
  height: 12px;
  border: 1px solid #333366;
  margin-bottom: 1px;
}

.poll-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), #0088ff);
  transition: width 0.5s ease;
}

.poll-pct {
  font-size: 13px;
  color: var(--neon-yellow);
}

/* ---- WEB RING ---- */
.webring {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  font-size: 14px;
  color: #9999cc;
  border-bottom: 1px dotted #333366;
}

.ring-link {
  color: var(--neon-cyan);
  font-size: 14px;
}

/* ---- EVENTS ---- */
.events-list {
  list-style: none;
  padding: 6px 8px;
  font-size: 14px;
  line-height: 1.7;
}

.events-list li { color: var(--text-main); border-bottom: 1px dotted #1a1a44; padding: 3px 0; }
.events-list small { color: var(--neon-orange); }

/* ---- DONATE ---- */
.donate-box { text-align: center; }
.donate-box p { padding: 6px 8px; font-size: 14px; color: var(--text-main); }

.donate-btn {
  font-family: 'VT323', monospace;
  font-size: 17px;
  background: linear-gradient(180deg, #885500, #663300);
  color: var(--neon-yellow);
  border: 2px outset #aa8800;
  padding: 4px 16px;
  cursor: pointer;
  margin: 4px auto;
  display: block;
}

.donate-btn:hover { background: linear-gradient(180deg, #aa7700, #885500); }

/* ---- BADGES ---- */
.badges-box { text-align: center; padding-bottom: 10px; }

.badge {
  display: inline-block;
  margin: 4px auto;
  background: linear-gradient(90deg, #554400, #887700, #554400);
  color: var(--neon-yellow);
  border: 2px outset #aa9900;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: default;
}

.badge:hover {
  background: linear-gradient(90deg, #887700, #aaaa00, #887700);
}

/* ---- FOOTER ---- */
.site-footer {
  background: #000011;
  border-top: 4px solid var(--border-gold);
  padding: 14px 10px;
  text-align: center;
  margin-top: 10px;
}

.footer-links {
  color: var(--text-main);
  font-size: 16px;
  margin-bottom: 8px;
}

.footer-links a { color: var(--neon-cyan); }

.footer-text {
  color: #7777aa;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.blink-text {
  animation: blinkText 0.6s step-end infinite;
  color: var(--neon-yellow);
  font-weight: bold;
}

@keyframes blinkText {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.footer-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-badge {
  background: #000033;
  border: 1px outset #4444aa;
  color: var(--neon-cyan);
  font-size: 13px;
  padding: 2px 8px;
  letter-spacing: 1px;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar        { width: 12px; }
::-webkit-scrollbar-track  { background: #000022; }
::-webkit-scrollbar-thumb  { background: var(--panel-lite); border: 1px solid var(--border-lite); }
::-webkit-scrollbar-thumb:hover { background: var(--neon-cyan); }

/* ---- RANK BADGES ---- */
.rank-admin   { color: var(--neon-orange); background: #330000; border: 1px solid var(--neon-orange); font-size: 12px; padding: 1px 4px; }
.rank-mod     { color: var(--neon-lime);   background: #003300; border: 1px solid var(--neon-lime);   font-size: 12px; padding: 1px 4px; }
.rank-veteran { color: var(--neon-cyan);   background: #003344; border: 1px solid var(--neon-cyan);   font-size: 12px; padding: 1px 4px; }
.rank-member  { color: var(--text-main);   background: #000044; border: 1px solid #4444aa;             font-size: 12px; padding: 1px 4px; }
.rank-newbie  { color: #9999cc;            background: #000033; border: 1px solid #333366;             font-size: 12px; padding: 1px 4px; }