/* ============================================
   GDC BLASTER 2000 — Wiki & Forum Theme
   Softer, accessible, text-heavy pages
   ============================================ */

/* Override body for wiki/forum pages */
body.wiki-page {
  background: #10102a;
}

/* No scanlines on text-heavy pages */
body.wiki-page .scanlines {
  display: none;
}

/* ---- Page Layout ---- */
.page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 32px 60px;
  min-height: calc(100vh - 80px);
}

/* ---- Breadcrumbs ---- */
.breadcrumbs {
  font-family: var(--pixel-font);
  font-size: 8px;
  color: var(--text-muted);
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.breadcrumbs a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--neon-green);
}

.breadcrumbs .sep {
  margin: 0 8px;
  color: #444466;
}

/* ---- Page Title ---- */
.page-title {
  font-family: var(--pixel-font);
  font-size: clamp(16px, 3vw, 24px);
  color: var(--neon-cyan);
  margin-bottom: 8px;
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
  line-height: 1.5;
}

.page-subtitle {
  font-size: 15px;
  color: #9999bb;
  margin-bottom: 32px;
  line-height: 1.7;
}

/* ---- Content Area (soft readable text) ---- */
.content-area {
  background: #161638;
  border: 1px solid #2a2a50;
  border-radius: 4px;
  padding: 32px;
  color: #d0d0e0;
  font-size: 15px;
  line-height: 1.85;
}

.content-area h2 {
  font-family: var(--pixel-font);
  font-size: 13px;
  color: var(--neon-green);
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2a2a50;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.2);
}

.content-area h2:first-child {
  margin-top: 0;
}

.content-area h3 {
  font-family: var(--pixel-font);
  font-size: 11px;
  color: #b0b0d0;
  margin: 24px 0 12px;
  letter-spacing: 0.5px;
}

.content-area p {
  margin-bottom: 14px;
}

.content-area a {
  color: var(--neon-cyan);
  text-decoration: underline;
  text-decoration-color: rgba(0, 240, 255, 0.3);
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.content-area a:hover {
  color: var(--neon-green);
  text-decoration-color: var(--neon-green);
}

.content-area ul,
.content-area ol {
  margin: 0 0 16px 24px;
}

.content-area li {
  margin-bottom: 6px;
}

.content-area code {
  background: #0e0e24;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 13px;
  color: var(--neon-yellow);
}

.content-area strong {
  color: #e8e8f8;
}

.content-area hr {
  border: none;
  border-top: 1px solid #2a2a50;
  margin: 28px 0;
}

.content-area blockquote {
  border-left: 3px solid var(--neon-purple);
  padding: 12px 20px;
  margin: 16px 0;
  background: rgba(176, 38, 255, 0.06);
  color: #b8b8d8;
  font-style: italic;
}

/* ---- Content Grid (wiki home / hub pages) ---- */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.grid-card {
  background: #161638;
  border: 1px solid #2a2a50;
  border-radius: 4px;
  padding: 24px;
  transition: all 0.2s;
  text-decoration: none;
  display: block;
  color: inherit;
}

.grid-card:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.08);
  transform: translateY(-2px);
}

.grid-card .card-icon {
  font-size: 28px;
  margin-bottom: 12px;
  display: block;
}

