/* ============================================================
   Learn Slovak — shared theme overlay
   Brings vocab / grammar / audio-phrasebook pages in line with
   the learn-slovak.html landing: dotted charcoal hero, orange
   accent, Poiret display + Cormorant italic, warm pill CTAs.
   Scoped under body.ls-theme so it never leaks to other pages.
   ============================================================ */

body.ls-theme {
  --ls-ink: #2a2a2a;
  --ls-charcoal: #1a1a1a;
  --ls-brown: #b5704d;   /* warm CTA / links */
  --ls-accent: #e86c2e;  /* orange eyebrow / brand accent */
  --ls-paper: #fafafa;
  --ls-muted: #6b6154;
  background: var(--ls-paper);
}

/* ---------- HERO: dotted modrotlač charcoal ---------- */
body.ls-theme .page-hero,
body.ls-theme .tool-hero {
  background: var(--ls-charcoal) !important;
  position: relative;
  overflow: hidden;
  min-height: auto;
  padding: 60px 40px 64px;
}
/* remove the "Photo: Unsplash" credit that shipped with .page-hero */
body.ls-theme .page-hero::after { content: none !important; }
/* signature dot pattern */
body.ls-theme .page-hero::before,
body.ls-theme .tool-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
}
body.ls-theme .page-hero > *,
body.ls-theme .tool-hero > * { position: relative; z-index: 1; }

body.ls-theme .page-hero__title,
body.ls-theme .tool-hero__title {
  font-family: 'Poiret One', cursive;
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
  margin: 0;
}

/* eyebrow (Montserrat, orange) — injected span in each hero */
body.ls-theme .ls-eyebrow {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ls-accent);
  margin-bottom: 14px;
}

/* hero + section italic subtitle (Cormorant) */
body.ls-theme .ls-hero-sub,
body.ls-theme .tool-hero__subtitle {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.42rem;
  line-height: 1.5;
  color: #d4cfc6;
  max-width: 34rem;
  margin: 14px auto 0;
}

/* back-to-overview pill on the dark hero */
body.ls-theme .ls-back,
body.ls-theme .gr-back,
body.ls-theme .page-hero .btn-pill--outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 10px 24px;
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 999px;
  color: #fff !important;
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
body.ls-theme .ls-back:hover,
body.ls-theme .gr-back:hover,
body.ls-theme .page-hero .btn-pill--outline:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
}

/* ---------- SECTION TITLES / SUBTITLES ---------- */
body.ls-theme .vocab-section__title,
body.ls-theme .tool-section__title {
  font-family: 'Poiret One', cursive;
  font-weight: 800;
  color: var(--ls-charcoal);
  letter-spacing: -.01em;
}
body.ls-theme .vocab-section__subtitle {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ls-muted);
}

/* ---------- WARM PILL CTAs ---------- */
body.ls-theme .vocab-load-more,
body.ls-theme .vocab-play-all-btn,
body.ls-theme .tool-btn:not(.tool-btn--outline) {
  background: var(--ls-brown);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  transition: transform .12s, filter .2s;
}
body.ls-theme .vocab-load-more:hover,
body.ls-theme .vocab-play-all-btn:hover,
body.ls-theme .tool-btn:not(.tool-btn--outline):hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* active filter / group chips → warm brown, orange accent focus */
body.ls-theme .vocab-group-btn.active,
body.ls-theme .vocab-diff-btn.active,
body.ls-theme .vocab-view-btn.active {
  background: var(--ls-brown);
  border-color: var(--ls-brown);
  color: #fff;
}

/* links inside content pick up the warm brown */
body.ls-theme .main a:not(.btn):not(.gr-back):not(.ls-back):not(.footer a) {
  color: var(--ls-brown);
}

/* ============================================================
   TOP NAV — replaces the left sidebar on learning pages so the
   focus stays on the language content (matches learn-slovak).
   ============================================================ */
body.ls-theme .sidebar,
body.ls-theme .hamburger { display: none !important; }
/* reclaim the space the fixed sidebar used to hold */
body.ls-theme .main { margin-left: 0; }

