/* ═══════════════════════════════════════════════════
   NOVATALK  —  SHARED.CSS
   Used by: about · safety · tips · blog · blog-webrtc
            faq · privacy · terms
   ═══════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #050508;
  --surface:     rgba(255,255,255,0.04);
  --surface2:    rgba(255,255,255,0.07);
  --border:      rgba(255,255,255,0.08);
  --border2:     rgba(255,255,255,0.14);
  --text:        #f0f2ff;
  --text-2:      #8b8fa8;
  --text-3:      #4a4e6a;
  --cyan:        #00e5ff;
  --cyan-dim:    rgba(0,229,255,0.12);
  --cyan-glow:   rgba(0,229,255,0.30);
  --violet:      #7c3aed;
  --green:       #00ff88;
  --red:         #ff4466;
  --amber:       #ffb300;
  --grad:        linear-gradient(135deg,#00e5ff 0%,#7c3aed 100%);
  --font:        'Outfit', sans-serif;
  --mono:        'JetBrains Mono', monospace;
  --r:           12px;
  --r2:          20px;
  --tr:          0.22s ease;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* three canvas */
#three-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: 0.55;
}

/* ═══ NAV (injected by nav.js) ═══════════════ */
.site-nav {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; gap: 12px;
  padding: 0 clamp(16px,4vw,48px); height: 64px;
  background: rgba(5,5,8,0.90);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.brand-gem {
  width: 28px; height: 28px;
  background: var(--grad);
  clip-path: polygon(50% 0%,100% 38%,82% 100%,18% 100%,0% 38%);
  animation: gem-hue 8s linear infinite;
  filter: drop-shadow(0 0 8px var(--cyan-glow));
}
@keyframes gem-hue {
  from { filter: drop-shadow(0 0 8px var(--cyan-glow)) hue-rotate(0deg); }
  to   { filter: drop-shadow(0 0 8px var(--cyan-glow)) hue-rotate(360deg); }
}
.brand-name {
  font-size: 1.15rem; font-weight: 700;
  letter-spacing: -0.02em; color: var(--text);
}
.brand-name em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin: 0 auto;
}
.nav-links a {
  color: var(--text-2); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  padding: 6px 13px; border-radius: var(--r);
  transition: all var(--tr);
}
.nav-links a:hover   { color: var(--text); background: var(--surface2); }
.nav-links a.active  { color: var(--cyan); background: var(--surface2); }
.nav-cta {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 20px; border-radius: 99px;
  background: var(--grad); border: none;
  color: #000; font-family: var(--font);
  font-size: 0.82rem; font-weight: 700;
  text-decoration: none; cursor: pointer;
  white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,229,255,0.25);
  transition: all var(--tr);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,229,255,0.4); }

/* hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 4px; margin-left: auto;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-2); border-radius: 2px;
  transition: all var(--tr);
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: rgba(5,5,8,0.97);
  backdrop-filter: blur(24px); z-index: 199;
  flex-direction: column; gap: 4px;
  padding: 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block; padding: 12px 16px; border-radius: var(--r);
  color: var(--text-2); text-decoration: none;
  font-size: 1rem; font-weight: 500; transition: all var(--tr);
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--text); background: var(--surface2); }
.mobile-menu a.active { color: var(--cyan); }

/* ═══ PAGE HERO ═══════════════════════════════ */
.page-hero {
  position: relative; z-index: 1;
  text-align: center;
  padding: clamp(48px,8vw,96px) clamp(20px,5vw,48px) clamp(32px,5vw,56px);
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(0,229,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: 99px; padding: 5px 16px;
  font-size: 0.7rem; font-family: var(--mono);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 20px;
}
.hero-tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); animation: dot-blink 2s ease-in-out infinite;
}
@keyframes dot-blink { 0%,100%{opacity:1} 50%{opacity:.25} }
.page-hero h1 {
  font-size: clamp(1.9rem,5vw,3.3rem);
  font-weight: 900; line-height: 1.1;
  letter-spacing: -0.03em; margin-bottom: 14px;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero p {
  font-size: clamp(0.92rem,2vw,1.05rem);
  color: var(--text-2); max-width: 540px; margin: 0 auto;
}

/* ═══ CONTENT WRAPPER ═════════════════════════ */
.page-content {
  position: relative; z-index: 1;
  max-width: 880px; margin: 0 auto;
  padding: 0 clamp(16px,5vw,40px) 80px;
}

/* ═══ ADS ════════════════════════════════════ */
.ad-slot {
  width: 100%; min-height: 90px;
  background: var(--surface);
  border: 1px dashed rgba(255,255,255,0.06);
  border-radius: var(--r2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 0.68rem; font-family: var(--mono);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin: 28px 0; overflow: hidden;
}
.ad-slot ins { display: block; width: 100%; }

/* ═══ SECTION HEADINGS ════════════════════════ */
.section-title {
  font-size: clamp(1.15rem,3vw,1.65rem);
  font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px;
}
.section-subtitle { color: var(--text-2); font-size: 0.88rem; margin-bottom: 24px; }
.section-divider {
  width: 38px; height: 3px;
  background: var(--grad); border-radius: 2px;
  margin: 10px 0 24px;
}

/* ═══ CARD GRID ═══════════════════════════════ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: 16px; margin-bottom: 36px;
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 26px 22px;
  position: relative; overflow: hidden;
  transition: all var(--tr);
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad); opacity: 0; transition: opacity var(--tr);
}
.card:hover { border-color: var(--border2); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,229,255,0.09); }
.card:hover::before { opacity: 0.04; }
.card-icon { font-size: 1.5rem; margin-bottom: 12px; position: relative; }
.card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 7px; position: relative; }
.card p { font-size: 0.83rem; color: var(--text-2); line-height: 1.6; position: relative; }
.card-tag {
  display: inline-block; margin-top: 12px;
  background: var(--cyan-dim); color: var(--cyan);
  border: 1px solid rgba(0,229,255,0.18);
  font-size: 0.66rem; font-family: var(--mono);
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 6px; position: relative;
}

/* ═══ PROSE ════════════════════════════════════ */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.2rem; font-weight: 800; margin: 32px 0 9px; }
.prose h3 { font-size: 0.97rem; font-weight: 700; margin: 22px 0 7px; color: var(--cyan); }
.prose p  { color: var(--text-2); margin-bottom: 13px; font-size: 0.91rem; }
.prose ul, .prose ol { color: var(--text-2); font-size: 0.91rem; padding-left: 20px; margin-bottom: 14px; }
.prose li { margin-bottom: 5px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--cyan); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose blockquote {
  border-left: 3px solid var(--cyan); padding-left: 16px;
  color: var(--text-2); font-style: italic; margin: 18px 0;
}

/* ═══ STEPS ════════════════════════════════════ */
.steps { display: flex; flex-direction: column; gap: 0; }
.step  { display: flex; gap: 18px; position: relative; padding-bottom: 28px; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::after {
  content: ''; position: absolute; left: 17px; top: 42px; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--border2), transparent);
}
.step-num {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--grad); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.82rem; color: #000;
  box-shadow: 0 4px 14px rgba(0,229,255,0.3);
}
.step-body h3 { font-size: 0.93rem; font-weight: 700; margin-bottom: 3px; }
.step-body p  { font-size: 0.83rem; color: var(--text-2); }
.step-body a  { color: var(--cyan); text-decoration: none; }

/* ═══ TIP CARDS ════════════════════════════════ */
.tip-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 18px 20px;
  transition: all var(--tr);
}
.tip-card:hover { border-color: var(--border2); box-shadow: 0 8px 24px rgba(0,229,255,0.07); }
.tip-emoji { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.tip-body h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.tip-body p  { font-size: 0.82rem; color: var(--text-2); }

/* ═══ FAQ ACCORDION ════════════════════════════ */
.faq-list { display: flex; flex-direction: column; gap: 9px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r2); overflow: hidden; transition: border-color var(--tr);
}
.faq-item.open { border-color: var(--border2); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 17px 20px; cursor: pointer; gap: 12px;
  font-weight: 600; font-size: 0.93rem; user-select: none;
}
.faq-arrow {
  width: 20px; height: 20px; flex-shrink: 0;
  color: var(--text-3); transition: transform var(--tr), color var(--tr);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--cyan); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.38s ease, padding 0.3s ease;
  font-size: 0.87rem; color: var(--text-2); line-height: 1.7;
}
.faq-a a { color: var(--cyan); text-decoration: none; }
.faq-a a:hover { text-decoration: underline; }
.faq-item.open .faq-a { max-height: 400px; padding: 0 20px 17px; }

