/* ==========================================================================
   SahaayaNet - Sahaaya Emergency Product Page Stylesheet (emergency.css)
   Extends style.css for product landing features, timelines, gallery lightbox & accordion FAQs.
   ========================================================================== */

/* Breadcrumb */
.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: var(--primary);
  font-weight: 700;
}

/* Product Hero Badges & Specs */
.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.4rem;
  padding: 0.4rem 0.9rem;
  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);
}

/* Emergency Visual Radar Animation */
.emergency-radar-stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.radar-pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(239, 68, 68, 0.25);
  animation: radarPulse 3s infinite ease-out;
  pointer-events: none;
}

.ring-1 { width: 280px; height: 280px; animation-delay: 0s; }
.ring-2 { width: 380px; height: 380px; animation-delay: 1s; }
.ring-3 { width: 480px; height: 480px; animation-delay: 2s; }

@keyframes radarPulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.1); opacity: 0; }
}

.emergency-phone-frame {
  position: relative;
  width: 250px;
  height: 480px;
  background: #0F172A;
  border-radius: 38px;
  padding: 10px;
  box-shadow: 0 25px 50px -12px rgba(239, 68, 68, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.15);
  z-index: 5;
}

.sos-trigger-card {
  position: absolute;
  top: 18%;
  right: -10%;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 15px 30px rgba(239, 68, 68, 0.2);
  z-index: 10;
  animation: floatOrbit 5s ease-in-out infinite;
}

.sos-badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

.live-location-badge {
  position: absolute;
  bottom: 12%;
  left: -8%;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.2);
  z-index: 10;
  animation: floatOrbit 6s ease-in-out infinite alternate;
}

/* Feature Card Hover & Icons */
.feature-card-emerg {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 2.25rem 1.75rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card-emerg:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(239, 68, 68, 0.3);
}

.feature-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(239, 68, 68, 0.08);
  color: #EF4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: var(--transition-fast);
}

.feature-card-emerg:hover .feature-icon-box {
  background: #EF4444;
  color: #FFFFFF;
  transform: rotate(8deg) scale(1.05);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

/* Vertical Timeline (How It Works) */
.timeline-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--bg-main) 0%, rgba(239, 68, 68, 0.05) 100%);
  position: relative;
}

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

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(180deg, #2563EB 0%, #EF4444 50%, #10B981 100%);
  transform: translateX(-50%);
  border-radius: 2px;
}

@media (max-width: 767px) {
  .timeline-container::before {
    left: 28px;
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  width: 50%;
  padding: 0 2rem;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

@media (max-width: 767px) {
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 4.5rem;
    padding-right: 1rem;
    text-align: left !important;
  }
}

.timeline-badge {
  position: absolute;
  top: 10px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid #2563EB;
  color: #2563EB;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 5;
}

.timeline-item.left .timeline-badge {
  right: -21px;
}

.timeline-item.right .timeline-badge {
  left: -21px;
}

@media (max-width: 767px) {
  .timeline-item.left .timeline-badge,
  .timeline-item.right .timeline-badge {
    left: 8px;
  }
}

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

.timeline-content-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

/* Screenshots Gallery & Lightbox */
.screenshots-section {
  padding: 6rem 0;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .screenshot-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .screenshot-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.screenshot-mockup-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 0.6rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.screenshot-mockup-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: var(--shadow-hover);
  border-color: #EF4444;
}

.screenshot-preview-box {
  background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
  border-radius: 14px;
  height: 320px;
  display: flex;
  flex-direction: column;
  padding: 0.85rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.screenshot-overlay-zoom {
  position: absolute;
  inset: 0;
  background: rgba(239, 68, 68, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: var(--transition-fast);
  font-weight: 700;
  font-size: 0.9rem;
  backdrop-filter: blur(4px);
}

.screenshot-mockup-card:hover .screenshot-overlay-zoom {
  opacity: 1;
}

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

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

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

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--primary-light);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  transition: all 0.3s cubic-bezier(0, 1, 0, 1);
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem 1.5rem;
  transition: all 0.3s ease-in-out;
}

/* Future Features Pills */
.future-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .future-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.future-card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  border: 1px dashed var(--border-light);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.future-card:hover {
  border-style: solid;
  border-color: #EF4444;
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.future-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* Related Applications Grid */
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.related-card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.related-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
