/* ═══════════════════════════════
   KNOWYOURBODIES · SHARED STYLES
   ═══════════════════════════════ */

/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;700&display=swap');

/* ── TOKENS ── */
:root {
  --bg:            #E2EFC2;
  --surface:       #fff;
  --text:          #262C37;
  --text-muted:    #5a6040;
  --text-light:    #8a9870;
  --border:        rgba(42,56,40,0.15);
  --accent:        #F36589;
  --accent-light:  rgba(243,101,137,0.12);
  --correct:       #5a8040;
  --correct-light: #c8e0a0;
  --wrong:         #d09060;
  --wrong-light:   #f5e0c8;
  --card-bg:       rgba(42,56,40,0.08);
  --card-hover:    rgba(255,255,255,0.7);
  --card-active:   rgba(255,255,255,0.9);
  --btn-primary:   #F36589;
  --btn-secondary: rgba(255,255,255,0.55);
  --radius:        16px;
  --radius-sm:     10px;
  --radius-xs:     8px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
button { outline: none; border: none; cursor: pointer; font-family: inherit; }
button:focus { outline: none; }
a { text-decoration: none; color: inherit; }

body {
  font-family: 'Manrope', 'Noto Sans SC', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}


.global-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 20px;
  pointer-events: none;
}
.nav-hamburger {
  pointer-events: all;
  background: var(--card-bg);
  border: none;
  outline: none;
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--accent);
  transition: background 0.18s;
}
.nav-hamburger:hover  { background: var(--card-hover); }
.nav-hamburger:active { background: var(--card-active); transform: scale(0.95); }

.nav-overlay { display: none; position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,0.25); }
.nav-overlay.open { display: block; }

.nav-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  left: clamp(48px, 12vw, 120px);
  z-index: 1001;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-drawer.open { transform: translateX(0); }

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.nav-drawer-title { font-family: 'Manrope', 'Noto Sans SC', sans-serif; font-weight: 700; font-size: 16px; color: var(--text); }
.nav-close {
  background: none; border: none; font-size: 20px; cursor: pointer;
  color: var(--text-muted); padding: 4px 8px; border-radius: 6px;
}
.nav-close:hover { color: var(--text); }

.nav-body { flex: 1; overflow-y: auto; padding: 20px; }
@media (min-width: 600px) { .nav-columns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; } }
@media (max-width: 599px) { .nav-columns { display: flex; flex-direction: column; gap: 28px; } }

.nav-col-title-btn {
  display: block;
  font-size: 14px; font-weight: 400;
  color: var(--text);
  margin-bottom: 4px;
  padding: 8px 10px;
  border: none; background: none;
  text-align: left; cursor: pointer; width: 100%;
  font-family: 'Manrope', 'Noto Sans SC', sans-serif;
  border-radius: var(--radius-xs);
  transition: background 0.15s;
}
.nav-col-title-btn:hover { background: var(--card-hover); }

.nav-col-items { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: block; padding: 8px 10px; border-radius: var(--radius-xs);
  font-size: 14px; color: var(--text); text-decoration: none;
  background: none; border: none; text-align: left; cursor: pointer; width: 100%;
  font-family: 'Manrope', 'Noto Sans SC', sans-serif; transition: background 0.15s;
}
.nav-item:hover { background: var(--card-hover); }
.nav-item.sub { font-size: 13px; color: var(--text-muted); padding-left: 18px; }
.nav-item.sub:hover { color: var(--text); background: var(--card-hover); }

.nav-footer { padding: 16px 20px; border-top: 1px solid var(--border); }
.nav-lang-row { display: flex; align-items: center; gap: 10px; }
.nav-lang-btn {
  background: none; border: 1.5px solid var(--border); border-radius: 6px;
  padding: 4px 12px; font-size: 13px; font-family: 'Manrope', 'Noto Sans SC', sans-serif;
  cursor: pointer; color: var(--text-muted); transition: all 0.15s;
}
.nav-lang-btn.active { background: var(--btn-primary); border-color: var(--btn-primary); color: white; }

/* ── BACK BUTTON ── */
.back-btn {
  background: var(--card-bg);
  border: none; outline: none;
  border-radius: 50%;
  width: 40px; height: 40px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s;
  padding: 0;
  color: var(--accent);
}
.back-btn svg { display: block; }
.back-btn svg path { stroke: currentColor; }
.back-btn:hover  { background: var(--card-hover); }
.back-btn:active { background: var(--card-active); transform: scale(0.95); }

