/* ================================
   AUTHOR.CSS — strona autora
   układ dopasowany do books.css
================================ */

/* Układ ogólny — taki sam jak na stronach książek */
.author-page {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 50px;
  align-items: start;
}


/* Nagłówki sekcji — jak w books */
.author-page h2,
.author-text 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;
}

/* Foto autora */
.author-photo {
  position: relative;
  width: 100%;
}

.author-photo img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  filter: contrast(0.85) brightness(0.92) saturate(0.9);
}

.author-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(246,243,239,0.85) 0%,
    rgba(246,243,239,0.60) 28%,
    rgba(246,243,239,0.35) 48%,
    rgba(246,243,239,0.12) 68%,
    rgba(246,243,239,0) 85%
  );
  border-radius: 6px;
}

/* Tekst — jak book-details */
.author-text {
  padding-top: 10px;
 max-width: 760px;
}

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

/* ===============================
   NAGRODY I WYRÓŻNIENIA
=============================== */

.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;
}


.award-line a {
  color: inherit;
  text-decoration: none;
}

.award-line a:hover {
  color: #8b5e3c;
}

/* Publikacje — lista */
.author-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.author-list li {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.author-list li ul {
  margin-left: 20px;
  margin-top: 8px;
}

/* ============================
   AKORDEON
============================ */

.accordion-block {
  background: transparent;
  border-left: 1px solid #c9b6a6;
  padding-left: 18px;
  margin: 28px 0;
}

.acc-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 16px;
  font-family: Georgia, serif;
  font-weight: 600;
  color: #111;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.acc-btn .arrow {
  font-size: 20px;
  opacity: 0.7;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.acc-btn.active .arrow {
  transform: rotate(90deg);
  opacity: 1;
}

.acc-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  transition-property: max-height, padding, opacity;
  transition-duration: 0.55s, 0.35s, 0.45s;
  transition-timing-function: ease-out;
}

.acc-panel.open {
  padding-top: 14px;
  padding-bottom: 10px;
  opacity: 1;
}

.acc-inner {
  padding-bottom: 12px;
}

.accordion-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.accordion-block li {
  padding: 4px 0;
  margin-left: 4px;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.accordion-block li ul {
  margin-left: 20px;
  margin-top: 6px;
}

/* ================================
   MOBILE
================================ */
@media (max-width: 768px) {
  .author-page {
    grid-template-columns: 1fr;
  }

  .author-photo {
    max-width: 350px;
    margin: 0 auto;
  }

  .author-photo img {
    width: 100%;
  }
}