/* ============================================================
   Linktree-style profile pages for Kulini.ch
   Loaded AFTER ../styles.css — reuses the brand tokens (--ink,
   --cream, etc.) and adds a dark, mobile-first "link in bio" layout.
   ============================================================ */

body.lt {
  background: var(--ink);
}

.lt-page {
  position: relative;
  min-height: 100vh;
  background: var(--ink);
  color: var(--cream-on-dark);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Subtle hero-style texture + glow behind everything */
.lt-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(240, 234, 220, 0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.lt-page::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(240, 234, 220, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 234, 220, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, black 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, black 25%, transparent 80%);
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}

/* ------- Top bar (slim, ties page to the brand) ------- */
.lt-topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  padding: 22px 24px 0;
}

.lt-topbar .logo { color: var(--cream); font-size: 1.05rem; }
.lt-topbar .logo:hover { color: var(--cream); }
.lt-topbar .logo-dot { color: var(--cream-on-dark-muted); }
.lt-topbar .logo-mark-img { border-radius: 50%; }

/* ------- Main column ------- */
.lt-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 40px 24px 64px;
  flex: 1 0 auto;
  text-align: center;
}

/* ------- Avatar ------- */
.lt-avatar {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  margin: 0 auto 22px;
  overflow: hidden;
  background: linear-gradient(155deg, var(--ink-3), var(--ink-2));
  border: 1px solid rgba(240, 234, 220, 0.2);
  box-shadow:
    0 0 0 5px rgba(240, 234, 220, 0.05),
    0 20px 50px -18px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lt-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lt-avatar .lt-monogram {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 3.1rem;
  color: var(--cream);
  letter-spacing: -0.02em;
  line-height: 1;
  user-select: none;
}

/* ------- Identity ------- */
.lt-name {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.lt-verified {
  width: 19px;
  height: 19px;
  color: var(--ink);
  background: var(--cream);
  border-radius: 50%;
  padding: 3px;
  flex-shrink: 0;
}
.lt-role {
  margin-top: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-on-dark-muted);
}
.lt-bio {
  margin: 16px auto 0;
  max-width: 420px;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--cream-on-dark);
}

/* ------- Social row ------- */
.lt-socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 4px;
}
.lt-social {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(240, 234, 220, 0.06);
  border: 1px solid rgba(240, 234, 220, 0.16);
  color: var(--cream-on-dark);
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.lt-social:hover {
  color: var(--cream);
  background: rgba(240, 234, 220, 0.12);
  border-color: rgba(240, 234, 220, 0.45);
  transform: translateY(-2px);
}
.lt-social svg { width: 19px; height: 19px; display: block; }

/* ------- Section label ------- */
.lt-section-label {
  margin: 36px 0 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-on-dark-muted);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lt-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(240, 234, 220, 0.12);
}

/* ------- Link buttons ------- */
.lt-links {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 28px;
}
.lt-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 17px 18px;
  border-radius: 15px;
  background: rgba(240, 234, 220, 0.06);
  border: 1px solid rgba(240, 234, 220, 0.16);
  color: var(--cream);
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.lt-link:hover {
  color: var(--cream);
  background: rgba(240, 234, 220, 0.11);
  border-color: rgba(240, 234, 220, 0.42);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.8);
}
.lt-link-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(240, 234, 220, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
}
.lt-link-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.lt-link-body { flex: 1; min-width: 0; }
.lt-link-title { display: block; line-height: 1.25; }
.lt-link-sub {
  display: block;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--cream-on-dark-muted);
  margin-top: 2px;
}
.lt-link-chevron { flex-shrink: 0; color: var(--cream-on-dark-muted); transition: transform 0.2s ease; }
.lt-link:hover .lt-link-chevron { transform: translateX(3px); color: var(--cream); }
.lt-link-chevron svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Accent / support button (PayPal, ministry) */
.lt-link--accent {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
}
.lt-link--accent .lt-link-icon { background: rgba(14, 15, 19, 0.08); color: var(--ink); }
.lt-link--accent .lt-link-sub { color: var(--ink-muted); }
.lt-link--accent .lt-link-chevron { color: var(--ink-muted); }
.lt-link--accent:hover {
  color: var(--ink);
  background: var(--cream-soft);
  border-color: var(--cream-soft);
}
.lt-link--accent:hover .lt-link-chevron { color: var(--ink); }

