/* ==========================================================================
   SahaayaNet - FoodSave Product Page Stylesheet (foodsave.css)
   Official product landing page styles for FoodSave - Save Food. Feed Lives.
   Extends style.css with emerald green eco healthcare theme, hero stage,
   live donation feeds, interactive map placeholder, screenshot carousel & timeline.
   ========================================================================== */

/* Theme Colors for FoodSave: Emerald (#10B981) & Lime/Green (#84CC16) & Amber (#F59E0B) */
:root {
  --fs-primary: #10B981;
  --fs-primary-dark: #059669;
  --fs-lime: #84CC16;
  --fs-amber: #F59E0B;
  --fs-blue: #0EA5E9;
  --fs-purple: #8B5CF6;
}

/* Breadcrumb Navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  color: var(--text-light);
  font-size: 0.75rem;
}

.breadcrumb-current {
  color: #10B981;
  font-weight: 700;
}

/* Product Hero Meta Badges */
.product-meta-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.meta-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-fast);
}

.meta-badge-item:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.4);
}

/* Hero Visual Stage */
.foodsave-hero-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.hero-glow-backdrop-green {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, rgba(132, 204, 22, 0.15) 50%, transparent 70%);
  filter: blur(45px);
  animation: floatGlowGreen 7s ease-in-out infinite alternate;
}

@keyframes floatGlowGreen {
  0% { transform: scale(0.9) translateY(0); opacity: 0.7; }
  100% { transform: scale(1.1) translateY(-15px); opacity: 1; }
}

/* Floating Badges around Stage */
.floating-shape-fs {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 0.6rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  z-index: 10;
  animation: floatBounceFs 4s ease-in-out infinite alternate;
}

.floating-shape-fs.fs-1 { top: 20px; left: -10px; animation-delay: 0s; }
.floating-shape-fs.fs-2 { top: 110px; right: -15px; animation-delay: 1s; }
.floating-shape-fs.fs-3 { bottom: 120px; left: -20px; animation-delay: 2s; }
.floating-shape-fs.fs-4 { bottom: 30px; right: -10px; animation-delay: 1.5s; }

@keyframes floatBounceFs {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-12px) rotate(2deg); }
}

/* Phone Frame Mockup */
.foodsave-phone-frame {
  position: relative;
  width: 275px;
  height: 505px;
  background: #0F172A;
  border-radius: 40px;
  padding: 10px;
  box-shadow: 0 25px 60px -12px rgba(16, 185, 129, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15);
  z-index: 5;
}

.phone-screen-container-fs {
  background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
  width: 100%;
  height: 100%;
  border-radius: 30px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: white;
}

.phone-header-fs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.6rem;
}

.status-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  animation: pulseDotFs 1.8s infinite;
}

@keyframes pulseDotFs {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

/* Hero Donation Card Inside Phone */
.hero-donation-card {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  margin: 0.5rem 0;
}

.food-big-badge {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #34D399, #A3E635);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0.2rem 0;
}

/* Problem Section Cards */
.problem-card-fs {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-normal);
}

.problem-card-fs:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(16, 185, 129, 0.3);
}

.problem-icon-wrapper-fs {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
}

/* 8 Features Grid */
.features-grid-8-fs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card-foodsave {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card-foodsave::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #10B981, #84CC16);
  opacity: 0;
  transition: var(--transition-fast);
}

.feature-card-foodsave:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(16, 185, 129, 0.3);
}

.feature-card-foodsave:hover::before {
  opacity: 1;
}

.feature-icon-badge-fs {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

/* Timeline (How It Works) */
.timeline-section-fs {
  padding: 5rem 0;
  background: var(--bg-main);
  position: relative;
}

.timeline-container-fs {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-container-fs::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(180deg, #10B981 0%, #84CC16 50%, #F59E0B 100%);
  transform: translateX(-50%);
  border-radius: 4px;
}

.timeline-step-fs {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.timeline-step-fs:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-step-fs:nth-child(odd) .timeline-content-card-fs {
  text-align: right;
}

.timeline-node-fs {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 3px solid #10B981;
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #10B981;
  font-size: 1.1rem;
  z-index: 5;
}

.timeline-content-card-fs {
  width: 44%;
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-fast);
}

.timeline-content-card-fs:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.4);
}

