/**
 * Story Page Styles
 * Styles specific to story.html - individual story detail pages
 */

/* ============================================================================
   Hero Section
   ============================================================================ */

.story-hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 55px; /* Space for navbar */
}

@media (min-width: 768px) {
  .story-hero {
    min-height: 70vh;
    padding-top: 50px;
  }
}

.story-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(250, 248, 243, 0) 0%,
    rgba(250, 248, 243, 0.3) 40%,
    rgba(250, 248, 243, 0.9) 70%,
    rgba(250, 248, 243, 1) 100%
  );
  z-index: 1;
}

.story-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  filter: blur(0px);
  transform: scale(1.02);
}

.story-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* ============================================================================
   Floating Emoji Background
   ============================================================================ */

.emoji-bg {
  position: absolute;
  font-size: 6rem;
  opacity: 0.12;
  z-index: 0;
  filter: blur(2px);
  animation: float 6s ease-in-out infinite;
}

@media (min-width: 768px) {
  .emoji-bg {
    font-size: 12rem;
    opacity: 0.15;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* ============================================================================
   Play Button
   ============================================================================ */

.play-btn-hero {
  background: linear-gradient(135deg, #8b7355 0%, #6d5844 100%);
  color: white;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 30px rgba(139, 115, 85, 0.3);
  position: relative;
  overflow: hidden;
}

.play-btn-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.play-btn-hero:hover::before {
  left: 100%;
}

.play-btn-hero:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(139, 115, 85, 0.4);
}

.play-btn-hero:active {
  transform: translateY(-2px) scale(1);
}

/* ============================================================================
   Info Cards
   ============================================================================ */

.info-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 115, 85, 0.1);
  transition: all 0.3s ease;
}

.info-card h2 {
  font-size: 1.25rem;
}

@media (min-width: 768px) {
  .info-card h2 {
    font-size: 1.5rem;
  }
}

.info-card:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(139, 115, 85, 0.1);
  transform: translateY(-2px);
}

/* ============================================================================
   Learning Outcomes
   ============================================================================ */

.outcome-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.875rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(250,248,243,0.9) 100%);
  border-radius: 0.75rem;
  border: 1px solid rgba(139, 115, 85, 0.08);
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .outcome-item {
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 1rem;
    font-size: 1rem;
  }
}

.outcome-item:hover {
  background: white;
  box-shadow: 0 4px 15px rgba(139, 115, 85, 0.08);
  transform: translateX(4px);
}

.outcome-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b7355 0%, #6d5844 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  font-size: 0.65rem;
}

@media (min-width: 768px) {
  .outcome-check {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }
}

/* ============================================================================
   Feature Badges
   ============================================================================ */

.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(139, 115, 85, 0.08);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6d5844;
  transition: all 0.2s ease;
}

.feature-badge:hover {
  background: rgba(139, 115, 85, 0.12);
}

/* ============================================================================
   Stats Grid
   ============================================================================ */

.stat-item {
  text-align: center;
  padding: 0.875rem 0.5rem;
  background: linear-gradient(135deg, #f5ede0 0%, #ebe3d5 100%);
  border-radius: 0.75rem;
  border: 1px solid rgba(139, 115, 85, 0.1);
}

@media (min-width: 768px) {
  .stat-item {
    padding: 1.25rem;
    border-radius: 1rem;
  }
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: #8b7355;
  line-height: 1;
}

@media (min-width: 768px) {
  .stat-value {
    font-size: 1.75rem;
  }
}

.stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #8b7355;
  margin-top: 0.25rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
  }
}

/* ============================================================================
   Share Buttons
   ============================================================================ */

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

@media (min-width: 768px) {
  .share-btn {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
}

.share-btn:hover {
  transform: translateY(-3px);
}

.share-btn.twitter { background: #1DA1F2; color: white; }
.share-btn.twitter:hover { box-shadow: 0 8px 20px rgba(29, 161, 242, 0.4); }

.share-btn.facebook { background: #4267B2; color: white; }
.share-btn.facebook:hover { box-shadow: 0 8px 20px rgba(66, 103, 178, 0.4); }

.share-btn.whatsapp { background: #25D366; color: white; }
.share-btn.whatsapp:hover { box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4); }

.share-btn.copy { background: #8b7355; color: white; }
.share-btn.copy:hover { box-shadow: 0 8px 20px rgba(139, 115, 85, 0.4); }

/* ============================================================================
   Path Context Banner
   ============================================================================ */

.path-banner {
  background: linear-gradient(135deg, #f5ede0 0%, #ebe3d5 100%);
  border-left: 4px solid #8b7355;
}

/* ============================================================================
   Collaboration Badge
   ============================================================================ */

.collab-badge {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(219, 39, 119, 0.1) 100%);
  border: 1px solid rgba(236, 72, 153, 0.2);
}

/* ============================================================================
   Rating Stars
   ============================================================================ */

.star-filled { color: #f59e0b; }
.star-empty { color: #d1d5db; }

/* ============================================================================
   Difficulty Badges
   ============================================================================ */

.difficulty-beginner { 
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); 
  color: #166534; 
  border-color: #86efac; 
}

.difficulty-intermediate { 
  background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%); 
  color: #854d0e; 
  border-color: #fde047; 
}

.difficulty-advanced { 
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); 
  color: #991b1b; 
  border-color: #fca5a5; 
}

/* ============================================================================
   Coming Soon Overlay
   ============================================================================ */

.coming-soon-overlay {
  background: linear-gradient(135deg, rgba(139, 115, 85, 0.95) 0%, rgba(109, 88, 68, 0.95) 100%);
}

/* ============================================================================
   Scroll Indicator
   ============================================================================ */

.scroll-indicator {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}
