/* ============================================
   BOOKS.CSS — WERSJA CZYSTA I UPORZĄDKOWANA
============================================ */
.seo-text {
  max-width: 700px;
  margin: 60px auto 20px;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  text-align: center;
}


/* ========== LISTA KSIĄŻEK (Ksiazki.html) ========== */

.books-section {
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 20px;
  text-align: center;
  scroll-margin-top: 120px;
}

.books-section h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 50px;
  color: #000;
}

.books-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  justify-items: center;
}

.book-item {
  text-align: center;
  text-decoration: none;
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;

  transition: transform 0.25s ease;
}

.book-item h3 {
  cursor: pointer;
  transition: color 0.3s;
}

/* POPRAWIONY HOVER */
.book-item:hover h3 {
  color: #b68b6a;
}

/* ==================================================
   ODSTĘPY MIĘDZY RECENZJAMI – PATRON & INNE KSIĄŻKI
================================================== */

.book-reviews {
  margin-top: 60px;
}

.review-item {
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.review-item:last-of-type {
  border-bottom: none;
  margin-bottom: 20px;
  padding-bottom: 0;
}

.review-item p {
  margin-bottom: 16px;
  line-height: 1.6;
}

/* Rok — nie pokazujemy na liście książek */
.books-section .book-year {
  display: none;
}

/* ========== OKŁADKI — efekt Nesbø ========== */
.book-cover-wrapper {
  position: relative;
  width: 100%;
  max-width: 280px;

  border-radius: 6px;
  overflow: hidden;

  box-shadow: 
    0 8px 18px rgba(0,0,0,0.14),
    0 2px 6px rgba(0,0,0,0.08);

  border: 1px solid rgba(0,0,0,0.06);

  /* 🔥 wolniejsza i płynniejsza animacja */
  transition: 
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.book-cover-wrapper img {
  width: 100%;
  height: auto;
  display: block;
filter: contrast(1.05) brightness(0.98);
}

.book-cover-wrapper:hover {
  transform: translateY(-0.5px);
  box-shadow: 
    0 10px 22px rgba(0,0,0,0.14),
    0 3px 8px rgba(0,0,0,0.1);
}

.book-cover-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05),
    rgba(0,0,0,0) 60%
  );

  pointer-events: none;
}



.book-hover {
  position: absolute;
  inset: 0;
  padding: 22px 20px;

  display: flex;
  flex-direction: column;   /* ważne – opis nad linkiem */
  justify-content: center;
  align-items: center;

  text-align: center;

  font-size: 15px;
  line-height: 1.5;
  color: #000;

 background: rgba(255, 250, 243, 0.92);
  border: 1px solid rgba(180, 180, 180, 0.35);
  border-radius: 6px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);

  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.book-hover p{
  margin-bottom: 20px;
}

/* ================= LINK NA OKŁADCE ================= */

.book-hover .hover-more {

  margin-top: 20px;

  font-size: 14px;
  color: #8a4f38;
  border-bottom: 1px solid rgba(138,79,56,0.4);
  padding-bottom: 2px;

  transition: 0.3s ease;
  position: relative;

}

.book-hover .hover-more::after {

  content: "→";
  margin-left: 4px;
  display: inline-block;
  transition: transform 0.3s ease;

}

.book-hover .hover-more:hover::after {
  transform: translateX(4px);
}

.book-hover .hover-more:hover {
  color: #b68b6a;
  border-bottom-color: #b68b6a;
}

.book-cover-wrapper:hover .book-hover {
  opacity: 1;
  transform: scale(1);
}

/* Tytuły */
.book-item h3 {
  font-size: 18px;
  font-weight: 500;
  margin-top: 18px;
  letter-spacing: 0.8px;
}


/* ========================================
   PODSTRONY KSIĄŻEK — UKŁAD + TREŚĆ
======================================== */
.page-title {
  text-align: center;
  font-size: 32px;
  margin: 40px 0 20px;
}


.book-page {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 50px;
}

.book-cover-large img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.book-details {
  padding-top: 10px;
}

.book-meta {
  font-size: 15px;
font-weight:500;
  color: #7a5234;
  margin-bottom: 25px;
}

.book-description p {
  font-size: 1rem;
  line-height: 1.75;
letter-spacing: -0.01em;
  margin: 22px 0;
color: inherit;
}

/* Sekcje pod opisem */
.book-section {
  margin-top: 40px;
}

.book-section h2,
.book-details h2 {
  font-size: 22px;
  margin-bottom: 15px;
   border-bottom: 1px solid rgba(138, 79, 56, 0.4);
  display: inline-block;
  padding-bottom: 6px;
  margin-top: 50px;   /* zwiększa odstęp nad Wyróżnienia i Recenzje */
}

/* Cytaty */

.book-quote {
  border-left: 1px solid #c9b6a6;
   padding-left: 18px;
  margin: 26px 0;
  font-style: italic;
}

/* ================================
   SEKCJA: Publikacje + Nagrody
   (dopasowana do wyglądu wyróżnień)
================================ */

/* blok z nagrodami */
.award-block {
  border-left: 1px solid #c9b6a6;

  padding-left: 18px;
  margin: 26px 0;
}

.award-block h3 {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.award-line {
margin: 4px 0 6px 14px;
  margin-left: 10px;   /* ⭐ to robi przesunięcie */
  font-style: italic;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.45;
  font-size:16px;
  color: #3a2a1f;
}


/* Powrót */
.back-books {
  display: inline-block;
  margin-top: 40px;
  margin-bottom: 60px;
  color: #8b5e3c;
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid rgba(138,79,56,0.4);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
 
}

.back-books::before {
  content: "←";
  margin-right: 6px;
  display: inline-block;
  position: relative;
  top: -1px;
  transition: transform 0.3s ease;
}

.back-books:hover {
   color:  #d19a6a;
  border-bottom-color:  #d19a6a;
}

.back-books:hover::before {
  transform: translateX(-4px);
}



/* Blok tłumaczeń – zgodny z award-block */
.translation-block {
  margin-top: 30px;
}

/* Pojedynczy wpis tłumaczenia */
.translation-entry {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 18px;
}

/* Miniaturka okładki */
.translation-entry img {
  width: 70px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.22);
}