body.ls-theme nav.top {
  background: #fff;
  border-bottom: 1px solid #e5e1d8;
  position: sticky;
  top: 0;
  z-index: 50;
}
body.ls-theme nav.top .wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 60px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: auto;
  white-space: nowrap;
}
body.ls-theme nav.top a {
  font-family: 'Montserrat', sans-serif;
  font-size: .8rem;
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--ls-ink);
}
body.ls-theme nav.top a.brand {
  font-family: 'Poiret One', cursive;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0;
  color: var(--ls-charcoal);
}
body.ls-theme nav.top a.active {
  color: var(--ls-brown);
  border-bottom: 2px solid var(--ls-brown);
  padding-bottom: 2px;
}
body.ls-theme nav.top .nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
body.ls-theme nav.top .sidebar__lang {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 8px;
  margin: 0 0 0 auto;
  padding: 0;
  border: none;
}
body.ls-theme nav.top .sidebar__lang span {
  font-size: 1.15rem;
  cursor: pointer;
  opacity: .55;
  transition: opacity .25s, transform .2s;
  position: relative;
}
body.ls-theme nav.top .sidebar__lang span:hover { opacity: .85; transform: scale(1.12); }
body.ls-theme nav.top .sidebar__lang span.active { opacity: 1; }
body.ls-theme nav.top .sidebar__lang span.active::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ls-accent);
  position: absolute;
  bottom: -4px;
  left: 0;
}
body.ls-theme .nav-burger {
  display: none;
  background: none;
  border: none;
  color: var(--ls-charcoal);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  margin-left: auto;
}

@media (max-width: 860px) {
  body.ls-theme nav.top .wrap { overflow: visible; position: relative; }
  body.ls-theme .nav-burger { display: block; }
  body.ls-theme nav.top .sidebar__lang { margin-left: auto; order: 2; }
  body.ls-theme .nav-burger { order: 3; margin-left: 14px; }
  body.ls-theme nav.top .nav-links {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 60px;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid #e5e1d8;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    padding: 6px 20px;
    z-index: 49;
  }
  body.ls-theme nav.top .nav-links.open { display: flex; }
  body.ls-theme nav.top .nav-links a { padding: 12px 0; border-bottom: 1px solid #f1ede2; }
  body.ls-theme nav.top .nav-links a.active { border-bottom: 1px solid #f1ede2; color: var(--ls-brown); }
}

/* ── Learn Slovak dropdown in the top nav (mirrors sidebar dropdown) ── */
body.ls-theme nav.top .nav-ls-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
body.ls-theme nav.top .nav-ls-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
body.ls-theme nav.top .nav-ls-chevron {
  font-size: 0.7rem;
  color: var(--ls-muted);
  cursor: pointer;
  padding: 6px 4px;
  transition: transform 0.2s ease, color 0.2s ease;
}
body.ls-theme nav.top .nav-ls-dropdown.open .nav-ls-chevron {
  transform: rotate(180deg);
  color: var(--ls-brown);
}
body.ls-theme nav.top .nav-ls-submenu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 190px;
  background: #fff;
  border: 1px solid #e5e1d8;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  padding: 6px;
  z-index: 60;
}
body.ls-theme nav.top .nav-ls-dropdown.open .nav-ls-submenu { display: block; }
body.ls-theme nav.top .nav-ls-submenu .nav-ls-sublink {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
body.ls-theme nav.top .nav-ls-submenu .nav-ls-sublink:hover {
  background: #faf6f0;
  color: var(--ls-brown);
}
body.ls-theme nav.top .nav-ls-submenu .nav-ls-sublink.active {
  color: var(--ls-brown);
  font-weight: 700;
}

@media (max-width: 860px) {
  /* Inside the burger panel the submenu becomes a static indented list */
  body.ls-theme nav.top .nav-ls-dropdown {
    display: block;
    position: static;
  }
  body.ls-theme nav.top .nav-ls-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  body.ls-theme nav.top .nav-ls-chevron { padding: 12px 8px; }
  body.ls-theme nav.top .nav-ls-submenu {
    position: static;
    transform: none;
    min-width: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding: 0 0 4px 16px;
  }
  body.ls-theme nav.top .nav-ls-submenu .nav-ls-sublink {
    padding: 10px 0;
    border-bottom: 1px solid #f1ede2;
    border-radius: 0;
  }
  body.ls-theme nav.top .nav-ls-submenu .nav-ls-sublink:last-child { border-bottom: none; }
}
