/* =====================================================================
   GEZEGEN KORUYUCULARI - INTERAKTIF PDF & 3D FLIPBOOK KİTAPLIK
   ===================================================================== */

.book-section {
  position: relative;
  padding: 100px 20px;
  background: radial-gradient(circle at 50% 0%, rgba(120, 230, 90, 0.14), transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(88, 217, 255, 0.10), transparent 45%),
              linear-gradient(180deg, rgba(3, 16, 13, 0.95), rgba(4, 21, 17, 0.98));
  overflow: hidden;
}

.book-stage-wrap {
  width: min(98%, 1440px);
  margin: 0 auto;
  position: relative;
}

.book-shelf {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(120, 230, 90, 0.25);
  border-radius: 36px;
  padding: 34px 28px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
}

/* Cilt Seçici Çubuğu */
.book-volume-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  scrollbar-width: thin;
}

.volume-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f7fff8;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s ease;
}

.volume-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.volume-dot.dot-ready {
  background: #78e65a;
  box-shadow: 0 0 8px #78e65a;
}
.volume-dot.dot-soon {
  background: #ffd97d;
  opacity: 0.65;
}

.volume-ready-tag {
  font-size: 10px;
  background: rgba(120, 230, 90, 0.25);
  color: #a4ff9a;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.volume-soon-tag {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  padding: 2px 7px;
  border-radius: 999px;
}

.volume-tab-btn.upcoming {
  opacity: 0.72;
}
.volume-tab-btn.upcoming:hover {
  opacity: 1;
}

.volume-tab-btn:hover {
  background: rgba(120, 230, 90, 0.18);
  border-color: rgba(120, 230, 90, 0.5);
  transform: translateY(-2px);
}

.volume-tab-btn.active {
  background: linear-gradient(135deg, #78e65a, #58d9ff);
  color: #041511;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(120, 230, 90, 0.35);
}

/* Üst Araç Çubuğu */
.book-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.book-badge-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.book-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(120, 230, 90, 0.15);
  border: 1px solid rgba(120, 230, 90, 0.4);
  color: #a4ff9a;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.book-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #78e65a;
  box-shadow: 0 0 12px #78e65a;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

.book-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.book-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f7fff8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
  user-select: none;
}

.book-tool-btn:hover {
  background: rgba(120, 230, 90, 0.22);
  border-color: rgba(120, 230, 90, 0.5);
  transform: translateY(-2px);
  color: #fff;
}

.book-tool-btn.active {
  background: linear-gradient(135deg, #78e65a, #58d9ff);
  color: #041511;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(120, 230, 90, 0.4);
}

.book-tool-btn.tts-btn {
  background: rgba(255, 215, 0, 0.16);
  border-color: rgba(255, 215, 0, 0.45);
  color: #ffd97d;
}

.book-tool-btn.tts-btn:hover {
  background: #ffd97d;
  color: #041511;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.5);
}

.book-tool-btn.tts-btn.speaking {
  background: linear-gradient(135deg, #78e65a, #ffd97d);
  color: #041511;
  font-weight: 800;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(120, 230, 90, 0.5);
  animation: pulseSpeech 1.5s infinite ease-in-out;
}

@keyframes pulseSpeech {
  0%, 100% { transform: scale(1); box-shadow: 0 0 12px rgba(120, 230, 90, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 24px rgba(120, 230, 90, 0.8); }
}

.book-tool-btn.download {
  background: rgba(88, 217, 255, 0.15);
  border-color: rgba(88, 217, 255, 0.4);
  color: #8ae4ff;
}

.book-tool-btn.download:hover {
  background: #58d9ff;
  color: #041511;
}

/* PDF OKUYUCU TUVAL SAHNESİ */
.pdf-reader-stage {
  position: relative;
  min-height: 640px;
  height: 78vh;
  max-height: 860px;
  background: #061813;
  border: 1px solid rgba(120, 230, 90, 0.25);
  border-radius: 24px;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.7), 0 30px 80px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden !important;
  padding: 10px 14px;
}

/* 3D GERÇEK KİTAP ÇEVİRME SAHNESİ */
.pdf-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden !important;
  padding: 0;
}

.flipbook-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden !important;
  perspective: 2500px;
}

.flipbook-stage {
  position: relative;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden !important;
  transition: transform 0.3s ease;
}

/* St.PageFlip Kitap Gövdesi & 3D Gölgesi */
.my-flipbook {
  position: relative;
  margin: 0 auto !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  overflow: hidden !important;
  background: transparent !important;
}

.stf__parent {
  position: relative;
  display: block;
  box-sizing: border-box;
  margin: 0 auto !important;
  background: transparent !important;
}

.stf__wrapper,
.sft__wrapper {
  position: relative;
  width: 100% !important;
  height: 100% !important;
  margin: 0 auto !important;
  background: transparent !important;
}

.stf__canvas {
  position: absolute;
  width: 100% !important;
  height: 100% !important;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: 0 auto !important;
  display: block;
  background: transparent !important;
}