/* ═══ BLOG ═════════════════════════════════════ */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(270px,1fr));
  gap: 20px;
}
.blog-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r2); overflow: hidden;
  transition: all var(--tr); text-decoration: none; color: var(--text);
  display: flex; flex-direction: column;
}
.blog-card:hover { border-color: var(--border2); transform: translateY(-4px); box-shadow: 0 20px 48px rgba(0,229,255,0.1); }
.blog-thumb {
  height: 150px; background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.2rem; position: relative; overflow: hidden;
}
.blog-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(5,5,8,0.75));
}
.blog-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 7px; }
.blog-meta { font-size: 0.68rem; font-family: var(--mono); color: var(--text-3); letter-spacing: 0.07em; }
.blog-tag {
  display: inline-block; background: var(--cyan-dim); color: var(--cyan);
  border: 1px solid rgba(0,229,255,0.18); font-size: 0.63rem;
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
  padding: 2px 8px; border-radius: 6px; width: fit-content;
}
.blog-title   { font-size: 0.95rem; font-weight: 700; line-height: 1.35; }
.blog-excerpt { font-size: 0.82rem; color: var(--text-2); line-height: 1.6; flex: 1; }

/* ═══ STAT STRIP ═══════════════════════════════ */
.stat-strip {
  display: flex; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r2);
  overflow: hidden; margin: 28px 0;
}
.stat-strip-item {
  flex: 1; text-align: center; padding: 22px 14px;
  border-right: 1px solid var(--border);
}
.stat-strip-item:last-child { border-right: none; }
.stat-strip-num {
  font-size: clamp(1.4rem,3vw,2rem); font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-strip-lbl { font-size: 0.68rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }

/* ═══ SAFETY BADGES ════════════════════════════ */
.safety-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.sbadge {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: 99px; padding: 6px 14px;
  font-size: 0.75rem; font-weight: 600;
}
.sbadge-dot { width: 8px; height: 8px; border-radius: 50%; }

/* ═══ RULE LIST ════════════════════════════════ */
.rule-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 28px; }
.rule-item {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 16px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--border);
}
.rule-icon { font-size: 1.1rem; width: 28px; text-align: center; flex-shrink: 0; }
.rule-text { font-size: 0.86rem; font-weight: 500; }
.rule-status {
  margin-left: auto; font-size: 0.65rem;
  font-family: var(--mono); padding: 3px 9px; border-radius: 6px;
}
.rule-status.allowed { background: rgba(0,255,136,0.1); color: var(--green); border: 1px solid rgba(0,255,136,0.2); }
.rule-status.banned  { background: rgba(255,68,102,0.1); color: var(--red);  border: 1px solid rgba(255,68,102,0.2); }

/* ═══ ALERT BOXES ══════════════════════════════ */
.alert-box {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 16px 20px; border-radius: var(--r2); margin-bottom: 18px;
}
.alert-box.warn { background: rgba(255,179,0,0.07); border: 1px solid rgba(255,179,0,0.22); }
.alert-box.info { background: rgba(0,229,255,0.06); border: 1px solid rgba(0,229,255,0.18); }
.alert-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.alert-body h4 { font-size: 0.88rem; font-weight: 700; margin-bottom: 4px; }
.alert-box.warn .alert-body h4 { color: var(--amber); }
.alert-box.info .alert-body h4 { color: var(--cyan); }
.alert-body p  { font-size: 0.82rem; color: var(--text-2); line-height: 1.6; }

/* ═══ TEAM ═════════════════════════════════════ */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr));
  gap: 18px;
}
.team-card {
  text-align: center; padding: 26px 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r2); transition: all var(--tr);
}
.team-card:hover { border-color: var(--cyan); box-shadow: 0 0 28px rgba(0,229,255,0.1); }
.team-avatar {
  width: 66px; height: 66px; border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; margin: 0 auto 12px;
  box-shadow: 0 6px 20px rgba(0,229,255,0.25);
}
.team-name { font-weight: 700; font-size: 0.97rem; }
.team-role { font-size: 0.75rem; color: var(--text-2); font-family: var(--mono); margin-top: 3px; }

