/* ─────────────────────────────────────────
   GuideGuru — Global Stylesheet
   Nav + Footer + Mobile responsive
   Page-specific styles live inline per page
───────────────────────────────────────── */

/* ─── BASE ─── */
* { margin: 0; padding: 0; box-sizing: border-box; max-width: 100%; }
html, body { overflow-x: hidden; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: #0f0f13; color: #e2e8f0; line-height: 1.6; }
a { color: #818cf8; text-decoration: none; word-break: break-word; }
a:hover { color: #c7d2fe; text-decoration: underline; }
img { max-width: 100%; height: auto; }
pre, code { overflow-x: auto; max-width: 100%; white-space: pre-wrap; }

/* ─── DESKTOP NAV ─── */
.gn-bar {
  background: #1e1e2e;
  border-bottom: 1px solid #2d2d44;
  position: sticky; top: 0; z-index: 500;
}
.gn-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.gn-logo {
  font-size: 1.3rem; font-weight: 700; color: #818cf8;
  padding: 1rem 0; white-space: nowrap;
}
.gn-logo span { color: #c7d2fe; }
.gn-logo a { color: inherit; text-decoration: none; }
.gn-menu { display: flex; align-items: stretch; gap: 0; }
.gn-item { position: relative; }
.gn-item > a,
.gn-item > span {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 1.1rem 1rem; font-size: 0.85rem; font-weight: 600;
  color: #94a3b8; cursor: pointer; white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  text-decoration: none;
}
.gn-item > a:hover,
.gn-item > span:hover { color: #c7d2fe; text-decoration: none; }
.gn-item.active > a,
.gn-item.active > span { color: #818cf8; border-bottom-color: #818cf8; }
.gn-drop {
  display: none; position: absolute; top: 100%; left: 0;
  background: #1e1e2e; border: 1px solid #2d2d44;
  border-top: none; border-radius: 0 0 10px 10px;
  min-width: 240px; max-height: 420px; overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4); z-index: 600;
}
.gn-drop.right { left: auto; right: 0; }
.gn-item:hover .gn-drop { display: block; }
.gn-drop a {
  display: block; padding: 0.6rem 1.1rem; font-size: 0.8rem;
  color: #94a3b8; border-bottom: 1px solid #23233a;
  transition: background 0.1s, color 0.1s; text-decoration: none;
}
.gn-drop a:last-child { border-bottom: none; border-radius: 0 0 10px 10px; }
.gn-drop a:hover { background: #2d2d44; color: #c7d2fe; text-decoration: none; }
.gn-drop .drop-label {
  display: block; padding: 0.5rem 1.1rem 0.3rem;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #4b5563; background: #17172a;
}

/* Hamburger — hidden on desktop */
.gn-hamburger {
  display: none; background: none; border: none;
  color: #94a3b8; font-size: 1.5rem; cursor: pointer;
  padding: 0.5rem 0.25rem; line-height: 1;
}
.gn-hamburger:hover { color: #c7d2fe; }

/* ─── MOBILE OVERLAY ─── */
.mob-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.65); z-index: 900;
}
.mob-overlay.open { display: block; }

/* ─── MOBILE DRAWER ─── */
.mob-drawer {
  position: fixed; top: 0; left: -100%;
  width: 82%; max-width: 300px; height: 100vh;
  background: #1e1e2e; z-index: 1000;
  transition: left 0.28s ease;
  overflow-y: auto;
  border-right: 1px solid #2d2d44;
}
.mob-drawer.open { left: 0; }

.mob-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #2d2d44;
}
.mob-close {
  background: none; border: none; color: #64748b;
  font-size: 1.1rem; cursor: pointer; padding: 0.25rem;
}
.mob-close:hover { color: #e2e8f0; }

.mob-home-link {
  display: block; padding: 0.85rem 1.25rem;
  font-size: 0.9rem; font-weight: 600; color: #94a3b8;
  border-bottom: 1px solid #2d2d44; text-decoration: none;
}
.mob-home-link:hover { color: #c7d2fe; background: #17172a; text-decoration: none; }

.mob-news-link {
  display: block; padding: 0.85rem 1.25rem;
  font-size: 0.9rem; font-weight: 600; color: #94a3b8;
  text-decoration: none; border-bottom: 1px solid #2d2d44;
}
.mob-news-link:hover { color: #c7d2fe; background: #17172a; text-decoration: none; }

.mob-section { border-bottom: 1px solid #2d2d44; }
.mob-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.25rem; background: none; border: none;
  color: #e2e8f0; font-size: 0.9rem; font-weight: 600; cursor: pointer;
  text-align: left;
}
.mob-toggle:hover { background: #17172a; }
.mob-arrow { transition: transform 0.2s; display: inline-block; font-style: normal; }
.mob-toggle.open .mob-arrow { transform: rotate(180deg); }

.mob-links { display: none; background: #17172a; }
.mob-links.open { display: block; }
.mob-links a {
  display: block; padding: 0.6rem 1.5rem; font-size: 0.85rem;
  color: #94a3b8; border-bottom: 1px solid #1e1e2e; text-decoration: none;
}
.mob-links a:hover { color: #c7d2fe; background: #12121f; text-decoration: none; }
.mob-label {
  display: block; padding: 0.35rem 1.5rem 0.2rem;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #4b5563;
}

/* ─── FOOTER ─── */
.site-footer {
  background: #1e1e2e;
  border-top: 1px solid #2d2d44;
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  max-width: 1100px; margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-logo { font-size: 1.3rem; font-weight: 700; color: #818cf8; margin-bottom: 0.6rem; }
.footer-logo span { color: #c7d2fe; }
.footer-brand p { color: #64748b; font-size: 0.82rem; line-height: 1.6; margin-bottom: 0.4rem; }
.footer-disclosure { font-size: 0.74rem !important; color: #4b5563 !important; margin-top: 0.6rem !important; }
.footer-col h4 {
  color: #94a3b8; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 0.85rem;
}
.footer-col a {
  display: block; color: #64748b; font-size: 0.85rem;
  margin-bottom: 0.45rem; text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: #818cf8; text-decoration: none; }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  padding-top: 1.5rem; border-top: 1px solid #2d2d44;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: #4b5563;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  /* Show hamburger, hide desktop menu */
  .gn-menu { display: none; }
  .gn-hamburger { display: block; }
  .gn-inner { padding: 0 1rem; }

  /* Footer collapses to 2 cols */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 0.4rem; text-align: center; }
  .site-footer { padding: 2rem 1.25rem 1.25rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ─── ARTICLE LAYOUT (shared by deep articles) ─── */
.container { max-width: 820px; margin: 0 auto; padding: 3rem 2rem; }
.breadcrumb { font-size: 0.8rem; color: #64748b; margin-bottom: 2rem; }
.breadcrumb a { color: #64748b; }
.container h1 { font-size: 2.2rem; font-weight: 800; color: #f1f5f9; margin-bottom: 1rem; line-height: 1.2; }
.meta { font-size: 0.85rem; color: #64748b; margin-bottom: 2rem; }
.intro { font-size: 1.05rem; color: #94a3b8; margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid #2d2d44; }
.container h2 { font-size: 1.4rem; font-weight: 700; color: #f1f5f9; margin: 2.5rem 0 1rem; scroll-margin-top: 90px; }
.container h3 { font-size: 1.1rem; font-weight: 700; color: #c7d2fe; margin: 1.5rem 0 0.5rem; }
.container p { color: #94a3b8; margin-bottom: 1rem; }
.tool-card { background: #1e1e2e; border: 1px solid #2d2d44; border-radius: 10px; padding: 1.25rem; margin-bottom: 1rem; }
.tool-card h3 { margin-top: 0; }
.tag { display: inline-block; background: #312e81; color: #c7d2fe; padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.7rem; font-weight: 600; margin-right: 0.4rem; margin-bottom: 0.5rem; }
.free-tag { background: #064e3b; color: #6ee7b7; }
.container ul { color: #94a3b8; padding-left: 1.5rem; margin-bottom: 1rem; } .container ul li { margin-bottom: 0.5rem; }
.cluster-links { background: #1e1e2e; border: 1px solid #2d2d44; border-radius: 10px; padding: 1.25rem; margin-top: 3rem; }
.cluster-links h3 { color: #f1f5f9; margin-top: 0; margin-bottom: 0.75rem; font-size: 1rem; }
.cluster-links a { display: block; color: #818cf8; font-size: 0.875rem; margin-bottom: 0.4rem; }

/* ─── STICKY-READING COMPONENTS ─── */
.takeaways { background: #17172a; border: 1px solid #312e81; border-left: 4px solid #818cf8; border-radius: 10px; padding: 1.25rem 1.5rem; margin-bottom: 2.5rem; }
.takeaways h2 { margin: 0 0 0.75rem; font-size: 1.05rem; color: #c7d2fe; }
.takeaways ul { margin-bottom: 0; }
.toc { background: #1e1e2e; border: 1px solid #2d2d44; border-radius: 10px; padding: 1.25rem 1.5rem; margin-bottom: 2.5rem; }
.toc strong { color: #f1f5f9; display: block; margin-bottom: 0.6rem; font-size: 0.95rem; }
.toc ol { margin: 0; padding-left: 1.2rem; color: #94a3b8; font-size: 0.9rem; } .toc li { margin-bottom: 0.35rem; }
.cmp-table { width: 100%; border-collapse: collapse; margin: 1rem 0 2rem; font-size: 0.85rem; }
.cmp-table th { background: #1e1e2e; color: #c7d2fe; text-align: left; padding: 0.6rem 0.75rem; border: 1px solid #2d2d44; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
.cmp-table td { padding: 0.6rem 0.75rem; border: 1px solid #2d2d44; color: #94a3b8; vertical-align: top; }
.cmp-table tr:nth-child(even) td { background: #17172a; }
.cmp-table .price { color: #6ee7b7; font-weight: 600; white-space: nowrap; }
.prompt-box { background: #0b0b10; border: 1px solid #2d2d44; border-radius: 8px; padding: 1rem 1.1rem; margin: 0.75rem 0 1rem; font-family: 'Consolas', monospace; font-size: 0.83rem; color: #cbd5e1; line-height: 1.6; }
.prompt-box .lbl { display: block; font-family: 'Segoe UI', sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #818cf8; margin-bottom: 0.5rem; }
.pro-tip { background: #052e2b; border: 1px solid #064e3b; border-radius: 8px; padding: 0.9rem 1.1rem; margin: 0.75rem 0 1rem; font-size: 0.9rem; color: #a7f3d0; }
.pro-tip strong { color: #6ee7b7; }
.mistake { background: #2a1518; border: 1px solid #4c1d24; border-radius: 8px; padding: 0.9rem 1.1rem; margin-bottom: 0.75rem; font-size: 0.92rem; color: #fca5a5; }
.mistake strong { color: #fecaca; }
.steps { counter-reset: step; padding-left: 0; list-style: none; }
.steps li { position: relative; padding-left: 3rem; margin-bottom: 1.1rem; color: #94a3b8; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; background: #312e81; color: #c7d2fe; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; }
.verdict { background: #1e1e2e; border: 1px dashed #312e81; border-radius: 8px; padding: 0.6rem 0.9rem; margin-top: 0.75rem; font-size: 0.85rem; color: #c7d2fe; }
@media (max-width: 768px) {
  .container { padding: 2rem 1.25rem; }
  .container h1 { font-size: 1.7rem; }
  .cmp-table { font-size: 0.78rem; }
  .cmp-table th, .cmp-table td { padding: 0.45rem 0.5rem; }
}