/* Sayfa Tasarımı ve Kağıt Dokusu - SCROLLBAR KESİNLİKLE YASAK */
.book-page {
  position: relative;
  background-color: transparent !important;
  overflow: hidden !important;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.book-page:active {
  cursor: grabbing;
}

/* Cilt Kapağı (Sert Kapak - Hardcover) */
.book-page.--hard {
  background: #081d16;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.6);
}

/* Sol ve Sağ Sayfa Cilt Katlanma İzi (Spine Shadow) */
.book-page.--left::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.12) 35%, transparent 100%);
  pointer-events: none;
  z-index: 5;
}

.book-page.--right::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.12) 35%, transparent 100%);
  pointer-events: none;
  z-index: 5;
}

/* Sayfa İçerik Taşıyıcısı */
.book-page-inner {
  position: relative;
  width: 100% !important;
  height: 100% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden !important;
  background-color: transparent !important;
}

.book-page-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: fill !important;
  display: block;
  pointer-events: none;
}

.page-loader {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #78e65a;
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
}

.page-loader .pdf-spinner {
  width: 32px;
  height: 32px;
  margin-bottom: 0;
}

/* Sayfa Numarası */
.book-page-num {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.45);
  background: rgba(255, 255, 255, 0.75);
  padding: 2px 7px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 6;
}
.book-page.--left .book-page-num {
  right: auto;
  left: 12px;
}

/* Kitap Yükleniyor / Yükleme İpucu */
.pdf-loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(4, 21, 17, 0.88);
  backdrop-filter: blur(8px);
  z-index: 20;
  color: #fff;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pdf-loading-overlay.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
}

.pdf-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(120, 230, 90, 0.2);
  border-top-color: #78e65a;
  animation: spinPdf 0.8s infinite linear;
  margin-bottom: 14px;
}

@keyframes spinPdf {
  to { transform: rotate(360deg); }
}

/* NAV BUTONLARI (SOL - SAĞ) */
.book-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(3, 16, 13, 0.85);
  border: 1px solid rgba(120, 230, 90, 0.4);
  color: #fff;
  font-size: 24px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 25;
  transition: all 0.2s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.book-nav-btn:hover {
  background: #78e65a;
  color: #041511;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 25px rgba(120, 230, 90, 0.6);
}

.book-nav-btn.prev { left: 14px; }
.book-nav-btn.next { right: 14px; }

/* ALT KONTROL ÇUBUĞU */
.pdf-bottom-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pdf-page-jumper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(247, 255, 248, 0.8);
}

.pdf-page-input {
  width: 52px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-align: center;
  outline: none;
}

.pdf-page-input:focus {
  border-color: #78e65a;
}

.pdf-zoom-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pdf-zoom-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 15px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pdf-zoom-btn:hover {
  background: #78e65a;
  color: #041511;
}

/* TAM EKRAN MODU */
.book-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: #020b08 !important;
  border-radius: 0 !important;
  padding: 24px !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: auto;
}

.book-fullscreen .pdf-reader-stage {
  flex: 1;
  min-height: auto;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .pdf-reader-stage {
    min-height: 460px;
    padding: 10px;
  }
  .pdf-viewport {
    gap: 8px;
  }
  .book-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

@media (max-width: 680px) {
  .book-shelf {
    padding: 20px 14px;
    border-radius: 22px;
  }
  .pdf-reader-stage {
    min-height: 400px;
  }
  .pdf-viewport {
    flex-direction: column;
  }
  .book-nav-btn.prev { left: 6px; }
  .book-nav-btn.next { right: 6px; }
}

/* =====================================================================
   13 CİLT KOLEKSİYON GALERİSİ (SERİ RAFI)
   ===================================================================== */
.book-gallery-section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.book-gallery-head {
  text-align: center;
  margin-bottom: 34px;
}

.book-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.book-gallery-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}

.book-gallery-card:hover {
  transform: translateY(-8px);
  border-color: rgba(120, 230, 90, 0.45);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(120, 230, 90, 0.15);
}

.book-gallery-card.ready-card {
  border-color: rgba(120, 230, 90, 0.25);
}

.book-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/11;
  border-radius: 14px;
  overflow: hidden;
  background: #020b08;
  margin-bottom: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.book-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.book-gallery-card:hover .book-card-thumb {
  transform: scale(1.06);
}

.book-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(2, 11, 8, 0.88);
  backdrop-filter: blur(8px);
  color: #78e65a;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(120, 230, 90, 0.35);
}

.book-card-status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
}

.book-card-status-badge.ready {
  background: #78e65a;
  color: #041511;
  box-shadow: 0 0 12px rgba(120, 230, 90, 0.5);
}

.book-card-status-badge.soon {
  background: rgba(255, 215, 0, 0.85);
  color: #041511;
}

.book-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
  line-height: 1.35;
}

.book-card-meta {
  font-size: 12px;
  color: rgba(247, 255, 248, 0.65);
  margin-bottom: 10px;
}

.book-card-desc {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(247, 255, 248, 0.72);
  flex: 1;
  margin-bottom: 18px;
}

.book-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.book-card-actions .btn {
  flex: 1;
  padding: 9px 12px;
  font-size: 12.5px;
  justify-content: center;
}

