body {
 min-height: fit-content !important;
}

.korenel-flipbook-container {
  background-color: #1a2b3c;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-height: 85vh;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  height: calc(100vh - 70px);
}


.korenel-flipbook-shortcode-wrapper .korenel-flipbook-container {
  height: calc(100% - 40px);
}

.korenel-flipbook-viewer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  height: calc(100% - 120px);
  flex: 1;
  min-height: 0;
}

.korenel-flipbook {
  width: auto;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.korenel-flipbook-page-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  max-height: 100%;
  position: relative;
  cursor: move;
  transition: transform 0.3s ease;
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform-style: preserve-3d;
}

/* Vurgulama canvas'ı için stil */
.korenel-flipbook-page-container canvas {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 20;
}

/* Mobil cihazlar için iyileştirmeler */
@media (max-width: 768px) {
  .korenel-flipbook-page-container canvas {
    z-index: 200;
  }
}

.korenel-flipbook-page {
  height: 100%;
  max-height: 100%;
  width: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Taşmayı önle */
}

.korenel-flipbook-page.single {
  width: 50%;
}



.korenel-flipbook-page img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  transform: translateZ(0);
  display: block;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.korenel-flipbook-shortcode-wrapper {
  /* Inline stil ile gelen height değerini kullan */
  height: var(--flipbook-height, 600px);
  width: var(--flipbook-width, 100%);
  position: relative;
  margin: 20px auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

/* Fullscreen */
/* Tam ekran durumunda container stili */
.korenel-flipbook-container:fullscreen {
  padding: 20px; /* Daha az padding */
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Webkit için tam ekran stili */
.korenel-flipbook-container:-webkit-full-screen {
  padding: 20px; /* Daha az padding */
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Firefox için tam ekran stili */
.korenel-flipbook-container:-moz-full-screen {
  padding: 20px; /* Daha az padding */
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Tam ekran durumunda viewer stili */
.korenel-flipbook-container:fullscreen .korenel-flipbook-viewer,
.korenel-flipbook-container:-webkit-full-screen .korenel-flipbook-viewer,
.korenel-flipbook-container:-moz-full-screen .korenel-flipbook-viewer {
  max-width: 95vw; /* Genişletildi */
  height: 90vh; /* Genişletildi */
  margin: auto;
}

/* Tam ekran durumunda page container stili */
.korenel-flipbook-container:fullscreen .korenel-flipbook-page-container,
.korenel-flipbook-container:-webkit-full-screen
  .korenel-flipbook-page-container,
.korenel-flipbook-container:-moz-full-screen .korenel-flipbook-page-container {
  height: 100%;
  width: 100%;
}

/* Tam ekran durumunda sayfa stilleri */
.korenel-flipbook-container:fullscreen .korenel-flipbook-page,
.korenel-flipbook-container:-webkit-full-screen .korenel-flipbook-page,
.korenel-flipbook-container:-moz-full-screen .korenel-flipbook-page {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tam ekran durumunda görüntü stilleri - KALİTE İYİLEŞTİRMESİ */
.korenel-flipbook-container:fullscreen .korenel-flipbook-page img,
.korenel-flipbook-container:-webkit-full-screen .korenel-flipbook-page img,
.korenel-flipbook-container:-moz-full-screen .korenel-flipbook-page img {
  max-width: none; /* Sınırlama kaldırıldı */
  max-height: 90vh;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: high-quality; /* Modern tarayıcılar için */
  backface-visibility: hidden;
  transform: translateZ(0);
}

.korenel-flipbook-container:fullscreen .korenel-flipbook-feature-buttons,
.korenel-flipbook-container:-webkit-full-screen
  .korenel-flipbook-feature-buttons,
.korenel-flipbook-container:-moz-full-screen .korenel-flipbook-feature-buttons {
  left: 40px;
}

.korenel-flipbook-container:fullscreen .korenel-flipbook-controls,
.korenel-flipbook-container:-webkit-full-screen .korenel-flipbook-controls,
.korenel-flipbook-container:-moz-full-screen .korenel-flipbook-controls {
  bottom: 20px;
}

.korenel-flipbook-controls {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 25px;
  padding: 8px 15px;
  z-index: 100;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  height: 50px; /* Sabit yükseklik */
}

.korenel-flipbook-controls button {
  background-color: transparent;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  padding: 0 12px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.korenel-flipbook-controls button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.korenel-flipbook-prev-page:hover,
.korenel-flipbook-next-page:hover {
  background-color: transparent !important;
}

#korenel-flipbook-page-number {
  color: white;
  font-size: 14px;
  margin: 0 10px;
  min-width: 80px;
  text-align: center;
}

#korenel-flipbook-go-to-page {
  width: 50px;
  padding: 5px;
  margin-right: 10px;
  height: 30px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

#korenel-flipbook-go-to-page-btn {
  font-size: 14px;
  padding: 5px 10px;
  height: 30px;
  border-radius: 15px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
}

/* Input spin butonlarını kaldır */
#korenel-flipbook-go-to-page::-webkit-outer-spin-button,
#korenel-flipbook-go-to-page::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox için */
#korenel-flipbook-go-to-page[type="number"] {
  -moz-appearance: textfield;
}

/* Sol taraftaki özellik butonları */
.korenel-flipbook-feature-buttons {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 15px 10px;
  border-radius: 25px;
  z-index: 1900;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: left 0.3s ease;
}

.korenel-flipbook-feature-buttons button {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.korenel-flipbook-feature-buttons button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Search */

.korenel-flipbook-search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  overflow-y: auto;
}

.korenel-flipbook-search-content {
  position: relative;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  margin: 40px auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.korenel-flipbook-close-search {
  position: absolute;
  top: 0;
  right: 10px;
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  transition: color 0.3s ease;
  z-index: 1;
}

.korenel-flipbook-close-search:hover {
  color: #e74c3c;
}

.korenel-flipbook-search-form {
  display: flex;
  margin-bottom: 20px;
  padding-right: 40px;
}

#korenel-flipbook-search-input {
  flex-grow: 1;
  padding: 10px 15px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 4px 0 0 4px;
  transition: border-color 0.3s ease;
}

#korenel-flipbook-search-input:focus {
  outline: none;
  border-color: #ff5722;
}

#korenel-flipbook-search-button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #ff5722;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#korenel-flipbook-search-button:hover {
  background-color: #ff820e;
}

.korenel-flipbook-search-results {
  max-height: 400px;
  overflow-y: auto;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.korenel-flipbook-search-result-item {
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.korenel-flipbook-search-result-item:hover {
  background-color: #f5f5f5;
}

.korenel-flipbook-search-result-item:last-child {
  border-bottom: none;
}

/* Thumbnail menu ve toggle */
.korenel-flipbook-thumbnail-toggle {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: transparent;
  color: white;
  padding: 8px;
  cursor: pointer;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.korenel-flipbook-thumbnail-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.korenel-flipbook-thumbnail-menu {
  position: absolute;
  left: -200px;
  top: 0;
  bottom: 0;
  width: 200px;
  background-color: rgba(0, 0, 0, 0.9);
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  transition: left 0.3s ease;
}

.korenel-flipbook-thumbnail-menu.open ~ .korenel-flipbook-feature-buttons {
  left: 220px;
}

.korenel-flipbook-thumbnail-close {
  display: none;
}

.korenel-flipbook-thumbnail-menu::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #fa881e;
}

.korenel-flipbook-thumbnail-menu.open {
  left: 0;
}

.korenel-flipbook-feature-buttons.open {
  left: 220px;
}

.korenel-flipbook-thumbnail-toggle.open {
  left: calc(1% + 200px);
}

/* Thumbnail container */
.korenel-flipbook-thumbnail-container {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-timeline: --scroll 2000ms;
  /* 2 saniye */
  -webkit-scroll-timeline: --scroll 2000ms;
  padding: 10px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 87, 34, 0.5) rgba(0, 0, 0, 0.1);
}

.korenel-flipbook-thumbnail-container::-webkit-scrollbar {
  width: 6px;
}

.korenel-flipbook-thumbnail-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.korenel-flipbook-thumbnail-container::-webkit-scrollbar-thumb {
  background-color: rgba(255, 87, 34, 0.5);
  border-radius: 3px;
}

/* Individual thumbnails */
.korenel-flipbook-thumbnail {
  width: 100%;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  justify-content: center;
  border: 2px solid transparent;
  padding: 5px;
  box-sizing: border-box;
  border-radius: 4px;
  contain: layout style paint;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: background-color 0.3s ease;
}

.korenel-flipbook-thumbnail:hover {
  opacity: 0.85;
  transform: scale(1.03);
}

.korenel-flipbook-thumbnail.active {
  border-color: #ff5722;
  transform: scale(1.05);
  z-index: 1;
  background-color: rgba(255, 87, 34, 0.1);
  box-shadow: 0 0 10px rgba(255, 87, 34, 0.3);
}

.korenel-flipbook-thumbnail.active:hover {
  transform: scale(1.05);
  opacity: 1;
}

/* Thumbnail wrapper */
.thumbnail-wrapper {
  position: relative;
  width: 45%;
  background-color: #f0f0f0;
  margin: 0 2px;
  border-radius: 2px;
  overflow: hidden;
}

.thumbnail-wrapper::before {
  content: "";
  display: block;
  padding-top: 141.4%;
  /* A4 aspect ratio */
}

/* Thumbnail images */
.korenel-flipbook-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.korenel-flipbook-thumbnail img[src] {
  opacity: 1;
}

.korenel-flipbook-thumbnail.single .thumbnail-wrapper {
  width: 70%;
}

/* Page number indicator */

.thumbnail-page-number {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 2px 6px;
  font-size: 12px;
  z-index: 2;
}

.korenel-flipbook-thumbnail .thumbnail-wrapper {
  position: relative;
}

/* Loading Spinner Progress */

.korenel-flipbook-loading {
  position: absolute;
  inset: 0;
  /* top, right, bottom, left hepsini 0 yapar */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(226, 226, 226, 0.8);
  z-index: 1000;
}

.loading-spinner {
  position: relative;
  width: 50px;
  height: 50px;
}

.loading-spinner::before,
.loading-spinner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  animation: spin 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.loading-spinner::before {
  border: 5px solid rgba(255, 123, 0, 0.1);
  /* Turuncu rengin transparan hali */
}

.loading-spinner::after {
  border: 5px solid transparent;
  border-top-color: #ff7b00;
  /* Ana turuncu renk */
  animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ================ MOBİL GÖRÜNÜM ================ */
@media (max-width: 768px), (pointer: coarse) {
  /* Ana Container ve Viewer */
  .korenel-flipbook-container {
    height: calc(100vh - 70px);
    padding: 10px;
    justify-content: flex-start;
    align-items: center;
    position: relative;
  }

  .korenel-flipbook-viewer {
    max-width: 100%;
    height: calc(100% - 140px);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
  }

  /* Sayfa Görünümü */
  .korenel-flipbook-page.single,
  .korenel-flipbook-page.left,
  .korenel-flipbook-page.right {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: none;
    background: none;
    overflow: visible;
  }

  .korenel-flipbook-page::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: -1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  }

  .korenel-flipbook-page img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 1;
  }

  .korenel-flipbook-container:fullscreen .korenel-flipbook-page::before,
  .korenel-flipbook-container:-webkit-full-screen
    .korenel-flipbook-page::before,
  .korenel-flipbook-container:-moz-full-screen .korenel-flipbook-page::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: -1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  }

  /* Touch için özel stil ayarları */
  .korenel-flipbook-page-container {
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
  }

  .korenel-flipbook-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: move;
    transition: transform 0.3s ease;
  }

  /* Üst Kontrol Butonları */
  .korenel-flipbook-feature-buttons {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
    padding: 8px 15px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 25px;
    z-index: 100;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }

  .korenel-flipbook-feature-buttons button,
  .korenel-flipbook-thumbnail-toggle {
    background-color: transparent;
    color: white;
    font-size: 20px;
    padding: 8px;
    margin: 0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .korenel-flipbook-feature-buttons button:hover,
  .korenel-flipbook-thumbnail-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  /* Alt Kontrol Butonları */
  .korenel-flipbook-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    padding: 8px 15px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 25px;
    z-index: 100;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }

  .korenel-flipbook-controls button {
    font-size: 22px;
    padding: 0 12px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: transparent;
    border: none;
  }

  #korenel-flipbook-page-number {
    font-size: 14px;
    margin: 0 10px;
    min-width: 80px;
    text-align: center;
    color: white;
  }

  #korenel-flipbook-go-to-page {
    width: 50px;
    padding: 5px;
    height: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
  }

  #korenel-flipbook-go-to-page::-webkit-outer-spin-button,
  #korenel-flipbook-go-to-page::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  #korenel-flipbook-go-to-page[type="number"] {
    -moz-appearance: textfield;
  }

  #korenel-flipbook-go-to-page-btn {
    font-size: 14px;
    padding: 5px 10px;
    height: 30px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
  }

  /* Thumbnail Sistem */
  .korenel-flipbook-thumbnail-toggle {
    display: flex;
  }

  .korenel-flipbook-thumbnail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
  }

  .korenel-flipbook-thumbnail-overlay.open {
    display: block;
  }

  .korenel-flipbook-thumbnail-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 200px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1001;
    display: none;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transition: left 0.3s ease;
  }

  .korenel-flipbook-thumbnail-menu.open {
    left: 0;
    display: block;
  }

  .korenel-flipbook-thumbnail-menu::after {
    content: "";
    position: absolute;
    right: -2px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #fa881e;
  }

  .korenel-flipbook-thumbnail-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1002;
  }

  .korenel-flipbook-thumbnail-container {
    height: 100%;
    padding: 60px 15px 15px 15px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 87, 34, 0.5) rgba(0, 0, 0, 0.1);
  }

  .korenel-flipbook-thumbnail-container::-webkit-scrollbar {
    width: 6px;
  }

  .korenel-flipbook-thumbnail-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
  }

  .korenel-flipbook-thumbnail-container::-webkit-scrollbar-thumb {
    background-color: rgba(255, 87, 34, 0.5);
    border-radius: 3px;
  }

  .korenel-flipbook-thumbnail {
    width: 100%;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    justify-content: center;
    padding: 5px;
    box-sizing: border-box;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
  }

  .korenel-flipbook-thumbnail:hover {
    opacity: 0.85;
    transform: scale(1.02);
    background-color: rgba(255, 255, 255, 0.1);
  }

  .korenel-flipbook-thumbnail.active {
    background-color: rgba(255, 87, 34, 0.2);
    transform: scale(1.02);
    border: 1px solid rgba(255, 87, 34, 0.3);
  }

  .thumbnail-wrapper {
    position: relative;
    width: 60%;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  .thumbnail-wrapper::before {
    content: "";
    display: block;
    padding-top: 141.4%;
  }

  .korenel-flipbook-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .korenel-flipbook-thumbnail img[src] {
    opacity: 1;
  }

  .korenel-flipbook-thumbnail::after {
    content: attr(data-page-number);
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
  }

  /* Arama Özellikleri */
  .korenel-flipbook-search-content {
    width: 95%;
    margin: 20px auto;
    padding: 15px;
    border-radius: 15px;
  }

  .korenel-flipbook-search-form {
    padding: 0 10px;
    margin-top: 20px;
  }

  #korenel-flipbook-search-input,
  #korenel-flipbook-search-button {
    font-size: 16px;
    height: 40px;
  }

  /* Yatay Mod Ayarları */
  @media (orientation: landscape) {
    /* Ana görüntü için çift sayfa düzeni */
    .korenel-flipbook-page.single {
      width: 50%;
      /* Çift sayfa için genişlik */
      height: 100%;
      max-width: none;
    }

    .korenel-flipbook-page.left,
    .korenel-flipbook-page.right {
      width: 50%;
      height: 100%;
    }

    .korenel-flipbook-page img {
      height: 100%;
      width: auto;
      max-width: none;
    }

    /* Thumbnail düzeni için güncellemeler */
    .korenel-flipbook-thumbnail {
      width: 100%;
      display: flex;
      justify-content: center;
      gap: 4px;
    }

    .korenel-flipbook-thumbnail.single {
      /* İlk ve son sayfa için tek görüntü */
      .thumbnail-wrapper {
        width: 60%;
      }
    }

    .korenel-flipbook-thumbnail:not(.single) .thumbnail-wrapper {
      width: 45%;
      margin: 0;
    }

    .korenel-flipbook-thumbnail-menu {
      width: 280px;
      left: -280px;
    }

    .korenel-flipbook-thumbnail-menu.open {
      left: 0;
    }
  }
}

