/* ================= CONTENT PAGES (marketingový web) ================= */
/* Sdílí barevný systém a proměnné se styles.css (stejný den/noc přepínač
   i cyklus akcentních barev) — tenhle soubor jen doplňuje třídy specifické
   pro topbar/nav/patičku/FAQ z inc/site-header.php a inc/site-footer.php.
   Vzhled (papír/noc paleta + Fraunces/Karla/IBM Plex Mono) je definovaný
   ve styles.css, scoped na body.content-page. */

body.content-page {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
}

/* ── Topbar ───────────────────────────────────────────────────────────── */
.topbar {
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 32px);
  gap: 16px;
}

.site-logo-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo-link .mark {
  width: 28px;
  height: 28px;
  background: url("/favicon.svg") center / contain no-repeat;
  font-size: 0; /* skryje písmeno "B" z markupu, zůstane jen ikona */
  color: transparent;
  flex-shrink: 0;
}
.bc-home {
  font-size: 19px;
  font-weight: 600;
  margin: 0;
  font-family: var(--font-serif);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav-link {
  background: none;
  border: none;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.site-nav-link:hover {
  background: var(--bg-surface-2);
  color: var(--text-primary);
}
.site-nav-link.active {
  color: var(--text-primary);
  background: var(--bg-surface-2);
}
.site-nav-cta {
  color: var(--accent);
}
.site-nav-cta:hover {
  color: var(--accent-light);
  background: var(--bg-surface-2);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.color-cycle,
.theme-toggle {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
}
.color-cycle:hover,
.theme-toggle:hover {
  color: var(--text-primary);
}

/* ── Obsah stránky ────────────────────────────────────────────────────── */
.content-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 32px) 90px;
  min-height: calc(100vh - 300px);
}
.content-wrap h1 {
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1.08;
  margin: 0 0 22px;
}
.content-wrap h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin: 44px 0 16px;
}
.content-wrap h3 {
  font-size: 19px;
  margin: 0 0 8px;
}
.content-wrap p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.content-wrap .lead,
.content-wrap .lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 36px;
  font-weight: 500;
  max-width: 56ch;
}
.content-wrap ul,
.content-wrap ol {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-secondary);
  padding-left: 22px;
}
.content-wrap a {
  color: var(--accent);
}
.content-wrap img {
  max-width: 100%;
  border-radius: 10px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.btn-secondary {
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background: var(--bg-surface-2);
}

/* ── "Sešitá" karta — papírová/noční kartička s tečkovaným okrajem ──────
   Použitá u pricing/tip/faq/note-box/contact-box pro sjednocený vzhled. */
.stitched {
  position: relative;
  border: 1px dashed var(--border-color);
  border-radius: 10px;
  background: var(--bg-surface);
}
.stitched::before,
.stitched::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg-page);
  border: 1px dashed var(--border-color);
  top: 50%;
  transform: translateY(-50%);
}
.stitched::before {
  left: -4px;
}
.stitched::after {
  right: -4px;
}

.marketing-block {
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
}
.broadcast-list-section + .marketing-block {
  border-top: none;
}

.marketing-block h3 {
  font-size: 18px;
  margin: 0 0 8px;
}
.marketing-block p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* ── Kroky "Jak to funguje" (ol.step-list) ───────────────────────────── */
.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.step-list li {
  counter-increment: step;
  position: relative;
  padding: 0 0 28px 46px;
  border-left: 1px solid var(--border-color);
  margin-left: 15px;
}
.step-list li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  left: -25px;
  top: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-color);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 23px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
/*
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: -15px;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-color);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
  */
.step-list h3 {
  font-size: 17px;
  margin: 0 0 6px;
}
.step-list p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px 20px;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.pricing-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.pricing-card .price {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 10px;
}
.pricing-card p:last-child {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0;
}
@media (max-width: 700px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Ceník (price-card + tip-card) ───────────────────────────────────── */
.price-card {
  padding: 32px 28px;
  text-align: center;
  max-width: 320px;
  margin: 24px auto;
}
.price-card .price {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 600;
  color: var(--accent);
  margin: 8px 0;
}
.price-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
  margin: 22px 0 0;
  font-size: 14.5px;
}
.price-card li {
  padding: 7px 0;
  border-top: 1px solid var(--border-color);
}
.price-card li:first-child {
  border-top: none;
}