.grid-card .card-title {
  font-family: var(--pixel-font);
  font-size: 10px;
  color: var(--neon-green);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.grid-card .card-desc {
  color: #9999bb;
  font-size: 14px;
  line-height: 1.7;
}

.grid-card .card-meta {
  font-size: 12px;
  color: #666688;
  margin-top: 10px;
}

/* ---- Tag / Badge styles ---- */
.tag {
  display: inline-block;
  font-family: var(--pixel-font);
  font-size: 7px;
  padding: 4px 10px;
  border-radius: 2px;
  letter-spacing: 1px;
  margin-right: 6px;
  vertical-align: middle;
}

.tag-new       { background: rgba(57, 255, 20, 0.15); color: var(--neon-green); border: 1px solid rgba(57, 255, 20, 0.3); }
.tag-fix       { background: rgba(0, 240, 255, 0.12); color: var(--neon-cyan); border: 1px solid rgba(0, 240, 255, 0.3); }
.tag-balance   { background: rgba(255, 230, 0, 0.12); color: var(--neon-yellow); border: 1px solid rgba(255, 230, 0, 0.3); }
.tag-critical  { background: rgba(255, 45, 149, 0.12); color: var(--neon-pink); border: 1px solid rgba(255, 45, 149, 0.3); }
.tag-platform  { background: rgba(176, 38, 255, 0.12); color: var(--neon-purple); border: 1px solid rgba(176, 38, 255, 0.3); }

/* ---- Patch Notes specific ---- */
.patch-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.patch-version {
  font-family: var(--pixel-font);
  font-size: 16px;
  color: var(--neon-cyan);
}

.patch-date {
  font-size: 13px;
  color: #8888aa;
}

.patch-codename {
  font-family: var(--pixel-font);
  font-size: 9px;
  color: var(--neon-pink);
  letter-spacing: 1px;
}

.change-list {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
}

.change-list li {
  padding: 6px 0 6px 24px;
  position: relative;
  border-bottom: 1px solid rgba(42, 42, 80, 0.4);
}

.change-list li::before {
  content: '>';
  position: absolute;
  left: 4px;
  color: var(--neon-green);
  font-family: var(--pixel-font);
  font-size: 10px;
}

.change-list li:last-child {
  border-bottom: none;
}

/* ---- Forum specific ---- */
.thread-list {
  margin-bottom: 24px;
}

.thread-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #222244;
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}

.thread-item:hover {
  background: rgba(0, 240, 255, 0.03);
}

.thread-item:first-child {
  border-top: 1px solid #222244;
}

.thread-title {
  font-size: 15px;
  color: #d0d0e8;
  font-weight: 600;
}

.thread-title:hover {
  color: var(--neon-cyan);
}

.thread-author {
  font-size: 12px;
  color: #777799;
  margin-top: 3px;
}

.thread-replies,
.thread-date {
  font-family: var(--pixel-font);
  font-size: 8px;
  color: #666688;
  text-align: right;
  white-space: nowrap;
}

.thread-replies span,
.thread-date span {
  display: block;
  font-family: var(--system-font);
  font-size: 12px;
  color: #9999bb;
  margin-top: 2px;
}

.thread-pinned .thread-title::before {
  content: '[ PINNED ] ';
  font-family: var(--pixel-font);
  font-size: 7px;
  color: var(--neon-yellow);
  vertical-align: middle;
  margin-right: 6px;
}

/* Forum post */
.post {
  padding: 20px 0;
  border-bottom: 1px solid #222244;
}

.post:last-child {
  border-bottom: none;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.post-avatar {
  width: 36px;
  height: 36px;
  background: #1e1e40;
  border: 1px solid #333355;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.post-author {
  font-family: var(--pixel-font);
  font-size: 9px;
  color: var(--neon-green);
}

.post-time {
  font-size: 12px;
  color: #666688;
}

.post-body {
  color: #c8c8e0;
  line-height: 1.85;
  font-size: 15px;
  padding-left: 48px;
}

.post-body p {
  margin-bottom: 12px;
}

/* Category header bar */
.category-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #0e0e24;
  border: 1px solid #222244;
  border-radius: 4px;
  margin-bottom: 16px;
}

.category-icon {
  font-size: 24px;
}

.category-info .category-name {
  font-family: var(--pixel-font);
  font-size: 11px;
  color: var(--neon-cyan);
  letter-spacing: 1px;
}

.category-info .category-desc {
  font-size: 13px;
  color: #8888aa;
  margin-top: 4px;
}

/* ---- Sidebar layout (for platform pages) ---- */
.two-col {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}

.sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}

.sidebar-nav {
  list-style: none;
  background: #161638;
  border: 1px solid #2a2a50;
  border-radius: 4px;
  padding: 16px 0;
}

.sidebar-nav li a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  color: #9999bb;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.04);
  border-left-color: var(--neon-cyan);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .page-wrapper {
    padding: 80px 16px 40px;
  }

  .content-area {
    padding: 20px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .thread-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .thread-replies,
  .thread-date {
    text-align: left;
  }
}
