/* ============================================================
   Sidebar Author Book Box (Inner Sidebar — Slot 1)
   ============================================================
   Kontextuelle Buch-Empfehlung in der inneren Sidebar.
   Variante C: "WENN DIR DIESES REZEPT GEFÄLLT …"
                "Unser Backbuch hat über 100 davon"

   Design-Sprache: passt zu recipe-template.css
   (terracotta on cream, Perfectly Nineties Serif fuer Headlines).

   Wird via functions.php enqueued auf single + archive + page-hub.
   ============================================================ */

.wm-sidebar-book {
  /* Karten-Look wie die anderen Sidebar-Widgets */
  background: var(--surface, #ffffff);
  border: 1px solid var(--bg-alt, #f3ecdf);
  border-radius: 14px;
  padding: 22px 20px 20px;
  margin-bottom: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  font-family: var(--font-sans, "Gilroy", system-ui, sans-serif);
  color: var(--ink, #1a1a1a);
}

/* ---------- Eyebrow + Hook (Variante C) ---------- */
.wm-sidebar-book__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, #c2410c);
  margin: 0 0 6px;
  line-height: 1.3;
}

.wm-sidebar-book__hook {
  font-family: var(--font-serif, "Perfectly Nineties", Georgia, serif);
  font-size: 19px;
  line-height: 1.25;
  font-weight: 500;
  color: var(--ink, #1a1a1a);
  margin: 0 0 16px;
}

/* ---------- Cover + Buch-Block ---------- */
.wm-sidebar-book__link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.18s ease;
}

.wm-sidebar-book__link:hover {
  transform: translateY(-2px);
}

.wm-sidebar-book__cover {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  margin-bottom: 14px;
}

.wm-sidebar-book__body { padding: 0; }

.wm-sidebar-book__title {
  font-family: var(--font-serif, "Perfectly Nineties", Georgia, serif);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--ink, #1a1a1a);
  margin: 0 0 4px;
}

.wm-sidebar-book__subtitle {
  font-size: 13px;
  line-height: 1.4;
  color: #555;
  margin: 0 0 10px;
}

/* ---------- Rating ---------- */
.wm-sidebar-book__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin: 0 0 14px;
}

.wm-sidebar-book__stars {
  color: #f5a623;
  letter-spacing: 0.02em;
  font-size: 14px;
}

.wm-sidebar-book__rating-value {
  font-weight: 600;
  color: var(--ink, #1a1a1a);
}

.wm-sidebar-book__reviews {
  color: #777;
  font-size: 12px;
}

/* ---------- CTA-Button ---------- */
.wm-sidebar-book__cta {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: var(--accent, #c2410c);
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.18s ease, transform 0.18s ease;
}

.wm-sidebar-book__cta:hover,
.wm-sidebar-book__cta:focus-visible {
  background: #8a3f2d;
  color: #ffffff;
  transform: translateY(-1px);
}

.wm-sidebar-book__cta span { display: inline-block; transition: transform 0.18s ease; }
.wm-sidebar-book__cta:hover span { transform: translateX(3px); }

/* ---------- Preis-Anker ---------- */
.wm-sidebar-book__price {
  font-size: 12px;
  color: #777;
  text-align: center;
  margin: 10px 0 0;
  line-height: 1.4;
}

/* ---------- Affiliate-Disclosure (Pflicht laut Amazon-Partner-AGB) ---------- */
.wm-sidebar-book__disclosure {
  font-size: 10px;
  line-height: 1.35;
  color: #999;
  text-align: center;
  margin: 8px 0 0;
  font-style: italic;
}

/* ============================================================
   Mobile (< 992px): Sidebar wird gestackt unter den Content.
   Da der innere Sidebar-Container auf Mobile eh weggeklappt wird
   (siehe recipe-template.css), brauchen wir hier nur kleine Tweaks
   fuer den Fall dass die Box auf engem Viewport landet.
   ============================================================ */
@media (max-width: 600px) {
  .wm-sidebar-book {
    padding: 18px 16px 16px;
    margin-bottom: 20px;
  }
  .wm-sidebar-book__hook { font-size: 17px; }
  .wm-sidebar-book__title { font-size: 16px; }
}

/* ============================================================
   Print: Buch-Box ausblenden (Druck-View braucht keine Werbung)
   ============================================================ */
@media print {
  .wm-sidebar-book { display: none; }
}