/* Tekst obok */
.translation-text div {
  font-size: 16px;
  margin-bottom: 4px;
  line-height: 1.5;
  color: #333;
}

.translation-title {
  font-size: 18px;
  font-family: Georgia, serif;
  font-weight: 600;
  margin-bottom: 10px;
  color: #111;
}


/* ============================
   Wideo na stronach książek
============================ */

.book-video {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 35px;
}

.book-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.book-video iframe:hover {
  transform: scale(1.02);
}

.video-review {
  margin-top: 30px;
  padding-top: 12px;
  border-top: 1px solid #e6ded5;
}


.book-content {
  display: contents;
}

/* ============================
   RECENZJE — poprawa typografii
============================ */

.book-reviews h3 {
  font-size: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  line-height: 1.6;
  margin-bottom: 8px;
}

.book-reviews h3 a {
  color: #333;
}

.book-reviews h3 a:hover {
  color: #b68b6a;
}

/* ============================
   RECENZJE — ujednolicenie
============================ */

.book-reviews {
  font-size: 16px;
  line-height: 1.6;
}

/* treść recenzji */
.book-reviews p {
  font-size: 16px;
}

/* linki recenzji */
.book-reviews h3 {
  font-size: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  margin-bottom: 4px;
}

.book-reviews h3 a {
  color: #333;
}

.book-reviews h3 a:hover {
  color: #b68b6a;
}



/* =====================================================
   NIEPUBLIKOWANE
===================================================== */

.unpublished-section {
  max-width: 1100px;
  margin: 90px auto 70px;
  padding: 60px 30px 55px;
  border-top: 1px solid rgba(139, 94, 60, 0.25);
  border-bottom: 1px solid rgba(139, 94, 60, 0.18);
}


/* ============================
   WPROWADZENIE
============================ */

.unpublished-intro {
  max-width: 700px;
  margin: 0 auto 45px;
  text-align: center;
}

.unpublished-intro h2 {
  margin: 0 0 14px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  color: #8b5e3c;
}

.unpublished-intro p {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1.7;
  color: #555;
}


/* ============================
   TRZY KARTY
============================ */
.unpublished-books {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
}

.unpublished-item {
  display: block;
  text-decoration: none;
  color: #000;
}


/* ============================
   ŚRODEK KARTY
   Reszta pochodzi z
   .book-cover-wrapper
============================ */

.unpublished-cover-wrapper {
  height: 390px;
  background: rgba(255,250,243,0.72);
}

.unpublished-cover {
  position: absolute;
  inset: 0;
  padding: 25px 22px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
}

.unpublished-cover-wrapper .book-hover {
  background: #fffaf3;
  z-index: 2;
}

.unpublished-cover h3 {
  margin: 0 0 14px;

  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 500;

  color: #333;
}

.unpublished-type {
  font-family: Georgia, serif;
  font-size: 15px;
  font-style: italic;
  color: #777;
}


/* ============================
   KONTAKT
============================ */

.unpublished-contact {
  max-width: 650px;
  margin: 42px auto 0;

  font-family: Georgia, serif;
  font-size: 15px;
  line-height: 1.7;

  color: #777;
  text-align: center;
}

.unpublished-contact a {
  color: #8b5e3c;
  text-decoration: none;
  border-bottom: 1px solid rgba(139,94,60,0.35);
}

.unpublished-contact a:hover {
  border-bottom-color: #8b5e3c;
}


/* ============================
   MOBILE
============================ */

@media (max-width: 800px) {

  .unpublished-section {
    margin: 65px 20px 55px;
    padding: 45px 10px 40px;
  }

  .unpublished-intro {
    margin-bottom: 35px;
  }

  .unpublished-intro h2 {
    font-size: 27px;
  }

  .unpublished-books {
    grid-template-columns: 1fr;
    gap: 40px;
  }

.unpublished-cover-wrapper {
  width: 100%;
  max-width: 280px;
  height: 420px;
  margin: 0 auto;
}

  .unpublished-cover h3 {
    font-size: 21px;
  }

  .unpublished-contact {
    margin-top: 32px;
  }
}
/* =====================================================
   STRONY NIEPUBLIKOWANE
===================================================== */

.unpublished-work-page {
  display: block;
}

.unpublished-work-page .book-details {
  max-width: 900px;
  margin: 0 auto;
}

.unpublished-full-text {
  width: 760px;
  max-width: calc(100% - 40px);
  margin: 70px auto 90px;
}

.unpublished-full-text > h2 {
  margin-top: 55px;
}

.story-subtitle {
  font-style: italic;
  color: #666;
  max-width: 720px;
}

.story-people {
  margin: 20px 0 35px;
  padding-left: 25px;
}

.story-people li {
  margin-bottom: 7px;
}

.story-chapter {
  margin-top: 65px !important;
  margin-bottom: 18px;
  text-align: center;
  font-size: 26px;
}

.story-chapter-title {
  margin-bottom: 35px;
  text-align: center;
  font-size: 16px;
  line-height: 1.7;
  font-style: italic;
}

.unpublished-full-text p {
  margin-bottom: 1.25em;
}

@media (max-width: 768px) {

  .unpublished-work-page .book-details {
    width: 100%;
  }

  .unpublished-full-text {
    width: calc(100% - 40px);
    max-width: 760px;
  }

}
