/* ===== Lifemons Shared Page Styles ===== */
:root {
  --bg-0: #04060a;
  --bg-1: #080c14;
  --bg-2: #0e1320;
  --bg-card: #111827;
  --border: rgba(255,255,255,0.07);
  --border-glow: rgba(255,255,255,0.12);
  --text-1: #f1f5f9;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --game-primary: #22d3ee;
  --game-secondary: #3b82f6;
  --app-primary: #a78bfa;
  --app-secondary: #ec4899;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-0);
  color: var(--text-2);
  margin: 0;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5 {
  font-family: 'Mitr', sans-serif;
  color: var(--text-1);
  line-height: 1.3;
}

/* ===== NAVBAR ===== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(4, 6, 10, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

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

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

.nav-logo img { height: 36px; }

.nav-logo span {
  font-family: 'Mitr', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}

.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-1);
  background: rgba(255,255,255,0.06);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-1);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* ===== MOBILE NAV ===== */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4,6,10,0.97);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mobile-nav-overlay.open { display: flex; }

.mobile-nav-overlay a {
  color: var(--text-1);
  text-decoration: none;
  font-family: 'Mitr', sans-serif;
  font-size: 1.4rem;
  padding: 12px 32px;
  border-radius: 12px;
  transition: background 0.2s;
}

.mobile-nav-overlay a:hover { background: rgba(255,255,255,0.06); }

.mobile-nav-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ===== PAGE HEADER ===== */
.page-hero {
  padding: 120px 0 60px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(34,211,238,0.04) 0%, transparent 100%);
}

.page-hero.app-hero {
  background: linear-gradient(180deg, rgba(167,139,250,0.04) 0%, transparent 100%);
}

.page-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.page-label.game-label {
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.2);
  color: var(--game-primary);
}

.page-label.app-label {
  background: rgba(167,139,250,0.08);
  border: 1px solid rgba(167,139,250,0.2);
  color: var(--app-primary);
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-2);
  font-size: 1rem;
  margin: 0;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-3);
  margin-top: 20px;
}

.breadcrumb-nav a {
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-nav a:hover { color: var(--text-2); }

.breadcrumb-nav .sep { color: var(--text-3); }

/* ===== DOC CONTENT ===== */
main { flex: 1; }

.doc-section {
  padding: 60px 0 80px;
}

.doc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 52px;
  max-width: 800px;
}

.doc-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-1);
  margin-top: 36px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.doc-card h2:first-child { margin-top: 0; }

.doc-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-2);
  margin-top: 18px;
  margin-bottom: 8px;
}

.doc-card p {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 0;
}

.doc-card ul {
  padding-left: 20px;
  margin: 10px 0 0;
}

.doc-card ul li {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 4px;
}

.doc-card .doc-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 10px;
}

.doc-step-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Mitr', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.doc-step-num.game { background: rgba(34,211,238,0.12); color: var(--game-primary); }
.doc-step-num.app  { background: rgba(167,139,250,0.12); color: var(--app-primary); }

.doc-step-text {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
}

.doc-step-text strong { color: var(--text-1); }

.doc-contact-box {
  margin-top: 32px;
  padding: 20px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.doc-contact-box.game { background: rgba(34,211,238,0.06); border: 1px solid rgba(34,211,238,0.15); }
.doc-contact-box.app  { background: rgba(167,139,250,0.06); border: 1px solid rgba(167,139,250,0.15); }

.doc-contact-box i { font-size: 1.3rem; }
.doc-contact-box.game i { color: var(--game-primary); }
.doc-contact-box.app  i { color: var(--app-primary); }

.doc-contact-box p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
}

.doc-contact-box a { color: var(--game-primary); text-decoration: none; font-weight: 600; }
.doc-contact-box.app a { color: var(--app-primary); }

/* ===== FOOTER ===== */
footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-logo img { height: 28px; }
.footer-logo span {
  font-family: 'Mitr', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: 1px;
}

.footer-links-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

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

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

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-3);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.footer-social a:hover { border-color: var(--border-glow); color: var(--text-2); }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .doc-card { padding: 32px 24px; }
}

@media (max-width: 575px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