.tip-card {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 22px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.tip-qr-image {
  flex-shrink: 0;
  width: 170px;
  height: 170px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px;
}
.tip-card__text {
  flex: 1;
  min-width: 180px;
}
.tip-card__text p {
  margin: 0;
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq-item {
  padding: 4px 20px;
  margin-bottom: 10px;
}
.faq-item summary {
  padding: 16px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::before {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 600;
  margin-right: 10px;
}
.faq-item[open] summary::before {
  content: "–";
}
.faq-item p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 15px;
  padding-left: 22px;
}
.faq-item a {
  color: var(--accent);
}

/* ── Kontakt / poznámkové bloky ──────────────────────────────────────── */
.contact-block,
.contact-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  color: var(--text-secondary);
  padding: 20px 22px;
  max-width: 360px;
}
.contact-block a,
.contact-box a {
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
}
.note-box {
  padding: 18px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 32px;
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-color);
  margin-top: 60px;
}
.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px clamp(16px, 4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer-brand {
  font-weight: 600;
  font-family: var(--font-serif);
}
.site-footer-links {
  display: flex;
  gap: 16px;
}
.site-footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
}
.site-footer-links a:hover {
  color: var(--accent);
}
.site-footer-copy {
  color: var(--text-muted);
  font-size: 13px;
}

/* Používá auth-modal.js (skutečná appka) — d-none jako obecný toggle,
   auth-modal__msg pro chybové/úspěšné hlášky v přihlašovacím modálu. */
.d-none {
  display: none;
}
.auth-modal__msg {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.5;
}
.auth-modal__msg--ok {
  background: rgba(75, 107, 78, 0.15);
  color: #3a5a3d;
}
.auth-modal__msg--err {
  background: rgba(168, 86, 46, 0.12);
  color: #a8562e;
}

html[data-theme="dark"] .auth-modal__msg--ok {
  background: rgba(75, 107, 78, 0.35);
  color: #8fd39e;
}
html[data-theme="dark"] .auth-modal__msg--err {
  background: rgba(168, 86, 46, 0.35);
  color: #f0a878;
}

/* Flash zpráva po návratu z e-mailového odkazu (ověření/smazání účtu) —
   viz $_SESSION['flash'] čtený v inc/site-header.php. */
.flash-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1100px;
  margin: 20px auto 0;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14.5px;
  line-height: 1.5;
}
.flash-message--success,
.flash-message--deleted {
  background: rgba(75, 107, 78, 0.15);
  color: #3a5a3d;
}
.flash-message--error {
  background: rgba(168, 86, 46, 0.12);
  color: #a8562e;
}
.flash-message__close {
  background: none;
  border: none;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
}
.flash-message__close:hover {
  opacity: 1;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }
  /* Rozbalené menu je plovoucí panel nad obsahem (neodsouvá stránku),
     vycentrovaný pod lištou, široký jen tak, jak vyžaduje obsah. */
  .topbar-inner {
    position: relative;
    flex-wrap: wrap;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100vw - 32px);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 12px 28px var(--shadow-color);
    z-index: 60;
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav-link {
    text-align: center;
    padding: 10px 22px;
    white-space: nowrap;
  }
}

/* ── Seznam aktivních vysílání (home) ─────────────────────────────────── */

