/* ============================================================
   ROOT + THEME SWITCH
   ============================================================ */

:root {
  color-scheme: light dark;

  --sans: system-ui, -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --mono: "Fira Code", monospace;

  --accent: #ffd400;
  --accent-soft: rgba(255, 212, 0, 0.15);

  --channel-yellow: #ffd400;
  --channel-orange: #ff8a00;
  --channel-green:  #00c853;
  --channel-blue:   #2979ff;
  --channel-pink:   #ff00c8;
}

/* LIGHT THEME */
:root[data-theme="light"] {
  --bg: #f7f7f9;
  --bg-alt: #ffffff;
  --fg: #1a1a1a;
  --muted: #555;
  --border: #d4d4d8;
  --footer-bg: #e9e9ef;
  --footer-fg: #333;
  --shadow: rgba(0,0,0,0.06);
}

/* DARK THEME */
:root[data-theme="dark"] {
  --bg: #0a0b0f;
  --bg-alt: #12141b;
  --fg: #f5f5f5;
  --muted: #9ca0ad;
  --border: #2a2d3a;
  --footer-bg: #0d1117;
  --footer-fg: #c9d1d9;
  --shadow: rgba(0,0,0,0.22);
}

/* Theme Switch Button */
.theme-switch {
  position: fixed;
  top: 18px;
  right: 18px;
  background: var(--accent);
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 50px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  gap: 6px;
  align-items: center;
  box-shadow: 0 0 12px rgba(255,212,0,0.45);
  z-index: 999;
}

.theme-switch:hover {
  background: #ffe27a;
  box-shadow: 0 0 22px rgba(255,212,0,0.75);
}

/* ============================================================
   BASE
   ============================================================ */

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.6;
}

.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

/* ============================================================
   TYPOGRAFIE
   ============================================================ */

h1, h2, h3, h4 {
  font-weight: 680;
  letter-spacing: -0.015em;
  margin: 0 0 0.6rem;
}

h1 { font-size: 2rem; line-height: 1.25; }
h2 { font-size: 1.45rem; line-height: 1.3; }
h3 { font-size: 1.15rem; line-height: 1.3; }

p, li, label {
  font-size: 1rem;
  line-height: 1.55;
}

.section-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.section-sub {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem 0;
}

.badge {
  background: var(--accent-soft);
  color: var(--fg);
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 680;
  border: 1px solid rgba(255,212,0,0.35);
}

.hero h1 {
  margin: 0.4rem 0 1rem;
}

.highlight {
  color: var(--accent);
}

.hero-sub {
  color: var(--muted);
  max-width: 480px;
}

.hero-pills {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.pill {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.pill--accent {
  background: var(--accent-soft);
  border-color: rgba(255,212,0,0.45);
}

/* ============================================================
   HERO CARD
   ============================================================ */

.hero-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 14px var(--shadow);
  width: 320px;
}

.hero-card-inner {
  padding: 1.4rem;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.hero-card-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.hero-card-badge {
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  color: #000;
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px var(--shadow);
}

/* ============================================================
   FLOATING LABELS
   ============================================================ */

.form-field {
  position: relative;
  margin-bottom: 22px;
}

.form-field input {
  width: 100%;
  padding: 14px 12px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 1rem;
  color: var(--fg);
  transition: border-color 0.2s, background 0.2s;
}

.form-field label {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.95rem;
  color: var(--muted);
  pointer-events: none;
  transition: all 0.18s ease;
  background: transparent;
}

.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label {
  top: -8px;
  left: 10px;
  font-size: 0.75rem;
  padding: 0 4px;
  background: var(--bg);
  color: var(--accent);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary {
  background: var(--accent);
  color: #000;
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255,212,0,0.45);
}

.btn-primary:hover {
  background: #ffe27a;
  box-shadow: 0 0 22px rgba(255,212,0,0.75);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */

.back-top-wrapper {
  width: 100%;
  max-width: 680px;
  margin: 0 auto 12px;
}

.btn-back-top {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-back-top:hover {
  background: var(--bg);
  border-color: var(--accent);
  color: var(--fg);
}

.arrow-right {
  font-size: 1.4rem;
  font-weight: 600;
  margin-left: 0.4rem;
  color: var(--accent);
}

/* ============================================================
   LISTS
   ============================================================ */

.list {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0 1rem;
}

.list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.list-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.list-bullet--accent {
  background: var(--accent);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  font-size: 14px;
  line-height: 1.5;
}

/* ============================================================
   MOBILE TYPO
   ============================================================ */

@media (max-width: 680px) {

  body {
    font-size: 15px;
    line-height: 1.55;
  }

  h1 {
    font-size: 1.55rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .hero {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-card {
    width: 100%;
  }

  .pill, .pill--accent {
    font-size: 0.85rem;
    padding: 5px 10px;
  }

  .btn-primary {
    width: 100%;
    padding: 14px 20px;
    font-size: 1.05rem;
  }
}