/* Impact Dashboard Metrics */
.impact-grid-fs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.impact-stat-card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: var(--transition-fast);
}

.impact-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.3);
}

.impact-counter {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.impact-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* Feed Box & Tabs */
.dashboard-feed-box-fs {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
}

.dash-tabs-bar-fs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.dash-tab-btn-fs {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.dash-tab-btn-fs.active, .dash-tab-btn-fs:hover {
  background: #10B981;
  color: white;
  border-color: #10B981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.dash-items-list-fs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.dash-item-card-fs {
  background: var(--bg-main);
  border-radius: 16px;
  padding: 1.1rem;
  border: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

.dash-item-card-fs:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.3);
}

/* Interactive Map Placeholder Box */
.donation-map-card {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: var(--radius-card);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
  color: white;
  position: relative;
  overflow: hidden;
}

.map-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.map-visual-container {
  position: relative;
  width: 100%;
  height: 380px;
  background: #091322;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.map-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(16, 185, 129, 0.15) 1px, transparent 1px), radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
}

/* Map Pins */
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
  transition: transform 0.3s ease;
}

.map-pin:hover {
  transform: translate(-50%, -50%) scale(1.25);
}

.pin-bubble {
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.pin-bubble.donor { background: #10B981; color: white; border: 1px solid #34D399; }
.pin-bubble.ngo { background: #2563EB; color: white; border: 1px solid #60A5FA; }
.pin-bubble.volunteer { background: #F59E0B; color: white; border: 1px solid #FBBF24; }
.pin-bubble.shelter { background: #8B5CF6; color: white; border: 1px solid #C084FC; }

.pin-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.4);
  animation: mapPulse 2s infinite;
  z-index: -1;
}

@keyframes mapPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Screenshots Carousel */
.screenshots-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.screenshots-scroll-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0.25rem;
  scrollbar-width: thin;
}

.screenshots-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.screenshots-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.3);
  border-radius: 10px;
}

.screenshot-mockup-card-fs {
  min-width: 240px;
  max-width: 240px;
  background: #0F172A;
  border-radius: 28px;
  padding: 12px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: var(--transition-normal);
  flex-shrink: 0;
}

.screenshot-mockup-card-fs:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: rgba(16, 185, 129, 0.5);
}

.mockup-inner-screen-fs {
  background: linear-gradient(180deg, #1E293B, #0F172A);
  border-radius: 20px;
  padding: 1rem;
  height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tech Stack Grid */
.tech-grid-fs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.tech-card-fs {
  background: var(--card-bg);
  border-radius: 18px;
  padding: 1.25rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition-fast);
}

.tech-card-fs:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.3);
}

.tech-icon-box-fs {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Future Roadmap Grid */
.future-grid-fs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.future-card-fs {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  position: relative;
  transition: var(--transition-normal);
}

.future-card-fs:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.3);
}

.future-tag-fs {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.2);
  margin-bottom: 0.75rem;
}

/* FAQ Accordion */
.faq-list-fs {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item-fs {
  background: var(--card-bg);
  border-radius: 18px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-fast);
}

.faq-question-fs {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
}

.faq-chevron-fs {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
  color: #10B981;
}

.faq-answer-fs {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item-fs.active .faq-chevron-fs {
  transform: rotate(180deg);
}

.faq-item-fs.active .faq-answer-fs {
  max-height: 250px;
  padding: 0 1.5rem 1.25rem 1.5rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .foodsave-hero-stage {
    height: 440px;
  }
  .foodsave-phone-frame {
    width: 250px;
    height: 460px;
  }
  .timeline-container-fs::before {
    left: 20px;
  }
  .timeline-node-fs {
    left: 20px;
  }
  .timeline-step-fs {
    flex-direction: row !important;
    padding-left: 60px;
  }
  .timeline-step-fs .timeline-content-card-fs {
    width: 100% !important;
    text-align: left !important;
  }
}

@media (max-width: 640px) {
  .foodsave-hero-stage {
    height: 380px;
  }
  .foodsave-phone-frame {
    width: 220px;
    height: 410px;
  }
  .floating-shape-fs {
    display: none;
  }
  .impact-counter {
    font-size: 1.8rem;
  }
  .map-visual-container {
    height: 300px;
  }
}
