/* ─────────────────────────────────────────
   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; }
}