.broadcast-list-section {
  margin: 32px 0 8px;
  padding: 20px 22px;
  background: var(--accent-bg);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  text-align: center;
}
.broadcast-list-intro {
  color: var(--text-secondary);
  margin: 0 auto 14px;
  max-width: 480px;
  font-size: 14.5px;
}
.broadcast-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}
.broadcast-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text-primary);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.broadcast-list-item:hover {
  border-color: var(--accent);
}
.broadcast-list-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--moss, #4b6b4e);
  flex-shrink: 0;
}
.broadcast-list-name {
  flex: 1;
  min-width: 0;
}
.broadcast-list-song {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.broadcast-list-song:empty {
  display: none;
}
.broadcast-list-arrow {
  color: var(--accent);
}
.broadcast-list-empty {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

/* ── Tlačítko "Odpojit" v modálu vysílání (broadcast-viewer.js) ────────── */
.broadcast-disconnect-link {
  background: none;
  border: none;
  padding: 0;
  margin-top: 4px;
  font: inherit;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
}
.broadcast-disconnect-link:hover {
  color: var(--accent);
}
/* Nenápadná informace, že vysílaný text nikdo nezkontroloval (vedle "Odpojit").
   Ověřená píseň nemá nic. */
.broadcast-unverified {
  float: right;
  margin: 4px 0 0 10px;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: help;
}
.broadcast-unverified::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #d9a441;
  vertical-align: middle;
}

/* Oprava specificity — .content-wrap a jinak přebije barvu textu tlačítek */
.content-wrap .btn {
  color: var(--text-primary);
}
.content-wrap .btn-primary {
  color: #fff;
}
.content-wrap .btn-primary:hover {
  color: #fff;
}

/* ── Ilustrace "naskládané kartičky" (landing page) ─────────────────── */

.stack-illustration {
  position: relative;
  height: 280px;
}

.stack-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 200px;
  height: 230px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 10px 24px var(--shadow-color);
  padding: 18px 18px;
}
.stack-card .k {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--accent);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.stack-card .t {
  font-family: var(--font-serif);
  font-size: 17px;
  margin: 0 0 4px;
  color: var(--text-primary);
}
.stack-card .a {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.stack-card .line {
  height: 7px;
  background: var(--bg-surface-3);
  border-radius: 3px;
  margin-bottom: 7px;
}
.stack-card .line.w1 {
  width: 92%;
}
.stack-card .line.w2 {
  width: 70%;
}
.stack-card .line.w3 {
  width: 82%;
}
.sc1 {
  transform: translate(-50%, -50%) rotate(-9deg) translateX(-55px);
  z-index: 1;
}
.sc2 {
  transform: translate(-50%, -50%) rotate(-2deg) translateX(-10px);
  z-index: 2;
}
.sc3 {
  transform: translate(-50%, -50%) rotate(6deg) translateX(35px);
  z-index: 3;
}

/* Střídání kartiček (viz home-songs.js): nová najede zespodu do popředí (.sc-in
   → .sc3), ostatní se posunou dozadu a nejstarší odjede doleva (.sc-out).
   Vstup nemá vodorovný posun navíc, ať stránka na úzkém displeji nezíská
   vodorovný posuvník. */
.stack-card {
  transition:
    transform 1.1s cubic-bezier(0.22, 0.8, 0.3, 1),
    opacity 1.1s ease;
}
.stack-card.sc-in {
  transform: translate(-50%, calc(-50% + 70px)) rotate(12deg) translateX(35px);
  opacity: 0;
  z-index: 4;
}
.stack-card.sc-out {
  transform: translate(-50%, -50%) rotate(-16deg) translateX(-190px);
  opacity: 0;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 8px;
}
@media (max-width: 760px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .stack-illustration {
    order: -1;
  }
}

/* ── Modál vysílání na telefonu: 100 % šířky i výšky ──────────────────────
   Základ (.modal-overlay padding 24px, .preview-modal 95vw/95vh + padding 4px,
   a hlavně .modal-box max-height: 85vh) nechává kolem textu prázdné okraje.
   Na telefonu (úzký displej, nebo telefon na šířku) je zrušíme. 100dvh
   sleduje viditelnou výšku i při zobrazeném/skrytém adresním řádku; 100vh
   je záloha pro starší prohlížeče. */
@media (max-width: 480px), (max-height: 480px) {
  #broadcast-viewer-overlay {
    padding: 0;
  }
  #broadcast-viewer-overlay .preview-modal {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border: none;
    border-radius: 0;
    padding: 0;
  }
  #broadcast-viewer-overlay .stage {
    padding: 8px 8px 6px;
  }
  #broadcast-viewer-overlay .lyrics-wrap {
    margin-top: 10px;
  }
}

/* ── Klikací kartičky na úvodní straně + ukázka písně ve vieweru ──────── */
.stack-card[data-id] {
  cursor: pointer;
}
.stack-card[data-id]:hover {
  border-color: var(--accent);
}
.stack-card[data-id]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.stack-illustration .stack-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.3;
  color: var(--text-muted);
}
.viewer-demo-note {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 4px;
}
.viewer-demo-cta {
  margin-top: 28px;
  padding: 18px 20px 6px;
  border-top: 1px dashed var(--border-color);
  text-align: center;
}
.viewer-demo-cta p {
  margin: 0 0 12px;
  font-size: 14.5px;
  color: var(--text-secondary);
}
