/* ============================================
   PersoShift – Base (Reset, Typography, Layout)
   ============================================ */

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

html { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s, color 0.3s;
}

input[type="checkbox"],
input[type="range"] {
  accent-color: var(--primary);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

h1 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
  color: var(--primary);
  font-weight: 700;
}

h3 {
  text-align: center;
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 600;
}

label {
  display: block;
  margin: 0.6rem 0 0.2rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.label-group { display: flex; align-items: center; gap: 0.35rem; }
.inline-label { display: inline; margin-left: 0.25rem; font-weight: 500; text-transform: none; letter-spacing: normal; font-size: 0.88rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.4rem; align-items: flex-end; }
.row > * { flex: 1; min-width: 130px; }

footer {
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2rem;
  padding: 1.25rem 1rem;
  border-top: 1px solid var(--border);
}
footer a { color: var(--primary); text-decoration: none; }
footer a:hover { color: var(--primary-hover); }
footer p { margin: 0.15rem 0; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* Responsive */
@media (max-width: 600px) {
  .card { padding: 1rem; }
  .row { gap: 0.5rem; }
  .btn-group { flex-direction: column; gap: 0.4rem; }
  .mode-buttons { flex-direction: column; align-items: stretch; }
  .compare-options { gap: 0.4rem; }
  .headline-item { font-size: 0.82rem; }
  .main-tabs { flex-wrap: wrap; }
  .main-tab { font-size: 0.8rem; padding: 0.5rem 0.8rem; }
  .slider-value { min-width: 70px; font-size: 0.88rem; }
  .styled-range { height: 8px; }
  .styled-range::-webkit-slider-thumb { width: 26px; height: 26px; }
}