/* ═══ CTA BANNER ═══════════════════════════════ */
.cta-banner {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r2); padding: clamp(26px,5vw,46px);
  text-align: center; margin: 44px 0; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(0,229,255,0.07) 0%, transparent 70%);
}
.cta-banner h2 { font-size: clamp(1.3rem,3vw,1.9rem); font-weight: 900; margin-bottom: 9px; position: relative; }
.cta-banner p  { color: var(--text-2); font-size: 0.88rem; margin-bottom: 22px; position: relative; }

/* ═══ BUTTONS ══════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 26px; background: var(--grad);
  border: none; border-radius: 99px; color: #000;
  font-family: var(--font); font-size: 0.88rem; font-weight: 700;
  text-decoration: none; cursor: pointer; position: relative;
  box-shadow: 0 4px 18px rgba(0,229,255,0.28); transition: all var(--tr);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(0,229,255,0.42); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 26px; background: transparent;
  border: 1px solid var(--border2); border-radius: 99px; color: var(--text);
  font-family: var(--font); font-size: 0.88rem; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: all var(--tr);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-dim); }

/* ═══ CODE BLOCK ═══════════════════════════════ */
.code-block {
  background: #0a0a14; border: 1px solid var(--border2);
  border-radius: var(--r); padding: 16px 18px;
  font-family: var(--mono); font-size: 0.77rem; color: #c8d8ff;
  line-height: 1.7; margin: 18px 0; overflow-x: auto;
}
.code-block .cm { color: var(--text-3); }
.code-block .kw { color: var(--cyan); }
.code-block .st { color: #a3e3a3; }

/* ═══ ARTICLE LAYOUT ═══════════════════════════ */
.article-wrap {
  display: grid; grid-template-columns: 1fr 280px;
  gap: 44px; align-items: start;
}
.article-sidebar { position: sticky; top: 80px; }
.toc {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--r2); padding: 20px;
}
.toc h4 {
  font-size: 0.68rem; font-family: var(--mono);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 13px;
}
.toc ol { padding-left: 15px; display: flex; flex-direction: column; gap: 8px; }
.toc a  { color: var(--text-2); text-decoration: none; font-size: 0.81rem; transition: color var(--tr); }
.toc a:hover { color: var(--cyan); }

/* ═══ FOOTER (injected by nav.js) ═════════════ */
.site-footer {
  position: relative; z-index: 1;
  background: rgba(5,5,8,0.96);
  border-top: 1px solid var(--border);
  padding: clamp(36px,5vw,64px) clamp(20px,5vw,56px) 22px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr repeat(3,1fr);
  gap: 36px; max-width: 1050px; margin: 0 auto;
}
.footer-brand p {
  font-size: 0.82rem; color: var(--text-2); margin-top: 10px;
  line-height: 1.7; max-width: 230px;
}
.footer-col h4 {
  font-size: 0.72rem; font-family: var(--mono);
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-3); margin-bottom: 12px;
}
.footer-col ul  { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a   { color: var(--text-2); text-decoration: none; font-size: 0.83rem; transition: color var(--tr); }
.footer-col a:hover { color: var(--cyan); }
.footer-social  { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.footer-social a {
  color: var(--text-3); font-size: 0.72rem; font-family: var(--mono);
  text-decoration: none; transition: color var(--tr);
}
.footer-social a:hover { color: var(--cyan); }
.footer-bottom {
  max-width: 1050px; margin: 36px auto 0;
  padding-top: 18px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 9px;
  font-size: 0.72rem; color: var(--text-3); font-family: var(--mono);
}
.footer-bottom a { color: var(--text-3); text-decoration: none; transition: color var(--tr); }
.footer-bottom a:hover { color: var(--cyan); }

/* ═══ RESPONSIVE ═══════════════════════════════ */
@media (max-width: 900px) {
  .article-wrap { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-strip  { flex-wrap: wrap; }
  .stat-strip-item { min-width: 50%; border-bottom: 1px solid var(--border); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .safety-badges { flex-direction: column; }
  .stat-strip-item { min-width: 100%; }
}