/* ------- Language selector (globe) ------- */
.lt-lang { position: relative; }
.lt-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(240, 234, 220, 0.06);
  border: 1px solid rgba(240, 234, 220, 0.18);
  color: var(--cream);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.lt-lang-btn:hover { background: rgba(240, 234, 220, 0.12); border-color: rgba(240, 234, 220, 0.45); }
.lt-lang-btn svg.globe { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.lt-lang-btn .lt-lang-current { letter-spacing: 0.04em; }
.lt-lang-btn .caret { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.2; opacity: 0.7; transition: transform 0.2s ease; }
.lt-lang.open .caret { transform: rotate(180deg); }

.lt-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 188px;
  background: #16171d;
  border: 1px solid rgba(240, 234, 220, 0.16);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.8);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.lt-lang.open .lt-lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lt-lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  background: transparent;
  border: none;
  color: var(--cream-on-dark);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lt-lang-option:hover { background: rgba(240, 234, 220, 0.08); color: var(--cream); }
.lt-lang-option .flag {
  flex-shrink: 0;
  width: 30px;
  padding: 3px 0;
  text-align: center;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 6px;
  background: rgba(240, 234, 220, 0.1);
  border: 1px solid rgba(240, 234, 220, 0.18);
  color: var(--cream-on-dark);
}
.lt-lang-option[aria-selected="true"] .flag { background: rgba(240, 234, 220, 0.2); color: var(--cream); }
.lt-lang-option[aria-selected="true"] { background: rgba(240, 234, 220, 0.1); color: var(--cream); }
.lt-lang-option[aria-selected="true"] .native { color: var(--cream); }

/* ------- Audio player ------- */
.lt-audio {
  margin-top: 16px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(240, 234, 220, 0.05);
  border: 1px solid rgba(240, 234, 220, 0.16);
  text-align: left;
}
.lt-audio-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.lt-audio-head .lt-audio-mark {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: var(--cream); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.lt-audio-head .lt-audio-mark svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.lt-audio-head h3 { color: var(--cream); font-size: 1.06rem; letter-spacing: -0.02em; }
.lt-audio-head p { color: var(--cream-on-dark-muted); font-size: 0.84rem; margin-top: 1px; }

/* Pill tab groups (book + narration language) */
.lt-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.lt-tabs[data-role] { background: rgba(14, 15, 19, 0.35); padding: 5px; border-radius: 12px; }
.lt-tab {
  flex: 1;
  min-width: max-content;
  padding: 9px 14px;
  border-radius: 9px;
  background: transparent;
  border: none;
  color: var(--cream-on-dark-muted);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}
.lt-tab:hover { color: var(--cream); }
.lt-tab[aria-selected="true"] {
  background: rgba(240, 234, 220, 0.14);
  color: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(240, 234, 220, 0.18);
}
.lt-tabs-label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cream-on-dark-muted); margin: 4px 2px 6px;
}

/* Transport */
.lt-audio-transport {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(240, 234, 220, 0.1);
}
.lt-play {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--cream); color: var(--ink);
  border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.14s ease, background 0.2s ease;
}
.lt-play:hover:not(:disabled) { transform: scale(1.05); background: var(--cream-soft); }
.lt-play:disabled { opacity: 0.4; cursor: not-allowed; }
.lt-play svg { width: 22px; height: 22px; fill: currentColor; }
.lt-play .icon-pause { display: none; }
.lt-play.playing .icon-play { display: none; }
.lt-play.playing .icon-pause { display: block; }

