﻿/* ============================================
   PAGE CONTENT ENHANCEMENTS
   ============================================ */

/* ---- IMAGE WRAPPER ---- */
.pg-img-wrapper {
  position: relative;
  display: block;
  margin: 2.5em 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 0;
}
.pg-img-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.4s ease;
}
.pg-img-wrapper:hover img {
  transform: scale(1.03);
  filter: brightness(1.05);
}
.pg-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  opacity: 0;
  transition: opacity 0.3s ease;
  line-height: 1;
}
.pg-img-wrapper:hover .pg-img-overlay {
  opacity: 1;
}
.pg-img-action {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.pg-img-action:hover {
  background: rgba(249, 115, 22, 0.8);
  border-color: rgba(249, 115, 22, 0.6);
  transform: translateY(-2px);
}

/* ---- LIGHTBOX ---- */
.pg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}
.pg-lightbox.active {
  opacity: 1;
  visibility: visible;
}
.pg-lb-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.pg-lightbox.active .pg-lb-img {
  transform: scale(1);
}
.pg-lb-close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}
.pg-lb-close:hover {
  background: rgba(255, 71, 87, 0.2);
  border-color: rgba(255, 71, 87, 0.4);
  color: #ff4757;
}
.pg-lb-download {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.pg-lb-download:hover {
  background: rgba(249, 115, 22, 0.2);
  border-color: rgba(249, 115, 22, 0.4);
  color: #f97316;
}

/* ---- YOUTUBE VIDEO ---- */
.pg-video-container {
  margin: 2.5em 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.pg-video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.pg-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---- ARTICLE BODY ---- */
.article-body a {
  color: #f97316;
  text-decoration: none;
  border-bottom: 1px solid rgba(249, 115, 22, 0.3);
  transition:
    border-color 0.2s,
    color 0.2s;
}
.article-body a:hover {
  color: #fb923c;
  border-bottom-color: #fb923c;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.article-body th {
  background: rgba(255, 255, 255, 0.06);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  color: #f8fafc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.article-body td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
}
.article-body tr:last-child td {
  border-bottom: none;
}
.article-body tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.article-body blockquote {
  margin: 2em 0;
  padding: 20px 24px;
  border-left: 3px solid #f97316;
  background: rgba(249, 115, 22, 0.04);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #94a3b8;
}
.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-body code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.9em;
  color: #f97316;
  font-family: "JetBrains Mono", "Fira Code", monospace;
}
.article-body pre {
  margin: 2em 0;
  padding: 20px 24px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
}
.article-body pre code {
  background: none;
  padding: 0;
  color: #cbd5e1;
}

/* ---- LIST STYLES ---- */
.article-body ul,
.article-body ol {
  margin: 1.2em 0 1.5em 0;
  padding-left: 1.5em;
}
.article-body ul {
  list-style: none;
}
.article-body ul > li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 0.65em;
  line-height: 1.75;
}
.article-body ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 6px rgba(249, 115, 22, 0.4);
}
.article-body ul ul {
  margin: 0.4em 0;
}
.article-body ul ul > li::before {
  width: 5px;
  height: 5px;
  background: transparent;
  border: 1.5px solid #f97316;
  box-shadow: none;
}
.article-body ul ul ul > li::before {
  border-radius: 1px;
  width: 5px;
  height: 5px;
  background: rgba(249, 115, 22, 0.3);
  border: none;
}
.article-body ol {
  list-style: none;
  counter-reset: ol-counter;
}
.article-body ol > li {
  position: relative;
  padding-left: 2.2em;
  margin-bottom: 0.65em;
  line-height: 1.75;
  counter-increment: ol-counter;
}
.article-body ol > li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.25);
  color: #f97316;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.article-body ol ol {
  margin: 0.4em 0;
  counter-reset: ol-counter-nested;
}
.article-body ol ol > li {
  counter-increment: ol-counter-nested;
}
.article-body ol ol > li::before {
  content: counter(ol-counter-nested);
  width: 20px;
  height: 20px;
  font-size: 11px;
  border-radius: 5px;
  background: rgba(249, 115, 22, 0.06);
  border-color: rgba(249, 115, 22, 0.15);
}

