/* article.css — shared styles for content pages */
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

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

:root {
  --bg: #eff2f5;
  --surface: #f0f4f8;
  --card-bg: #ffffff;
  --footer-bg: #e4e9ef;
  --border: #c8d2de;
  --border-strong: #b0bdd0;
  --text: #111827;
  --text-2: #4a5568;
  --text-3: #8a9ab5;
  --accent-light: #dde6f5;
  --btn-bg: #0f1f3d;
  --btn-hover: #1a3461;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(15,31,61,0.08), 0 4px 20px rgba(15,31,61,0.08);
  --font-body: 'DM Sans', sans-serif;
  --font-display: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

html { font-size: 16px; scroll-padding-top: 72px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  position: sticky;
  top: 0;
  background: rgba(239,242,245,0.70);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.logo { font-family: var(--font-mono); font-weight: 500; font-size: 0.95rem; color: var(--text); }
.logo a { text-decoration: none; color: inherit; }

nav { display: flex; flex-direction: row; align-items: center; gap: 28px; }
nav a { text-decoration: none; color: var(--text-2); font-size: 0.85rem; transition: color 0.15s; }
nav a:hover { color: var(--text); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-btn { background:none; border:none; cursor:pointer; font-family:var(--font-body); font-size:0.85rem; color:var(--text-2); display:flex; align-items:center; gap:5px; padding:0; transition:color 0.15s; }
.nav-dropdown-btn:hover { color:var(--text); }
.nav-dropdown-arrow { font-size:0.6rem; transition:transform 0.18s; opacity:0.6; display:inline-block; }
.nav-dropdown.open .nav-dropdown-arrow { transform:rotate(180deg); }
.nav-dropdown-menu { display:none; position:absolute; top:calc(100% + 10px); right:0; background:var(--card-bg); border:1px solid var(--border); border-radius:var(--radius-sm); box-shadow:0 8px 28px rgba(15,31,61,0.13); min-width:220px; z-index:200; overflow:hidden; opacity:0; transform:translateY(-4px); transition:opacity 0.15s,transform 0.15s; pointer-events:none; }
.nav-dropdown.open .nav-dropdown-menu { display:block; opacity:1; transform:translateY(0); pointer-events:auto; }
.nav-dropdown-menu a { display:flex; align-items:center; gap:10px; padding:10px 16px; text-decoration:none; font-size:0.85rem; color:var(--text-2); transition:background 0.1s,color 0.1s; white-space:nowrap; }
.nav-dropdown-menu a:hover { background:var(--surface); color:var(--text); }
.nav-dropdown-divider { height:1px; background:var(--border); margin:4px 0; }

/* ── ARTICLE LAYOUT ── */
.article-wrap {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  padding: 48px 24px 80px;
}

.article-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
  display: block;
}

.article-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
}

.article-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  margin-bottom: 36px;
  display: flex;
  flex-direction: row;
  gap: 16px;
  flex-wrap: wrap;
}

.article-body { max-width: 660px; }

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 40px 0 14px;
}

.article-body h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 10px;
}

.article-body p {
  font-size: 0.97rem;
  color: var(--text-2);
  line-height: 1.78;
  margin-bottom: 18px;
}

.article-body ul, .article-body ol {
  margin: 0 0 18px 20px;
  color: var(--text-2);
}

.article-body li {
  font-size: 0.97rem;
  line-height: 1.7;
  margin-bottom: 6px;
}

.article-body a { color: var(--btn-bg); text-decoration: underline; }
.article-body a:hover { color: var(--btn-hover); }

.article-body strong { color: var(--text); font-weight: 600; }

.article-body .callout {
  background: var(--accent-light);
  border-left: 3px solid var(--btn-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 24px 0;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── ARTICLE CTA BOX ── */
.article-cta {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 40px 0 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.article-cta p {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  margin: 0;
  flex: 1;
}

.article-cta a {
  background: var(--btn-bg);
  color: #fff;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s;
}

.article-cta a:hover { background: var(--btn-hover); }

/* ── BREADCRUMB ── */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-3);
  margin-bottom: 28px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}

.breadcrumb a { color: var(--text-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--text-2); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 40px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--text-3);
  font-family: var(--font-mono);
  text-align: center;
  background: var(--footer-bg);
}

