/* GENEL */
body {
  background-color: #0f0f0f;
  color: #e5e5e5;
  -webkit-tap-highlight-color: transparent;
}

.glass-nav {
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.safe-pb {
  padding-bottom: env(safe-area-inset-bottom, 20px);
}

.backdrop-active {
  backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.85);
}

/* PRELOADER */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0f0f0f;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s;
}

#preloader h1 {
  animation: pulseGold 2s infinite;
}

@keyframes pulseGold {
  0%,
  100% {
    opacity: 1;
    color: #fff;
  }
  50% {
    opacity: 0.5;
    color: #f59e0b;
  }
}

/* PDF MODAL TASARIMI */
#pdfViewer {
  background-color: rgba(0, 0, 0, 0.9);
}

#pdfCanvas {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.pdf-modal-inner {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

@media (min-width: 768px) {
  .pdf-modal-inner {
    max-width: 1024px;
    max-height: 90vh;
    margin: auto;
    border-radius: 0.75rem;
  }
}

/* MOBİL ALT BAR HİZALAMA */
.mobile-bottom {
  max-width: 480px;
  margin: 0 auto;
}

/* TAM RESPONSIVE MOBİL ALT BAR */
.mobile-bottom-bar {
  min-height: 74px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.4);
}

/* Butonlar için responsive boyutlar */
.mobile-bottom-btn {
  flex: 1;
  min-width: 0;
  padding: 8px 4px;
  position: relative;
}

.mobile-bottom-btn i {
  font-size: clamp(18px, 5vw, 22px);
  transition: all 0.2s ease;
}

.mobile-bottom-btn span {
  font-size: clamp(9px, 2.5vw, 11px);
  line-height: 1.2;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Merkez buton özel stil */
.center-bottom-btn {
  position: relative;
  margin-top: -28px;
  z-index: 10;
}

.center-bottom-btn .btn-circle {
  width: clamp(64px, 18vw, 72px);
  height: clamp(64px, 18vw, 72px);
  border-width: 4px;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.center-bottom-btn i {
  font-size: clamp(22px, 6vw, 26px);
}

.center-bottom-btn span {
  margin-top: 6px;
  font-size: clamp(10px, 3vw, 12px);
}

/* Dokunma feedback */
.mobile-bottom-btn:active i {
  transform: scale(0.95);
}

/* Landscape mod için düzenleme */
@media (orientation: landscape) and (max-height: 500px) {
  .mobile-bottom-bar {
    min-height: 60px;
  }

  .center-bottom-btn {
    margin-top: -20px;
  }

  .center-bottom-btn .btn-circle {
    width: 56px;
    height: 56px;
  }
}

/* Çok küçük ekranlar */
@media (max-width: 320px) {
  .mobile-bottom-bar {
    padding-left: 8px;
    padding-right: 8px;
  }

  .mobile-bottom-btn span {
    font-size: 8px;
  }
}

/* GALERİ LAZYLOAD PLACEHOLDER */
.gallery-img-wrapper {
  position: relative;
  overflow: hidden;
  background: #0b0b0b;
}

.gallery-placeholder {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, #1f1f1f, #050505 55%);
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.gallery-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 20%,
    transparent 40%
  );
  transform: translateX(-100%);
  animation: galleryShimmer 1.4s infinite;
}

@keyframes galleryShimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: brightness(0.4) blur(4px);
  transition: opacity 0.6s ease-out, filter 0.6s ease-out;
}

.gallery-img.loaded {
  opacity: 1;
  filter: brightness(1) blur(0);
}

.gallery-placeholder.hidden {
  opacity: 0;
  pointer-events: none;
}