
body {
  background: var(--bg);
  color: var(--text);
  margin: 0;
}

.book-detail {
  max-width: 920px;
  margin: auto;
  padding: clamp(20px, 5vw, 64px);
}

.book-breadcrumb {
  margin: 0 0 28px;
}

/* Az alsó link ugyanolyan távolságra van az ismertető dobozától, mint a felső. */
.book-breadcrumb-bottom {
  margin: 28px 0 0;
}

.book-breadcrumb a,
.book-prose a {
  color: var(--accent);
}

.book-detail article {
  padding: clamp(20px, 4vw, 40px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.book-detail-head {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-bottom: 34px;
}

.book-detail-cover-wrap {
  position: relative;
  flex: none;
  width: 150px;
  max-width: 35%;
  border-radius: 3px 6px 6px 3px;
  transform: perspective(1000px) rotateY(-16deg) rotateX(1.5deg);
  transform-style: preserve-3d;
  transition: transform .18s ease;
}

.book-detail-cover-wrap:hover {
  transform: perspective(1000px) rotateY(-12deg) rotateX(1deg) translateY(-2px);
}

.book-detail-cover-wrap::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: -10px;
  width: 10px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.08) 18%, rgba(0,0,0,.18) 70%, rgba(0,0,0,.30));
  transform: rotateY(-90deg);
  transform-origin: right center;
}

.book-detail-cover-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, .05) 3%, rgba(255, 255, 255, .16) 5%, transparent 10%),
    linear-gradient(160deg, rgba(255, 255, 255, .14), transparent 40%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
  pointer-events: none;
  z-index: 1;
}

.book-detail-cover {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  height: auto;
  object-fit: cover;
  border-radius: 3px 6px 6px 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .18), 0 12px 22px -6px rgba(0, 0, 0, .35);
}

.book-detail-head h1 {
  font-size: clamp(28px, 5vw, 44px);
  margin: 0 0 12px;
}

.book-detail-head p {
  color: var(--muted);
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.book-read {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-contrast);
  text-decoration: none;
  font-weight: 650;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.book-read:hover,
.book-read:focus-visible {
  background: var(--accent-hover);
  color: var(--accent-contrast);
  box-shadow: 0 0 0 3px var(--accent-soft);
  transform: translateY(-1px);
}

/* Másodlagos gomb: körvonalas, a fő gomb mellett */
.book-read-secondary {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.book-read-secondary:hover,
.book-read-secondary:focus-visible {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 3px var(--accent-soft);
}

.book-prose {
  line-height: 1.85;
  font-size: 1.06rem;
}

.book-prose h2,
.book-prose h3,
.book-prose h4 {
  line-height: 1.3;
  margin: 1.5em 0 .5em;
}

.book-prose p {
  margin: 0 0 1.2em;
}

.book-prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 18px;
  margin: 18px 0;
  background: var(--accent-soft);
}

.book-prose li {
  margin-bottom: .35em;
}

.book-seo-nav {
  margin: 35px auto 10px;
  max-width: 960px;
  padding: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.book-seo-nav h2 {
  font-size: 1.05rem;
}

.book-seo-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 0;
  list-style: none;
}

.book-seo-nav a {
  color: var(--accent);
}

@media (max-width: 550px) {
  .book-detail-head {
    align-items: flex-start;
    gap: 15px;
  }

  .book-detail-cover-wrap {
    width: 100px;
    max-width: 100px;
    transform: perspective(900px) rotateY(-12deg);
  }

  .book-detail article {
    padding: 18px;
  }
}


/* Különleges fülszöveg: :::blurb ... ::: */
.book-blurb {
  position: relative;
  margin: 0 0 2.5rem;
  padding: clamp(27px, 4vw, 42px) clamp(23px, 5vw, 50px);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: 4px 16px 16px 4px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 13%, var(--surface)),
    color-mix(in srgb, var(--accent) 4%, var(--surface-2)));
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.book-blurb::before {
  content: "“";
  position: absolute;
  top: 4px;
  left: 14px;
  font-family: Georgia, "Noto Serif", serif;
  font-size: 82px;
  line-height: 1;
  color: var(--accent);
  opacity: .27;
  pointer-events: none;
}

.book-blurb-content {
  position: relative;
  z-index: 1;
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  font-style: italic;
  line-height: 1.95;
  color: var(--text);
}

.book-blurb-content p { margin: 0 0 1em; }
.book-blurb-content p:last-child { margin-bottom: 0; }
.book-blurb-content strong { color: var(--accent); }
.book-blurb-content em { font-style: italic; }

@media (max-width: 550px) {
  .book-blurb { padding: 25px 22px; }
  .book-blurb::before { font-size: 68px; top: 4px; left: 10px; }
}