footer span:first-child { font-weight: 500; color: var(--text-2); }
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--text); }
.footer-disclaimer { margin-left: 0; font-size: 0.7rem; opacity: 0.8; }

@media (max-width: 600px) {
  header { padding: 12px 18px; }
  .article-wrap { padding: 28px 16px 60px; }
  nav { gap: 14px; }
  nav a { font-size: 0.78rem; }
  footer { padding: 14px 18px; flex-direction: column; gap: 3px; }
  .footer-disclaimer { margin-left: 0; }
  .article-cta { flex-direction: column; align-items: flex-start; }
}

/* ── GAMERTAG.NET REFERRAL BANNER ── */
.gtn-banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  margin-top: 28px;
  background: #107c10;
  border: 1.5px solid #0e6b0e;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
  box-shadow: 0 2px 14px rgba(16,124,16,0.22);
  flex-wrap: wrap;
  color: inherit;
}
.gtn-banner:hover { background: #0e6b0e; box-shadow: 0 4px 22px rgba(16,124,16,0.36); transform: translateY(-1px); }
.gtn-banner-left { display: flex; flex-direction: row; align-items: center; gap: 14px; min-width: 0; }
.gtn-banner-logo { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; border-radius: 6px; background: rgba(255,255,255,0.12); padding: 4px; }
.gtn-banner-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gtn-banner-title { font-family: var(--font-body); font-size: 0.92rem; font-weight: 700; color: #fff; line-height: 1.2; text-decoration: none; }
.gtn-banner-sub { font-family: var(--font-body); font-size: 0.76rem; color: rgba(255,255,255,0.78); line-height: 1.4; text-decoration: none; }
.gtn-banner-cta { font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; color: #fff; white-space: nowrap; flex-shrink: 0; background: rgba(255,255,255,0.15); padding: 8px 16px; border-radius: 100px; transition: background 0.15s; }
.gtn-banner:hover .gtn-banner-cta { background: rgba(255,255,255,0.25); }
.article-body .gtn-banner,
.article-body .gtn-banner:hover { text-decoration: none; }
@media (max-width: 600px) { .gtn-banner { flex-direction: column; align-items: flex-start; gap: 14px; } .gtn-banner-cta { align-self: flex-end; } }

/* ══════════════════════════════════════════
   DARK MODE
   ══════════════════════════════════════════ */
html[data-theme="dark"] {
  --bg:              #1a1f2e;
  --surface:         #212840;
  --card-bg:         #252b3b;
  --footer-bg:       #141824;
  --border:          #2e3650;
  --border-strong:   #3a4466;
  --text:            #e8ecf4;
  --text-2:          #9ba8c4;
  --text-3:          #5a6585;
  --accent-light:    #1e2d50;
  --green:           #3db87a;
  --btn-bg:          #4a7cf7;
  --btn-hover:       #6090ff;
  --shadow:          0 1px 3px rgba(0,0,0,0.3), 0 4px 20px rgba(0,0,0,0.25);
}

html[data-theme="dark"] header { background: rgba(26,31,46,0.80); border-bottom-color: var(--border); }
html[data-theme="dark"] .article-body .callout { background: var(--accent-light); border-left-color: var(--btn-bg); }
html[data-theme="dark"] .article-cta { background: var(--card-bg); border-color: var(--border); }

.theme-toggle {
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  cursor: pointer;
  width: 36px;
  height: 22px;
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.theme-toggle:hover { border-color: var(--btn-bg); }
.theme-toggle-track { width:100%;height:100%;border-radius:100px;background:var(--surface);position:relative;transition:background 0.2s; }
html[data-theme="dark"] .theme-toggle-track { background: var(--btn-bg); }
.theme-toggle-knob { position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:var(--text-3);transition:transform 0.2s ease,background 0.2s;display:flex;align-items:center;justify-content:center; }
html[data-theme="dark"] .theme-toggle-knob { transform:translateX(14px);background:#fff; }
.theme-toggle-knob::before { content:'☀';color:#888;font-size:8px; }
html[data-theme="dark"] .theme-toggle-knob::before { content:'☾';color:var(--btn-bg); }