/* ---- DOC CARDS (Word / Excel) ---- */
.pg-doc-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 2em 0;
  padding: 20px 24px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}
.pg-doc-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}
.pg-doc-icon {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pg-doc-icon.pg-icon-word {
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: #3b82f6;
}
.pg-doc-icon.pg-icon-excel {
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.2);
  color: #22c55e;
}
.pg-doc-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 5px;
  border-radius: 4px;
  color: #fff;
  text-transform: uppercase;
}
.pg-doc-badge.pg-badge-word {
  background: #2563eb;
}
.pg-doc-badge.pg-badge-excel {
  background: #16a34a;
}
.pg-doc-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pg-doc-name {
  font-size: 15px;
  font-weight: 600;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pg-doc-meta {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pg-doc-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.pg-doc-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.pg-doc-btn.pg-doc-view {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}
.pg-doc-btn.pg-doc-view:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.pg-doc-btn.pg-doc-dl {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}
.pg-doc-btn.pg-doc-dl:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}
.pg-doc-card.pg-card-excel:hover {
  border-color: rgba(22, 163, 74, 0.2);
}
.pg-doc-card.pg-card-excel .pg-doc-btn.pg-doc-dl {
  background: rgba(22, 163, 74, 0.1);
  border-color: rgba(22, 163, 74, 0.2);
  color: #22c55e;
}

/* ============================================
   FEATURED IMAGE (main cover)
   ============================================ */
.main-featured-image {
  width: 100%;
  max-height: 520px;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.main-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.main-featured-image:hover img {
  transform: scale(1.03);
}

/* ============================================
   IMAGE GALLERY
   ============================================ */
.pg-gallery {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.pg-gallery-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-orange, #f7941d);
  margin-bottom: 20px;
}
.pg-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.pg-gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.pg-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.pg-gallery-item:hover img {
  transform: scale(1.08);
}
.pg-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pg-gallery-item:hover .pg-gallery-overlay {
  opacity: 1;
}
.pg-gallery-overlay svg {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

@media (max-width: 600px) {
  .pg-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   PDF FLIPBOOK READER — TEK TANIM
   ============================================ */
.pg-fb-inline {
  margin: 2em 0;
  overflow: visible;
}

.pdf-reader {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(145deg, #0a1628 0%, #0d1f3c 50%, #081422 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  /* Yüksekliği içeriğe göre otomatik ayarla */
  height: auto;
  min-height: 0;
  max-height: none;
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: visible;
}

.pdf-reader::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(249, 115, 22, 0.03) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

.pdf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(
    180deg,
    rgba(18, 39, 68, 0.95) 0%,
    rgba(15, 26, 46, 0.98) 100%
  );
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  z-index: 5;
}

.pdf-title {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 40%;
  letter-spacing: 0.01em;
}

.pdf-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdf-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.pdf-btn:hover:not(:disabled) {
  background: rgba(249, 115, 22, 0.2);
  border-color: rgba(249, 115, 22, 0.4);
  color: #f97316;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}
.pdf-btn:active:not(:disabled) {
  transform: translateY(0);
}
.pdf-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.pdf-info {
  font-size: 14px;
  color: #94a3b8;
  padding: 0 12px;
  font-weight: 500;
  user-select: none;
}
.pdf-cur-num {
  color: #f97316;
  font-weight: 700;
}

.pdf-body {
  position: relative;
  /* flex: 1 kaldırıldı — sabit yükseklik kullanıyoruz */
  height: 680px;
  min-height: 680px;
  max-height: none;
  background: linear-gradient(180deg, #0d1b30 0%, #0a1525 100%);
  display: flex;
  align-items: flex-start;
  padding-top: 20px;

  justify-content: center;
  padding: 20px;
  overflow: visible;
}

.pdf-book {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-height: 570px;
}

.stf__page {
  object-fit: contain !important;
  background: #ffffff00 !important;
  box-shadow:
    2px 0 8px rgba(0, 0, 0, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.1);
}

.stf__page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill !important; /* contain'i SİLDİK, fill YAPTIK! */
  margin: 0;
  padding: 0;
  background: transparent; /* Beyaz arkaplanı da sildik ki tamamen dolsun */
}

.stf__canvas {
  background: #ffffff;
}

.book-page {
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.2);
  backface-visibility: hidden;
  transform-origin: left center;
  transform-style: preserve-3d;
}

.book-page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill !important;
  margin: 0;
  padding: 0;
}

.page-left {
  z-index: 2;
  border-right: 3px solid #1a2a45;
  position: relative;
  transform-origin: right center;
  transform-style: preserve-3d;
}
.page-left::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.015),
    rgba(0, 0, 0, 0.05)
  );
  pointer-events: none;
  z-index: 1;
}
.page-left::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 30px;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.08));
  pointer-events: none;
  z-index: 2;
}
.page-right {
  z-index: 1;
  margin-left: -2px;
  transform-origin: left center;
  transform-style: preserve-3d;
  position: relative;
}
.page-right::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.015),
    rgba(0, 0, 0, 0.04)
  );
  pointer-events: none;
  z-index: 1;
}

