/* Smyčka — chapter cards (layout aligned with patron cards) */

.smycka-section--chapters {
  max-width: var(--headline-max);
}

.smycka-chapters__intro {
  margin: 0 0 2rem;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--color-ink-muted);
  text-align: center;
}

.smycka-chapters__list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.smycka-book-card {
  margin: 0 0 1.75rem;
  padding: 1.35rem 1.35rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: linear-gradient(
    180deg,
    rgba(140, 60, 200, 0.06) 0%,
    rgba(248, 246, 241, 0) 90%
  );
  box-shadow: var(--shadow-soft);
}

.smycka-book-card__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3vw, 1.55rem);
  font-weight: 600;
  color: var(--color-ink);
}

.smycka-book-card__summary {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-ink-muted);
}

.smycka-chapter__name-link {
  color: inherit;
  text-decoration: none;
}

.smycka-chapter__name-link:hover,
.smycka-chapter__name-link:focus {
  color: var(--color-accent);
  text-decoration: underline;
}

.smycka-chapter__link--html .smycka-chapter__web-icon {
  color: #fff;
  background: linear-gradient(145deg, #b85cf0 0%, #7a3fa8 100%);
}

.smycka-chapter__link--html:hover .smycka-chapter__web-icon,
.smycka-chapter__link--html:focus .smycka-chapter__web-icon {
  box-shadow: 0 0 8px rgba(140, 60, 200, 0.4);
}

.smycka-chapter__web-icon {
  width: 0.95rem;
  min-width: 0.95rem;
  padding: 0;
}

.smycka-chapter__web-icon svg {
  display: block;
  width: 0.62rem;
  height: 0.62rem;
}

.smycka-chapter__file-icon--epub {
  color: #fff;
  background: #5b4d9a;
}

.smycka-chapter {
  scroll-margin-top: 5.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
  padding: 1.35rem 1.35rem 1.5rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(
    180deg,
    rgba(240, 236, 228, 0.65) 0%,
    rgba(248, 246, 241, 0) 85%
  );
}

.smycka-chapter__badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 6rem;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(139, 58, 58, 0.25);
  box-shadow: var(--shadow-soft);
  background: rgba(255, 255, 255, 0.7);
}

.smycka-chapter__badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.smycka-chapter__symbol {
  --chapter-symbol-glow: color-mix(in srgb, var(--chapter-symbol-color) 55%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.smycka-chapter__symbol-glyph {
  font-family: var(--font-sans);
  font-size: 2.65rem;
  font-weight: 300;
  line-height: 1;
  color: var(--chapter-symbol-color);
  text-shadow:
    0 0 8px var(--chapter-symbol-color),
    0 0 18px var(--chapter-symbol-glow);
  user-select: none;
}

.smycka-chapter__number {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1;
  color: var(--color-accent);
}

.smycka-chapter__main {
  flex: 1;
  min-width: 0;
}

.smycka-chapter__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.35rem;
}

.smycka-chapter__name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--color-ink);
}

.smycka-chapter__label {
  flex-shrink: 0;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-ink-muted);
  text-align: right;
  white-space: nowrap;
}

.smycka-chapter__anchor {
  color: inherit;
  text-decoration: none;
}

.smycka-chapter__anchor:hover,
.smycka-chapter__anchor:focus {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.smycka-chapter__summary {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-ink-muted);
}

.smycka-chapter__link-groups {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0.75rem 0 0;
}

.smycka-chapter__link-group {
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.45);
}

.smycka-chapter__link-group-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.smycka-chapter__coming-soon {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--color-ink-muted);
  font-style: italic;
}

.smycka-chapter__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.entry-content .smycka-chapter__links,
.smycka-chapter .smycka-chapter__links {
  margin-left: 0;
  padding-left: 0;
}

.smycka-chapter__links li {
  margin: 0;
  padding: 0;
}

.smycka-chapter__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-sizing: border-box;
  min-height: 1.65rem;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1;
  color: var(--color-ink);
  text-decoration: none;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 1px 2px rgba(30, 28, 24, 0.04);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.smycka-chapter__link i {
  font-size: 0.95rem;
}

.smycka-chapter__link--doc i {
  color: #4285f4;
}

.smycka-chapter__link--spotify i {
  color: #1db954;
}

.smycka-chapter__link--youtube i {
  color: #ff0000;
}

.smycka-chapter__link--apple i {
  color: #a2aaad;
}

.smycka-chapter__file-icon,
.smycka-chapter__seznam-icon,
.smycka-chapter__web-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 0.95rem;
  height: 0.95rem;
  line-height: 1;
  border-radius: 2px;
  box-sizing: border-box;
}

.smycka-chapter__file-icon,
.smycka-chapter__seznam-icon {
  padding: 0 0.15rem;
  font-family: var(--font-sans);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.smycka-chapter__file-icon--pdf {
  color: #fff;
  background: #d0442a;
}

.smycka-chapter__file-icon--mobi {
  color: #fff;
  background: #f6993f;
}

.smycka-chapter__seznam-icon {
  width: 0.95rem;
  padding: 0;
  font-size: 0.62rem;
  color: #fff;
  background: #c8102e;
}

.smycka-chapter__link--seznam:hover .smycka-chapter__seznam-icon,
.smycka-chapter__link--seznam:focus .smycka-chapter__seznam-icon {
  background: #a30d25;
}

.smycka-chapter__link:hover,
.smycka-chapter__link:focus {
  background: #fff;
  border-color: var(--color-accent-soft);
  box-shadow: 0 2px 8px rgba(30, 28, 24, 0.08);
}

/* Teaser — upcoming chapter */
.smycka-chapter--teaser {
  border-style: dashed;
  border-color: rgba(184, 149, 108, 0.55);
  background: linear-gradient(
    180deg,
    rgba(240, 236, 228, 0.35) 0%,
    rgba(248, 246, 241, 0) 90%
  );
}

.smycka-chapter__badge--teaser {
  border-style: dashed;
  border-color: rgba(184, 149, 108, 0.5);
  background:
    radial-gradient(circle at 30% 25%, rgba(184, 149, 108, 0.18), transparent 55%),
    rgba(240, 236, 228, 0.85);
}

.smycka-chapter__teaser-mark {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1;
  color: rgba(92, 86, 77, 0.55);
}

.smycka-chapter--teaser .smycka-chapter__name {
  color: var(--color-ink-muted);
  font-style: italic;
  font-weight: 400;
}

@media (max-width: 767px) {
  .smycka-chapter {
    padding: 1rem;
  }

  .smycka-chapter__badge {
    width: 5rem;
    height: 5rem;
  }

  .smycka-chapter__number {
    font-size: 1.85rem;
  }

  .smycka-chapter__title-row {
    flex-wrap: wrap;
  }

  .smycka-chapter__label {
    white-space: normal;
  }
}
