/* frontend/settings/index.css */

/* ===================== VARIABLES (match main vibe) ===================== */
:root{
  --brand: #f36b21;
  --brand-deep: #eb4d04;
  --brand-soft: rgba(243,107,33,.12);

  --bg: #f7f7f5;
  --card: #ffffff;
  --line: rgba(15, 23, 42, 0.08);

  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.72);
  --muted2: rgba(15, 23, 42, 0.52);

  --shadow-soft: 0 6px 18px rgba(15, 23, 42, 0.06);

  --r-md: 14px;
  --r-sm: 12px;

  --head-h: 52px;
  --maxw: 1180px;
  --pad: 14px;

  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --brand-font: "Sora", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Dark mode (simple, clean) */
:root[data-theme="dark"]{
  --bg: #0b1220;
  --card: rgba(255,255,255,0.06);
  --line: rgba(255,255,255,0.10);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);
  --muted2: rgba(255,255,255,0.56);
  --shadow-soft: 0 10px 25px rgba(0,0,0,0.35);
}

/* ===================== BASE ===================== */
*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; }

*{ scrollbar-width: none; }
*::-webkit-scrollbar{ width: 0; height: 0; }

/* ===================== HEADER ===================== */
.sHead{
  position: sticky;
  top: 0;
  z-index: 50;

  height: var(--head-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line);

  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;

  padding: 0 10px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.backBtn{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
:root[data-theme="dark"] .backBtn{
  background: rgba(255,255,255,0.06);
}
.backBtn i{ color: var(--text); }

.sTitle{
  text-align: center;
  font-weight: 950;
  letter-spacing: -0.2px;
  font-size: 14.5px;
}
.sSpacer{ width: 44px; }

/* ===================== MAIN ===================== */
.sMain{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px var(--pad) 18px;
}

/* ===================== PANEL (Me-page style list) ===================== */
.panel{
  background: transparent;
}

.tabRow{
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: center;

  padding: 12px 12px;
  border-radius: 14px;

  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);

  margin-bottom: 10px;
}

.tabRow:active{
  transform: translateY(0.5px);
}

.tabIcon{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  border: 1px solid rgba(243,107,33,0.22);
  color: var(--brand-deep);
}

.tabText{
  font-weight: 900;
  letter-spacing: -0.2px;
  font-size: 13px;
  color: var(--text);
}

.tabRight{
  color: rgba(15,23,42,0.55);
}
:root[data-theme="dark"] .tabRight{
  color: rgba(255,255,255,0.55);
}

/* Themes row has no chevron */
.tabRow--noLink{
  cursor: default;
}

/* ===================== THEME TOGGLE ===================== */
.themeToggle{
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.toggleTrack{
  width: 54px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(15,23,42,0.05);
  position: relative;
  display: inline-flex;
  align-items: center;
}
:root[data-theme="dark"] .toggleTrack{
  background: rgba(255,255,255,0.07);
}

.toggleKnob{
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f59e0b;
  position: absolute;
  left: 2px;
  top: 1px;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}
:root[data-theme="dark"] .toggleKnob{
  background: rgba(255,255,255,0.92);
}

/* ON = dark */
.themeToggle.isOn .toggleKnob{
  transform: translateX(24px);
  color: #111827;
}

/* ===================== DOC SECTIONS (placeholders) ===================== */
.doc{
  margin-top: 14px;
  padding: 14px 12px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
}
.doc h2{
  margin: 0;
  font-size: 13.5px;
  font-weight: 950;
  letter-spacing: -0.2px;
}
.doc p{
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 650;
  font-size: 12.5px;
  line-height: 1.35;
}

/* ===================== RESPONSIVE ===================== */
@media (min-width: 520px){
  .sHead{ padding: 0 14px; }
  .sMain{ padding-left: 14px; padding-right: 14px; }
}
