/* ==========================================================================
   LEONIE'S ADVENTURE REELS - 10-PHOTO STORY PLAYER & GALLERY STYLES
   ========================================================================== */

/* Reels Header & Showcase Banner */
.reels-hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.reels-hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 0.75rem;
}

.reels-hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2rem;
}

/* Reels Gallery Grid */
.reels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.reel-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  aspect-ratio: 9 / 14;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.reel-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.reel-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reel-card:hover .reel-bg-img {
  transform: scale(1.08);
}

.reel-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.4) 40%, rgba(15, 23, 42, 0.95) 100%);
}

.reel-card-top {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.reel-badge-count {
  padding: 0.35rem 0.75rem;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.reel-mood-tag {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.reel-card-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.reel-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.reel-card-location {
  font-size: 0.85rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.reel-card-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

/* ==========================================================================
   IMMERSIVE REEL STORY PLAYER MODAL
   ========================================================================== */

.story-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 8, 15, 0.95);
  backdrop-filter: blur(30px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.story-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 90vh;
  max-height: 820px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000000;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(132, 94, 194, 0.3);
  display: flex;
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
}

/* Multi-Segment Progress Bars (Up to 10 photos) */
.story-progress-bar-wrap {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 10;
  display: flex;
  gap: 4px;
}

.story-progress-seg {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.story-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 3px;
}

.story-progress-seg.completed .story-progress-fill {
  width: 100%;
}

.story-progress-seg.active .story-progress-fill {
  width: 0%;
  /* Animation handled via JS timer */
}

/* Story Header Overlay */
.story-header {
  position: absolute;
  top: 1.75rem;
  left: 1rem;
  right: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.story-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.story-author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--accent-purple);
  object-fit: cover;
}

.story-author-info {
  display: flex;
  flex-direction: column;
}

.story-author-name {
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.story-author-location {
  font-size: 0.75rem;
  color: #cbd5e1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.story-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.story-btn-icon {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.story-btn-icon:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Story Media View & Touch Areas */
.story-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000000;
}

.story-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: subtleZoom 6s ease-out forwards;
}

@keyframes subtleZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

/* Tap Zones */
.story-tap-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 5;
  cursor: pointer;
}

.story-tap-prev {
  left: 0;
  width: 35%;
}

.story-tap-next {
  right: 0;
  width: 65%;
}

/* Bottom Caption Bar */
.story-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 2.5rem 1.25rem 1.25rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 70%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.story-caption-text {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.story-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.story-index-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
}

.story-like-btn {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.9rem;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.story-like-btn:hover {
  background: rgba(255, 107, 107, 0.3);
  border-color: var(--accent-coral);
  transform: scale(1.08);
}

.story-like-btn.liked {
  background: var(--accent-coral);
  border-color: var(--accent-coral);
}

/* Floating Hearts Effect */
.floating-heart {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  font-size: 2rem;
  pointer-events: none;
  z-index: 20;
  animation: floatUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes floatUp {
  0% { opacity: 1; transform: translateY(0) scale(0.6); }
  50% { opacity: 0.9; transform: translateY(-80px) scale(1.3) rotate(-15deg); }
  100% { opacity: 0; transform: translateY(-160px) scale(1) rotate(15deg); }
}
