/* Rozmazané pozadí s gradientem */
body {
  position: relative;
  background: #f5f5f5;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
  color: #2c3e50;
  line-height: 1.6;
}
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -2;
  background: url('bg.jpg') top left no-repeat;
  background-color: #f4a151;
  width: 100vw;
  height: 100vh;
  opacity: 1;
  pointer-events: none;
  padding-top: 500px;
}
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(to bottom, rgba(245,245,245,0) 30%, rgba(245,245,245,1) 100%);
  pointer-events: none;
  padding-top: 500px;
}
a {
  color: #f5b374;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.container {
  max-width: 800px;
  margin: 40px auto;
  background-color: rgba(255, 255, 255, 0.97);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* HLAVIČKA */
header {
  padding: 10px 2px;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}
header img.logo {
  height: 76px;
  width: auto;
  display: block;
}
header h1 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* SEKCE KNIHY */
.book-section {
  display: flex;
  align-items: flex-start;
  margin-top: 28px;
  gap: 30px;
  flex-wrap: wrap;
}
.book-cover-wrapper {
  position: relative;
  display: inline-block;
}
.book-cover {
  max-width: 220px;
  border-radius: 6px;
  flex-shrink: 0;
  width: 100%;
  max-width: 220px;
  object-fit: cover;
}
.price-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #e74c3c;
  color: white;
  font-weight: bold;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  user-select: none;
  pointer-events: none;
  z-index: 10;
}
.book-info {
  flex: 1;
  min-width: 280px;
}
h2 {
  color: #2c3e50;
  margin: 0;
}
h3 {
  margin-top: 6px;
  font-weight: normal;
  color: #555;
}
ul {
  padding-left: 20px;
  margin-top: 10px;
}
.cta {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: #f4a151;
  color: #fff;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}
.cta:hover {
  background: #f56374;
}

/* CAROUSEL - společné styly */
.carousel-section {
  margin-top: 50px;
}
.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: #fff;
  padding: 20px 0;
}
.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  will-change: transform;
}
.carousel-item {
  min-width: 180px;
  margin: 0 10px;
  background: #f9f9f9;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 15px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.carousel-item img {
  max-width: 140px;
  border-radius: 4px;
  margin: 0 auto 12px auto;
  object-fit: cover;
  height: 200px;
}
.carousel-item h3 {
  font-size: 1.1em;
  margin: 8px 0 4px 0;
  color: #2c3e50;
}
.carousel-item p {
  font-size: 0.9em;
  color: #555;
  margin: 0 0 10px 0;
  flex-grow: 1;
}
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #f4a151;
  border: none;
  color: white;
  font-size: 1.8em;
  padding: 6px 12px;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background 0.3s;
  z-index: 10;
}
.carousel-button:hover:not(:disabled) {
  background: #f4a151;
}
.carousel-button:disabled {
  background: #f5f3f4;
  cursor: default;
  box-shadow: none;
}
.carousel-button.prev {
  left: 10px;
}
.carousel-button.next {
  right: 10px;
}

/* SEKCE O AUTOROVI */
.author-section {
  display: flex;
  align-items: flex-start;
  margin-top: 40px;
  background: #eaf6ff;
  padding: 28px 20px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(52, 152, 219, 0.06);
  gap: 25px;
  flex-wrap: wrap;
}
.author-photo {
  max-width: 120px;
  border-radius: 50%;
  flex-shrink: 0;
  width: 100%;
  max-width: 120px;
  object-fit: cover;
}
.about-author {
  flex: 1;
  min-width: 250px;
}

/* SEKCE ŘEKLI O NÁS */
.reviews-section {
  margin-top: 40px;
}
.review {
  background: #f0f4fa;
  padding: 18px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.reviewer {
  font-style: italic;
  color: #555;
  margin-top: 8px;
}

/* PATIČKA */
footer {
  background: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 18px 30px 12px 30px;
  border-radius: 12px 12px 0 0;
  margin-top: 50px;
  font-size: 1em;
  letter-spacing: 0.5px;
  user-select: none;
}
footer a {
  color: #fff;
  text-decoration: underline;
}

/* MODAL (lightbox) styl */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background-color: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.modal-content {
  max-width: 90vw;
  max-height: 80vh;
  margin: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  background: #fff;
  padding: 8px;
}
.modal-close {
  position: fixed;
  top: 24px; right: 40px;
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  text-shadow: 0 2px 8px #000;
  transition: color 0.2s;
}
.modal-close:hover {
  color: #e74c3c;
}
@media (max-width: 700px) {
  .container {
    margin: 20px 15px;
    padding: 20px;
  }
  header {
    justify-content: center;
  }
  header h1 {
    font-size: 1.5rem;
  }
  .book-section {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .book-info {
    min-width: auto;
  }
  .author-section {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .about-author {
    min-width: auto;
    text-align: center;
  }
  .carousel-item {
    min-width: 140px;
    margin: 0 6px;
  }
  .carousel-item img {
    height: 160px;
  }
  .carousel-button.prev {
    left: 5px;
  }
  .carousel-button.next {
    right: 5px;
  }
  .modal-content {
    max-width: 98vw;
    max-height: 60vh;
  }
  .modal-close {
    top: 12px; right: 18px;
    font-size: 2rem;
  }
}
