/* ============================
   ARTICLE PAGE STYLES
   Shared styles for content/blog pages
   ============================ */

/* ---- Variables & Reset ---- */
:root {
  --green: #0ea47a;
  --green-light: #12c492;
  --green-dark: #0b8563;
  --green-glow: rgba(14, 164, 122, 0.35);
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1c1c1c;
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #606060;
  --border: #222222;
  --border-light: #2a2a2a;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }


/* ---- Layout ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}


/* ---- Nav (matches index.html) ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.nav-logo img {
  height: 32px;
  width: 32px;
  border-radius: 8px;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--green);
}

.nav-logo-text span {
  color: #e0e0e0;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  text-decoration: none;
}

.nav-links a:hover { color: var(--text-primary); text-decoration: none; }

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 0.5rem;
  cursor: pointer;
}

/* Mobile nav dropdown */
.nav-links.mobile-open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.5rem;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 769px) {
  .nav-links.mobile-open { display: flex !important; flex-direction: row; position: static; background: none; padding: 0; border: none; }
}


/* ---- Article Header ---- */
.article-header {
  text-align: center;
  padding: 6rem 1.5rem 2rem;
  max-width: 720px;
  margin: 0 auto;
}

.article-header h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.article-header h1 span {
  color: var(--green);
}

.article-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}


/* ---- Table of Contents ---- */
.toc {
  max-width: 720px;
  margin: 0 auto 3rem;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
}

.toc h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.toc ol {
  list-style: none;
  counter-reset: toc-counter;
  padding: 0;
}

.toc ol li {
  counter-increment: toc-counter;
  margin-bottom: 0.4rem;
}

.toc ol li a {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.toc ol li a::before {
  content: counter(toc-counter) ".";
  font-weight: 700;
  color: var(--green);
  min-width: 1.2rem;
}

.toc ol li a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.toc ol li ul {
  list-style: none;
  padding: 0 0 0 1.7rem;
  margin: 0.25rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0.1rem 1.5rem;
}

.toc ol li ul li {
  counter-increment: none;
  margin-bottom: 0;
}

.toc ol li ul li a::before {
  content: none;
}

.toc ol li ul li a {
  font-size: 0.875rem;
  color: var(--text-muted);
}


/* ---- Article Sections ---- */
.article-section {
  margin-bottom: 3.5rem;
  scroll-margin-top: 5rem;
}

.article-section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-light);
}

.article-section h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-section p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 1rem;
}

.article-section a { color: var(--green-light); }
.article-section a:hover { color: var(--green); text-decoration: underline; }

.article-section strong {
  color: var(--text-primary);
}

.article-section ul,
.article-section ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-section li {
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}

.article-section li strong {
  color: var(--text-primary);
}

.article-section blockquote {
  border-left: 3px solid var(--green);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
  color: var(--text-secondary);
  font-style: italic;
}

.article-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.article-section thead th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-section tbody td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.article-section tbody tr:hover td {
  background: var(--bg-card);
}

/* Game card grid used in "Best Games" section */
.game-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 1.25rem;
}

.game-card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.game-card .game-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(14, 164, 122, 0.15);
  color: var(--green-light);
  margin-bottom: 0.5rem;
}

.game-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}


/* ---- CTA Banner ---- */
.cta-banner {
  max-width: 720px;
  margin: 3rem auto 4rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--green);
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 0 30px var(--green-glow);
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.cta-banner p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.cta-btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}


/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand img { height: 28px; width: 28px; border-radius: 6px; }

.footer-brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.footer-brand-text span { color: var(--green); }

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.2s;
  text-decoration: none;
}

.footer-links a:hover { color: var(--text-secondary); }

.footer-discord {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #5865F2;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-discord:hover { opacity: 0.8; text-decoration: none; }

.footer-copy {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
  padding: 0 1.5rem;
}


/* ---- Responsive ---- */
@media (min-width: 768px) {
  .game-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .article-header h1 { font-size: 1.75rem; }
  .article-header { padding: 2.5rem 1rem 1.5rem; }
  .article-section h2 { font-size: 1.4rem; }
  .toc { padding: 1rem 1.25rem; }
  .footer-inner { justify-content: center; text-align: center; flex-direction: column; }
  .footer-links { gap: 1.5rem; }
}