/* ── CARDS ── */
.section-card {
  background: var(--card-bg);
  border: none;
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: background 0.18s;
  text-align: left;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: block;
}
.section-card:hover  { background: var(--card-hover); }
.section-card:hover .section-meta  { color: var(--accent); }
.section-card:hover .section-arrow { transform: translateY(-50%) translateX(3px); }
.section-card:active { background: var(--card-active); transform: scale(0.985); }

.section-card-inner {}
.section-title { font-family: 'Manrope', 'Noto Sans SC', sans-serif; font-weight: 700; font-size: 18px; color: var(--text); margin-bottom: 4px; }
.section-meta  { font-size: 13px; color: var(--text-muted); transition: color 0.18s; }
.section-arrow {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 18px; color: var(--accent); transition: transform 0.18s;
}


/* ── SECTION LIST ── */
.section-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

/* home-section-card = section-card with flex layout */
.home-section-card {
  background: var(--card-bg);
  border: none;
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  text-align: left;
  transition: background 0.18s;
  position: relative;
}
.home-section-card:hover { background: var(--card-hover); }
.home-section-card:hover .home-section-card-sub { color: var(--accent); }
.home-section-card:hover .section-arrow { transform: translateY(-50%); }
.home-section-card:active { background: var(--card-active); transform: scale(0.985); }
.home-section-card-inner { flex: 1; }
.home-section-card-title {
  font-family: 'Manrope', 'Noto Sans SC', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.home-section-card-sub { font-size: 13px; color: var(--text-muted); transition: color 0.18s; }

/* ── BUTTONS ── */
.btn-primary {
  width: 100%; padding: 14px;
  background: var(--btn-primary); color: #fff;
  border: none; outline: none;
  border-radius: var(--radius-sm);
  font-family: 'Manrope', 'Noto Sans SC', sans-serif;
  font-size: 15px; font-weight: 500;
  cursor: pointer; transition: opacity 0.15s;
}
.btn-primary:hover  { opacity: 0.88; }
.btn-primary:active { transform: scale(0.98); opacity: 0.8; }

.btn-secondary {
  width: 100%; padding: 14px;
  background: var(--btn-secondary); color: var(--text);
  border: none; outline: none;
  border-radius: var(--radius-sm);
  font-family: 'Manrope', 'Noto Sans SC', sans-serif;
  font-size: 15px; font-weight: 500;
  cursor: pointer; transition: background 0.15s;
}
.btn-secondary:hover  { background: rgba(255,255,255,0.8); }
.btn-secondary:active { transform: scale(0.98); }

/* ── DISCLAIMER ── */
.disclaimer-box,
.home-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  padding: 14px 16px;
  background: var(--card-bg);
  border-radius: var(--radius-sm);
}

/* ── FOOTER ── */
.site-footer {
  width: 100%;
  margin-top: auto;
  box-sizing: border-box;
}
.site-footer-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px 32px;
  border-top: 1px solid var(--border);
}
.site-footer-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; margin-bottom: 32px;
}
@media (max-width: 480px) { .site-footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.footer-col-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-light); margin-bottom: 12px;
}
.footer-nav-links { display: flex; flex-direction: column; gap: 8px; }
.footer-nav-link {
  font-size: 13px; color: var(--text-muted); text-decoration: none;
  background: none; border: none; cursor: pointer; text-align: left;
  padding: 0; font-family: 'Manrope', 'Noto Sans SC', sans-serif; transition: color 0.15s;
}
.footer-nav-link:hover { color: var(--text); }
.footer-credits { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  display: flex; align-items: center; gap: 10px;
}
.footer-ig-link {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--text-muted); font-size: 13px; transition: color 0.15s;
}
.footer-ig-link:hover { color: var(--accent); }
.footer-ig-icon { width: 18px; height: 18px; flex-shrink: 0; }


/* ── TYPOGRAPHY ── */
.home-header { margin-bottom: 32px; }
.home-title {
  font-family: 'Manrope', 'Noto Sans SC', sans-serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 8px;
}
.home-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── PAGE LAYOUT ── */
.page-wrap {
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  padding: 72px 24px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Screen containers (used in quiz SPA) */
.screen { display: none; }
.screen.active { display: flex; flex-direction: column; flex: 1; width: 100%; }
.screen-wrap {
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  padding: 72px 24px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.page-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--accent); margin-bottom: 6px;
}
.page-title {
  font-family: 'Manrope', 'Noto Sans SC', sans-serif;
  font-size: 38px; font-weight: 600;
  line-height: 1.15; color: var(--text); margin-bottom: 16px;
}

/* ── NAV STANDARD FOOTER HTML ── */
/* Standard footer HTML to include in all pages:
<footer class="site-footer" style="margin-top:auto">
  ...same structure...
</footer>
*/