/* Premium 3D Flip Animasyonları */
.page-flipping {
  animation: pageFlipAnimation 0.85s cubic-bezier(0.645, 0.045, 0.355, 1)
    forwards;
  will-change: transform, box-shadow;
  transform-origin: left center;
}
@keyframes pageFlipAnimation {
  0% {
    transform: rotateY(0deg) translateZ(0);
    box-shadow:
      -2px 0 8px rgba(0, 0, 0, 0.12),
      -1px 0 3px rgba(0, 0, 0, 0.08);
  }
  10% {
    box-shadow:
      -6px 0 20px rgba(0, 0, 0, 0.2),
      -2px 0 6px rgba(0, 0, 0, 0.12);
  }
  50% {
    transform: rotateY(-90deg) translateZ(15px) translateX(-10px);
    box-shadow:
      -20px 0 50px rgba(0, 0, 0, 0.3),
      -5px 0 15px rgba(0, 0, 0, 0.18);
  }
  80% {
    box-shadow:
      -8px 0 25px rgba(0, 0, 0, 0.22),
      -2px 0 8px rgba(0, 0, 0, 0.12);
  }
  100% {
    transform: rotateY(-180deg) translateZ(0);
    box-shadow:
      -2px 0 8px rgba(0, 0, 0, 0.12),
      -1px 0 3px rgba(0, 0, 0, 0.08);
  }
}
.page-unflip {
  animation: pageUnflipAnimation 0.85s cubic-bezier(0.645, 0.045, 0.355, 1)
    forwards;
  will-change: transform, box-shadow;
  transform-origin: right center;
}
@keyframes pageUnflipAnimation {
  0% {
    transform: rotateY(180deg) translateZ(0);
    box-shadow:
      2px 0 8px rgba(0, 0, 0, 0.12),
      1px 0 3px rgba(0, 0, 0, 0.08);
  }
  10% {
    box-shadow:
      6px 0 20px rgba(0, 0, 0, 0.2),
      2px 0 6px rgba(0, 0, 0, 0.12);
  }
  50% {
    transform: rotateY(90deg) translateZ(15px) translateX(10px);
    box-shadow:
      20px 0 50px rgba(0, 0, 0, 0.3),
      5px 0 15px rgba(0, 0, 0, 0.18);
  }
  80% {
    box-shadow:
      8px 0 25px rgba(0, 0, 0, 0.22),
      2px 0 8px rgba(0, 0, 0, 0.12);
  }
  100% {
    transform: rotateY(0deg) translateZ(0);
    box-shadow:
      2px 0 8px rgba(0, 0, 0, 0.12),
      1px 0 3px rgba(0, 0, 0, 0.08);
  }
}