.lt-audio-meta { flex: 1; min-width: 0; }
.lt-audio-now {
  font-size: 0.9rem; font-weight: 600; color: var(--cream);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lt-progress {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 5px; margin-top: 9px;
  border-radius: 999px;
  background: rgba(240, 234, 220, 0.18);
  cursor: pointer;
}
.lt-progress::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--cream); border: none; cursor: pointer;
  box-shadow: 0 0 0 4px rgba(240, 234, 220, 0.15);
}
.lt-progress::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--cream); border: none; cursor: pointer;
}
.lt-progress:disabled { opacity: 0.5; cursor: not-allowed; }
.lt-audio-times { display: flex; justify-content: space-between; font-size: 0.74rem; color: var(--cream-on-dark-muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.lt-speed {
  flex-shrink: 0;
  min-width: 46px;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(240, 234, 220, 0.07);
  border: 1px solid rgba(240, 234, 220, 0.16);
  color: var(--cream-on-dark);
  font-family: inherit; font-weight: 600; font-size: 0.8rem;
  cursor: pointer; font-variant-numeric: tabular-nums;
  transition: background 0.18s ease;
}
.lt-speed:hover { background: rgba(240, 234, 220, 0.13); color: var(--cream); }

.lt-audio-soon {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--cream-on-dark-muted);
  display: none;
  align-items: center;
  gap: 8px;
}
.lt-audio.is-soon .lt-audio-soon { display: flex; }
.lt-audio-soon .dot { width: 7px; height: 7px; border-radius: 50%; background: #d8b24a; flex-shrink: 0; }

/* ------- Book download cards ------- */
.lt-books { display: flex; flex-direction: column; gap: 13px; margin-top: 28px; }
.lt-book {
  padding: 18px;
  border-radius: 16px;
  background: rgba(240, 234, 220, 0.05);
  border: 1px solid rgba(240, 234, 220, 0.16);
  text-align: left;
}
.lt-book-top { display: flex; align-items: flex-start; gap: 14px; }
.lt-book-cover {
  width: 52px; height: 68px; flex-shrink: 0;
  border-radius: 6px;
  background: linear-gradient(150deg, var(--ink-3), var(--ink-2));
  border: 1px solid rgba(240, 234, 220, 0.18);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--cream-on-dark-muted);
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.8);
}
.lt-book-cover svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.lt-book-info { flex: 1; min-width: 0; }
.lt-book-info h4 { color: var(--cream); font-size: 1.05rem; letter-spacing: -0.02em; margin-bottom: 3px; }
.lt-book-info p { color: var(--cream-on-dark-muted); font-size: 0.85rem; line-height: 1.45; }
.lt-editions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lt-edition {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(240, 234, 220, 0.07);
  border: 1px solid rgba(240, 234, 220, 0.16);
  color: var(--cream);
  font-size: 0.82rem; font-weight: 600;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}
.lt-edition:hover { background: rgba(240, 234, 220, 0.13); border-color: rgba(240, 234, 220, 0.4); color: var(--cream); transform: translateY(-1px); }
.lt-edition svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lt-edition--soon {
  color: var(--cream-on-dark-muted);
  cursor: default;
  border-style: dashed;
}
.lt-edition--soon:hover { background: rgba(240, 234, 220, 0.07); border-color: rgba(240, 234, 220, 0.16); transform: none; }

/* ------- Footer ------- */
.lt-footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  text-align: center;
  padding: 28px 24px 40px;
  font-size: 0.82rem;
  color: var(--cream-on-dark-muted);
}
.lt-footer a { color: var(--cream-on-dark); font-weight: 600; }
.lt-footer a:hover { color: var(--cream); }
.lt-footer .lt-footer-mark { margin-bottom: 6px; opacity: 0.8; }

/* ------- Hidden until JS sets language (avoid FOUC of swaps) ------- */
[hidden] { display: none !important; }

/* ------- Responsive ------- */
@media (max-width: 480px) {
  .lt-wrap { padding: 32px 18px 56px; }
  .lt-topbar { padding: 18px 18px 0; }
  .lt-name { font-size: 1.5rem; }
  .lt-avatar { width: 104px; height: 104px; }
  .lt-link { padding: 15px 16px; gap: 12px; }
  .lt-audio, .lt-book { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .lt-link, .lt-social, .lt-edition, .lt-play, .lt-lang-menu, .lt-link-chevron { transition: none; }
  .lt-page::before, .lt-page::after { display: none; }
}
