/* ============================================
   QR FOTO - Minimalist Live Gallery Styles
   ============================================ */

.gallery-page {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #090909;
  position: relative;
  cursor: none;
}

.gallery-page.show-cursor {
  cursor: default;
}

/* ---------- Slideshow ---------- */
.slideshow {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  animation: kenBurns 12s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.slide video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Elegant Ken Burns Effect */
@keyframes kenBurns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.04);
  }
}

/* ---------- Guest Name Overlay ---------- */
.slide-info {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-guest-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  padding: 12px 28px;
  background: rgba(17, 17, 17, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
  letter-spacing: -0.2px;
  display: inline-block;
}

.slide-time {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- New Upload Notification ---------- */
.new-upload-toast {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 100;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  color: #111111;
  font-weight: 600;
  font-size: 0.9rem;
  display: none;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.new-upload-toast.show {
  display: flex;
}

.new-upload-toast .toast-icon {
  display: flex;
  align-items: center;
  color: #111111;
}

/* ---------- Gallery Controls (on hover) ---------- */
.gallery-controls {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.4));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 50;
}

.gallery-page.show-cursor .gallery-controls {
  opacity: 1;
}

.control-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.control-btn svg {
  display: block;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.control-btn.active {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
}

/* Progress indicator for auto-play */
.slide-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 50;
}

.slide-progress-bar {
  height: 100%;
  background: #ffffff;
  opacity: 0.6;
  width: 0%;
  transition: width linear;
}

/* ---------- Counter ---------- */
.gallery-counter {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 50;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gallery-page.show-cursor .gallery-counter {
  opacity: 1;
}

/* ---------- Stats Overlay ---------- */
.gallery-stats {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 50;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-page.show-cursor .gallery-stats {
  opacity: 1;
}

.gallery-stat {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-stat strong {
  color: #ffffff;
  font-weight: 700;
}

/* ---------- Empty Gallery ---------- */
.gallery-empty {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
}

.gallery-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.3);
}

.gallery-empty-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: -0.3px;
}

.gallery-empty-text {
  font-size: 0.9rem;
}

/* Waiting animation dots */
.waiting-dots::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
  100% { content: ''; }
}

/* ---------- Fullscreen button styling ---------- */
.fullscreen-hint {
  position: fixed;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 18px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 50;
  pointer-events: none;
}

.gallery-page.show-cursor .fullscreen-hint {
  opacity: 1;
}

/* Guest message overlay on photos/videos */
.slide-guest-message {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  margin-top: 6px;
  max-width: 320px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  line-height: 1.4;
}

/* Centered Text Message Card Slide */
.slide-text-card {
  max-width: 600px;
  width: 90%;
  padding: 48px 40px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff;
}

.slide-text-quote-icon {
  font-size: 4rem;
  font-family: Georgia, serif;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1;
  margin-bottom: -10px;
}

.slide-text-content {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 24px;
  letter-spacing: -0.2px;
}

.slide-text-author {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* ---------- Sesli anı slaytı ---------- */
.slide-audio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.slide-audio-icon { color: var(--primary); opacity: .85; }

.slide-audio-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 46px;
}

.slide-audio-bars span {
  width: 5px;
  border-radius: 3px;
  background: var(--primary);
  opacity: .7;
  animation: audioBar 1.05s ease-in-out infinite;
}

@keyframes audioBar {
  0%, 100% { height: 10px; }
  50%      { height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .slide-audio-bars span { animation: none; height: 24px; }
}