/* Kitap altı gölge - gerçekçilik */
.pdf-book::before {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 40px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
  filter: blur(15px);
  z-index: 0;
  pointer-events: none;
}

.pdf-book-inner {
  position: relative;
  display: flex;
  align-items: flex-start; /* center → flex-start */

  transform-style: preserve-3d;
}

.book-page {
  background: #f5f5f500;
  border-radius: 3px;
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.2);
  backface-visibility: hidden;
  transform-origin: left center;
  flex-shrink: 0;
}
.book-page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill !important; /* !important ekledik ki başka bir kod bunu bozamasın */
  margin: 0;
  padding: 0;
}

.page-left {
  z-index: 2;
  border-right: 3px solid #1a2a45;
  position: relative;
  transform-origin: right center;
  transform-style: preserve-3d;
}
.page-left::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.015),
    rgba(0, 0, 0, 0.05)
  );
  pointer-events: none;
  z-index: 1;
}
.page-left::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 30px;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.08));
  pointer-events: none;
  z-index: 2;
}
.page-right {
  z-index: 1;
  margin-left: -2px;
  transform-origin: left center;
  transform-style: preserve-3d;
  position: relative;
}
.page-right::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.015),
    rgba(0, 0, 0, 0.04)
  );
  pointer-events: none;
  z-index: 1;
}

/* Premium 3D Flip Animasyonları */
.page-flipping {
  animation: pageFlipAnimation 0.85s cubic-bezier(0.645, 0.045, 0.355, 1)
    forwards;
  will-change: transform, box-shadow;
  transform-origin: left center;
}
@keyframes pageFlipAnimation {
  0% {
    transform: rotateY(0deg) translateZ(0);
    box-shadow:
      -2px 0 8px rgba(0, 0, 0, 0.12),
      -1px 0 3px rgba(0, 0, 0, 0.08);
  }
  10% {
    box-shadow:
      -6px 0 20px rgba(0, 0, 0, 0.2),
      -2px 0 6px rgba(0, 0, 0, 0.12);
  }
  50% {
    transform: rotateY(-90deg) translateZ(15px) translateX(-10px);
    box-shadow:
      -20px 0 50px rgba(0, 0, 0, 0.3),
      -5px 0 15px rgba(0, 0, 0, 0.18);
  }
  80% {
    box-shadow:
      -8px 0 25px rgba(0, 0, 0, 0.22),
      -2px 0 8px rgba(0, 0, 0, 0.12);
  }
  100% {
    transform: rotateY(-180deg) translateZ(0);
    box-shadow:
      -2px 0 8px rgba(0, 0, 0, 0.12),
      -1px 0 3px rgba(0, 0, 0, 0.08);
  }
}
.page-unflip {
  animation: pageUnflipAnimation 0.85s cubic-bezier(0.645, 0.045, 0.355, 1)
    forwards;
  will-change: transform, box-shadow;
  transform-origin: right center;
}
@keyframes pageUnflipAnimation {
  0% {
    transform: rotateY(180deg) translateZ(0);
    box-shadow:
      2px 0 8px rgba(0, 0, 0, 0.12),
      1px 0 3px rgba(0, 0, 0, 0.08);
  }
  10% {
    box-shadow:
      6px 0 20px rgba(0, 0, 0, 0.2),
      2px 0 6px rgba(0, 0, 0, 0.12);
  }
  50% {
    transform: rotateY(90deg) translateZ(15px) translateX(10px);
    box-shadow:
      20px 0 50px rgba(0, 0, 0, 0.3),
      5px 0 15px rgba(0, 0, 0, 0.18);
  }
  80% {
    box-shadow:
      8px 0 25px rgba(0, 0, 0, 0.22),
      2px 0 8px rgba(0, 0, 0, 0.12);
  }
  100% {
    transform: rotateY(0deg) translateZ(0);
    box-shadow:
      2px 0 8px rgba(0, 0, 0, 0.12),
      1px 0 3px rgba(0, 0, 0, 0.08);
  }
}

