/* ChitHub — Shared Styles */

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: #080F1C;
  color: #F8FAFC;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  line-height: 1.3;
  font-weight: 700;
  color: #F8FAFC;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; margin-top: 2rem; margin-bottom: 0.6rem; color: #F8FAFC; }
h3 { font-size: 1.1rem; margin-top: 1.4rem; margin-bottom: 0.4rem; color: #F8FAFC; }
h4 { font-size: 1rem; margin-top: 1.2rem; margin-bottom: 0.3rem; color: #94A3B8; font-weight: 600; }

p { color: #94A3B8; margin-bottom: 0.9rem; }
p:last-child { margin-bottom: 0; }

a { color: #3B82F6; text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol {
  color: #94A3B8;
  padding-left: 1.4rem;
  margin-bottom: 0.9rem;
}

li { margin-bottom: 0.35rem; }

strong { color: #F8FAFC; font-weight: 600; }

hr {
  border: none;
  border-top: 1px solid #263653;
  margin: 2rem 0;
}

/* ── Layout ── */
.page-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}

main {
  flex: 1;
}

/* ── Navigation ── */
.site-nav {
  background-color: #0B1220;
  border-bottom: 1px solid #263653;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #3B82F6;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo:hover { text-decoration: none; opacity: 0.85; }

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

.nav-links a {
  color: #94A3B8;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #F8FAFC;
  text-decoration: none;
}

.nav-links a.nav-signin {
  color: #F8FAFC;
  background-color: #3B82F6;
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.15s;
}

.nav-links a.nav-signin:hover {
  background-color: #2563EB;
  text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #94A3B8;
  border-radius: 2px;
  transition: background-color 0.15s;
}

.nav-toggle:hover span { background-color: #F8FAFC; }

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  background-color: #0B1220;
  border-top: 1px solid #263653;
  padding: 0.75rem 1.25rem 1rem;
}

.nav-mobile.open { display: block; }

.nav-mobile ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.nav-mobile a {
  display: block;
  padding: 0.55rem 0;
  color: #94A3B8;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid #111C33;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: #F8FAFC;
  text-decoration: none;
}

.nav-mobile a.nav-signin-mobile {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.55rem 1.1rem;
  background-color: #3B82F6;
  color: #F8FAFC;
  font-weight: 600;
  border-radius: 8px;
  border-bottom: none;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.nav-mobile a.nav-signin-mobile:hover {
  background-color: #2563EB;
  color: #F8FAFC;
  text-decoration: none;
}

/* ── Page Header ── */
.page-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid #263653;
  margin-bottom: 2rem;
}

.page-header .label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3B82F6;
  margin-bottom: 0.5rem;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header .meta {
  font-size: 0.875rem;
  color: #64748B;
  margin: 0;
}

/* ── Content Sections ── */
.content-section {
  margin-bottom: 2.5rem;
}

.section-number {
  display: inline-block;
  background-color: #1D3461;
  color: #60A5FA;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

/* ── Cards ── */
.card {
  background-color: #111C33;
  border: 1px solid #263653;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.card-elevated {
  background-color: #17243D;
  border: 1px solid #263653;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

/* ── FAQ ── */
.faq-section {
  margin-bottom: 2.5rem;
}

.faq-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #F8FAFC;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #3B82F6;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.faq-section-title .faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background-color: #1D3461;
  border-radius: 6px;
  font-size: 0.85rem;
}

.faq-item {
  background-color: #111C33;
  border: 1px solid #263653;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.faq-q {
  font-weight: 600;
  color: #F8FAFC;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.faq-q::before {
  content: "Q: ";
  color: #3B82F6;
  font-weight: 700;
}

.faq-a {
  color: #94A3B8;
  font-size: 0.9rem;
  margin: 0;
}

.faq-a::before {
  content: "A: ";
  color: #60A5FA;
  font-weight: 600;
}

/* ── Support Page ── */
.support-email-block {
  background-color: #111C33;
  border: 1px solid #3B82F6;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.support-email-block .email-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748B;
  margin-bottom: 0.75rem;
}

.support-email-block .email-address {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #3B82F6;
  margin-bottom: 0.75rem;
  word-break: break-all;
}

.support-email-block .email-address:hover {
  text-decoration: underline;
}

.support-email-block .response-note {
  font-size: 0.875rem;
  color: #64748B;
  margin: 0;
}

.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  padding: 0.4rem 0;
  padding-left: 1.6rem;
  position: relative;
  color: #94A3B8;
  font-size: 0.925rem;
  border-bottom: 1px solid #111C33;
}

.checklist li:last-child { border-bottom: none; }

.checklist li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #3B82F6;
  font-weight: 700;
}

.info-box {
  background-color: #0F1E38;
  border-left: 3px solid #3B82F6;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.info-box p { color: #94A3B8; font-size: 0.9rem; margin: 0; }
.info-box strong { color: #60A5FA; }

/* ── 404 Page ── */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.25rem;
  flex: 1;
}

.error-code {
  font-size: 6rem;
  font-weight: 800;
  color: #1D3461;
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.04em;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.error-page p {
  max-width: 380px;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background-color: #3B82F6;
  color: #F8FAFC;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.15s;
}

.btn:hover {
  background-color: #2563EB;
  text-decoration: none;
}

.btn-outline {
  display: inline-block;
  background-color: transparent;
  color: #3B82F6;
  border: 1px solid #3B82F6;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.btn-outline:hover {
  background-color: #1D3461;
  text-decoration: none;
}

/* ── Footer ── */
.site-footer {
  background-color: #0B1220;
  border-top: 1px solid #263653;
  padding: 1.25rem 1.25rem;
  margin-top: 3rem;
  text-align: center;
}

.site-footer p {
  font-size: 0.82rem;
  color: #64748B;
  margin: 0;
}

.site-footer a { color: #60A5FA; }
.site-footer a:hover { color: #3B82F6; }

/* ── Responsive ── */
@media (max-width: 620px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.2rem; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .page-header { padding: 1.75rem 0 1.25rem; }

  .support-email-block .email-address { font-size: 1.1rem; }

  .error-code { font-size: 4rem; }
}

@media (min-width: 621px) {
  .nav-mobile { display: none !important; }
}
