/**
 * Ertech Flipbook — PDF flipbook görünümü
 */

.ertech-flipbook .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ertech-flipbook {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 1.5rem auto;
  border-radius: 12px;
  background: linear-gradient(145deg, #1a2744 0%, #0f1729 100%);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.08),
    0 24px 48px rgba(15, 23, 41, 0.35);
  overflow: hidden;
  min-height: 280px;
}

.ertech-flipbook__inner {
  position: relative;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.ertech-flipbook__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.ertech-flipbook__spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #6eb0ff;
  border-radius: 50%;
  animation: ertech-fb-spin 0.75s linear infinite;
}

@keyframes ertech-fb-spin {
  to {
    transform: rotate(360deg);
  }
}

.ertech-flipbook__book {
  display: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  border-radius: 4px;
}

.ertech-flipbook.is-ready .ertech-flipbook__loading {
  display: none;
}

.ertech-flipbook.is-ready .ertech-flipbook__book {
  display: block;
}

.ertech-flipbook__err {
  margin: 0;
  padding: 2rem;
  text-align: center;
  color: #fecaca;
  font-size: 0.95rem;
}

.ertech-flipbook .page {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ertech-flipbook .page canvas {
  display: block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.ertech-flipbook__hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  margin: 0;
}

.ertech-flipbook__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: 28rem;
  padding: 0.35rem 0;
}

.ertech-flipbook__nav.is-single-page {
  opacity: 0.45;
  pointer-events: none;
}

.ertech-flipbook__arrow {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}

.ertech-flipbook__arrow:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
}

.ertech-flipbook__arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ertech-flipbook__page-indicator {
  min-width: 5rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.88);
  font-variant-numeric: tabular-nums;
}

/* StPageFlip alt gölge */
.stf__wrapper {
  margin: 0 auto;
}
