/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  background: url("background.jpg") no-repeat center center fixed;
  background-size: cover;
  color: #d4c3ff;
  font-family: "Segoe UI", sans-serif;
  min-height: 100vh;
}

/* TOP BAR */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #3c1f5f;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 998;
  box-shadow: 0 4px 15px rgba(60, 31, 95, 0.5);
  height: 60px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-area img {
  height: 40px;
  vertical-align: middle;
}

.logo-area span {
  font-size: 22px;
  font-weight: bold;
  color: #e0d4ff;
  line-height: 40px;
  vertical-align: middle;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 22px;
}

.hamburger, .search-icon {
  cursor: pointer;
  color: #e0d4ff;
}

/* SEARCH BAR */
#searchBar {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: #3c1f5f;
  padding: 15px;
  z-index: 997;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

#searchBar input {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 30px;
  background: #4b2a6e;
  color: #e0d4ff;
}

/* SIDE MENU */
.side-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 75%;
  height: 100%;
  background: linear-gradient(to bottom, #3c1f5f, #1a0d2e);
  padding: 20px;
  transition: left 0.3s ease;
  z-index: 999;
}

.side-menu.open {
  left: 0;
}

.menu-header {
  display: flex;
  justify-content: flex-end;
  font-size: 24px;
  cursor: pointer;
  color: white;
}

.side-menu a {
  display: block;
  padding: 15px 0;
  font-size: 18px;
  color: white;
  text-decoration: none;
}

.side-menu hr {
  margin: 20px 0;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* HERO (əsas səhifədəki kimi) */
.hero {
  background: rgba(60, 31, 95, 0.25);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(106, 27, 154, 0.4);
  padding: 100px 20px;
  text-align: center;
  margin-top: 80px;
  border-radius: 0;
}

.hero h1 {
  font-size: 2.5rem;
  color: #e0d4ff;
}

.hero p {
  font-size: 1.3rem;
  color: #d4c3ff;
}

/* SERIES DETAIL – tam istədiyin kimi */
.series-detail {
  padding-top: 80px; /* top bar üçün yer */
  padding-bottom: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.series-header {
  text-align: center;
  margin-bottom: 25px;
}

.series-header h1 {
  font-size: 2.8rem;
  color: #e0d4ff;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.series-cover-container {
  text-align: center;
  margin: 0 auto 40px;
  max-width: 500px;
}

.series-cover-container img {
  width: 100%;
  aspect-ratio: 3 / 4; /* 3:4 ölçüsü */
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  transition: transform 0.3s ease;
}

.series-cover-container img:hover {
  transform: scale(1.03);
}

.series-info-box {
  background: rgba(60, 31, 95, 0.45);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(106, 27, 154, 0.4);
  border-radius: 12px;
  padding: 25px;
  margin: 0 20px 40px;
  text-align: center;
}

.rating-box {
  margin-bottom: 20px;
}

.stars {
  font-size: 2rem;
  color: #ffcc00;
  margin-bottom: 10px;
}

#rateButton {
  background: #6a1b9a;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

#rateButton:hover {
  background: #8e44ad;
}

.stats {
  margin: 20px 0;
  font-size: 1rem;
  color: #d4c3ff;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.big-btn {
  background: #6a1b9a;
  color: white;
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background 0.3s;
}

.big-btn:hover {
  background: #8e44ad;
}

.red-btn {
  background: #c0392b;
}

.red-btn:hover {
  background: #e74c3c;
}

.series-description,
.chapters-section,
.comments-section {
  background: rgba(60, 31, 95, 0.35);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(106, 27, 154, 0.35);
  border-radius: 12px;
  padding: 25px;
  margin: 0 20px 40px;
}

.series-description h2,
.chapters-section h2,
.comments-section h2 {
  margin-bottom: 20px;
  color: #e0d4ff;
  font-size: 1.6rem;
}

#descShort, #descFull {
  line-height: 1.7;
  margin-bottom: 15px;
  font-size: 1.05rem;
}

#readMoreBtn,
#showAllChapters {
  background: transparent;
  border: 1px solid #6a1b9a;
  color: #e0d4ff;
  padding: 10px 22px;
  border-radius: 25px;
  cursor: pointer;
  margin-top: 15px;
  transition: all 0.3s;
}

#readMoreBtn:hover,
#showAllChapters:hover {
  background: rgba(106, 27, 154, 0.2);
}

#recentChapters div,
#allChapters div {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 1.1rem;
}

#recentChapters a,
#allChapters a {
  color: #d4c3ff;
  text-decoration: none;
}

#recentChapters small,
#allChapters small {
  color: #b0a0d0;
  font-size: 0.9rem;
  display: block;
  margin-top: 5px;
}

#commentsList > div {
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0;
}

#commentsList img {
  max-width: 100%;
  border-radius: 10px;
  margin-top: 12px;
}

#commentForm {
  margin-bottom: 25px;
}

#commentText {
  width: 100%;
  padding: 14px;
  background: rgba(75, 42, 110, 0.6);
  border: 1px solid #6a1b9a;
  border-radius: 10px;
  color: #e0d4ff;
  font-size: 1rem;
  margin-bottom: 12px;
  min-height: 100px;
  resize: vertical;
}

#commentImage {
  margin-bottom: 12px;
  color: #d4c3ff;
}

#commentForm button {
  background: #6a1b9a;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

#commentForm button:hover {
  background: #8e44ad;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 25px;
  background: #3c1f5f;
  color: #e0d4ff;
  margin-top: 40px;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #3c1f5f;
  padding: 35px;
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  cursor: pointer;
  color: #e0d4ff;
}

.stars-modal .star {
  font-size: 2.5rem;
  color: #ffcc00;
  cursor: pointer;
  transition: color 0.3s, transform 0.2s;
}

.stars-modal .star:hover {
  color: #ffeb3b;
  transform: scale(1.2);
}

/* Desktop optimallaşdırma */
@media (min-width: 768px) {
  .series-detail {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 40px 60px;
  }

  .series-cover-container {
    max-width: 600px;
  }

  .series-info-box {
    padding: 40px;
  }

  .action-buttons {
    gap: 40px;
  }

  .big-btn {
    padding: 16px 40px;
    font-size: 1.2rem;
  }

  .series-description,
  .chapters-section,
  .comments-section {
    padding: 35px;
  }
}