/* Yüksek DPI Ekranlar İçin Optimizasyonlar */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2),
  (max-width: 768px) and (min-resolution: 192dpi) {
  .korenel-flipbook-page img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Metin katmanı için stil tanımları */
.korenel-flipbook-text-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  transform-origin: top left;
}

.korenel-flipbook-text {
  position: absolute;
  color: transparent;
  cursor: text;
  white-space: nowrap;
  overflow: hidden;
  transform-origin: top left;
  font-family: Arial, sans-serif;
  line-height: 1;
}

.korenel-flipbook-text.highlighted {
  color: transparent !important;
  background-color: rgba(255, 255, 0, 0.5) !important;
  z-index: 2;
  mix-blend-mode: multiply;
}

/* Mobil cihazlar için geliştirmeler */
@media (max-width: 768px) {
  .korenel-flipbook-text-layer {
    /* Mobilde daha yüksek performans için */
    will-change: transform;
    transform: translateZ(0);
  }

  .korenel-flipbook-text.highlighted {
    color: transparent !important;
    background-color: rgba(255, 255, 0, 0.7) !important;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    border-radius: 3px;
  }
}

/* SEO içeriği için stil - görünür değil ama screen reader ve arama motorları için erişilebilir */
.korenel-flipbook-seo-content {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0.01;
  pointer-events: none;
  z-index: -1;
}