/* Loading & Error */
.pdf-loading {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: linear-gradient(180deg, #0d1b30 0%, #0a1525 100%);
}
.pdf-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.06);
  border-top-color: #f97316;
  border-radius: 50%;
  animation: pdf-spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes pdf-spin {
  to {
    transform: rotate(360deg);
  }
}
.pdf-loading span {
  font-size: 15px;
  color: #94a3b8;
  font-weight: 500;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}
.pdf-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(180deg, #0d1b30 0%, #0a1525 100%);
  color: #64748b;
  font-size: 15px;
}

/* Fullscreen */
.pdf-reader:fullscreen {
  height: 100vh !important;
  max-height: 100vh !important;
  min-height: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  border: none !important;
  overflow: hidden !important;
}
.pdf-reader:fullscreen .pdf-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: linear-gradient(
    180deg,
    rgba(10, 22, 40, 0.98) 0%,
    rgba(10, 22, 40, 0.85) 100%
  );
}
.pdf-reader:fullscreen .pdf-body {
  height: calc(100vh - 66px) !important;
  min-height: 0 !important;
  padding-top: 66px;
}
.pdf-reader:fullscreen .pdf-book {
  height: 100% !important;
}

/* ---- VIEW TRANSITION — LIGHTBOX ---- */
::view-transition-old(vt-lightbox) {
  animation: vt-lightbox-out 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
::view-transition-new(vt-lightbox) {
  animation: vt-lightbox-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes vt-lightbox-out {
  from {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: scale(0.85);
    filter: blur(12px);
  }
}
@keyframes vt-lightbox-in {
  from {
    opacity: 0;
    transform: scale(1.1);
    filter: blur(12px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .pdf-body {
    height: 500px;
    min-height: 500px;
    padding: 12px 10px;
  }
  .pdf-header {
    padding: 10px 14px;
  }
  .pdf-title {
    font-size: 12px;
    max-width: 25%;
  }
  .pdf-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }
  .pdf-info {
    font-size: 12px;
    padding: 0 8px;
  }

  .pg-pdf-card {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 16px;
  }
  .pg-pdf-actions {
    width: 100%;
    justify-content: center;
  }
  .pg-pdf-btn span {
    display: none;
  }
  .pg-lb-img {
    max-width: 95vw;
    max-height: 70vh;
  }
  .pg-lb-close {
    top: 12px;
    right: 12px;
  }
  .pg-img-wrapper {
    margin: 1.5em 0;
    border-radius: 12px;
  }
  .pg-img-action {
    width: 36px;
    height: 36px;
  }
  .pg-video-container {
    margin: 1.5em 0;
    border-radius: 12px;
  }
  .article-body table {
    display: block;
    overflow-x: auto;
    font-size: 13px;
  }
  .article-body th,
  .article-body td {
    padding: 10px 12px;
    white-space: nowrap;
  }
  .article-body blockquote {
    padding: 16px 18px;
    margin: 1.5em 0;
  }
}

@media (max-width: 480px) {
  .pdf-body {
    height: 420px;
    min-height: 420px;
    padding: 10px 8px;
  }
  .pdf-title {
    display: none;
  }
  .pdf-btn {
    width: 32px;
    height: 32px;
    border-radius: 7px;
  }

  .pg-pdf-card {
    padding: 14px;
    border-radius: 12px;
  }
  .pg-lb-download {
    padding: 8px 18px;
    font-size: 13px;
  }
  .pg-img-wrapper {
    margin: 1.2em 0;
    border-radius: 10px;
  }
  .pg-video-container {
    margin: 1.2em 0;
    border-radius: 10px;
  }
  .article-body pre {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 0.85em;
  }
  .article-body blockquote {
    padding: 14px 16px;
    margin: 1.2em 0;
    border-radius: 0 10px 10px 0;
  }
}