.korenel-flipbook-preview-widget {
  display: inline-block;
  vertical-align: top;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.korenel-flipbook-preview-widget:hover {
  transform: translateY(-2px);
}

.korenel-preview-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.korenel-preview-link:hover,
.korenel-preview-link:focus {
  text-decoration: none;
  color: inherit;
}

.korenel-preview-image-container {
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px 8px 0 0;
}

.korenel-preview-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.korenel-flipbook-preview-widget:hover .korenel-preview-cover-image {
  transform: scale(1.05);
}

.korenel-preview-content {
  padding: 15px;
}

.korenel-preview-title {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: #333;
}

.korenel-preview-meta {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.korenel-preview-date,
.korenel-preview-issue {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.korenel-preview-pages-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

.korenel-preview-button {
  display: inline-block;
  background: #ff5722;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.korenel-flipbook-preview-widget:hover .korenel-preview-button {
  background: #e64a19;
}

/* Card Style */
.korenel-preview-card {
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: white;
  overflow: hidden;
}

.korenel-preview-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Minimal Style */
.korenel-preview-minimal {
  background: transparent;
  border: none;
  box-shadow: none;
}

.korenel-preview-minimal .korenel-preview-image-container {
  border-radius: 8px;
  overflow: hidden;
}

.korenel-preview-minimal .korenel-preview-content {
  padding: 10px 0;
}

.korenel-preview-minimal:hover {
  transform: translateY(-1px);
}

/* Overlay Style */
.korenel-preview-overlay {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.korenel-preview-overlay .korenel-preview-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 20px 15px 15px;
}

.korenel-preview-overlay .korenel-preview-title {
  color: white;
}

.korenel-preview-overlay .korenel-preview-meta {
  color: rgba(255, 255, 255, 0.9);
}

.korenel-preview-overlay .korenel-preview-button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.korenel-preview-overlay:hover .korenel-preview-button {
  background: rgba(255, 255, 255, 0.3);
}

.korenel-preview-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 24px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.korenel-preview-overlay:hover .korenel-preview-play-icon {
  background: rgba(0, 0, 0, 0.8);
}

/* PDF Only */
.korenel-preview-pdf-only .korenel-preview-image-container {
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  height: 200px;
}

.korenel-preview-pdf-icon {
  font-size: 48px;
  color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
  .korenel-flipbook-preview-widget {
    width: 100% !important;
    max-width: 100%;
  }

  .korenel-preview-title {
    font-size: 15px;
  }

  .korenel-preview-meta {
    font-size: 12px;
    flex-direction: column;
    gap: 5px;
  }

  .korenel-preview-content {
    padding: 12px;
  }
}
