/* ==========================================================================
   SahaayaNet - SafeRoute Product Page Stylesheet (saferoute.css)
   Extends style.css for safe navigation AI features, circular safety scores, 
   route maps preview, vertical timeline, 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: #0EA5E9;
  font-weight: 700;
}

/* Product Hero Badges & Meta */
.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);
}

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

.route-radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed rgba(14, 165, 233, 0.3);
  animation: radarRotate 20s linear infinite;
  pointer-events: none;
}

.ring-sr-1 { width: 300px; height: 300px; }
.ring-sr-2 { width: 420px; height: 420px; animation-direction: reverse; }

@keyframes radarRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.saferoute-phone-frame {
  position: relative;
  width: 260px;
  height: 500px;
  background: #0F172A;
  border-radius: 40px;
  padding: 10px;
  box-shadow: 0 25px 50px -12px rgba(14, 165, 233, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15);
  z-index: 5;
}

/* Floating Badges on Hero Phone */
.ai-score-floating-badge {
  position: absolute;
  top: 15%;
  right: -12%;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 15px 30px rgba(16, 185, 129, 0.25);
  z-index: 10;
  animation: floatOrbit 5s ease-in-out infinite;
}

.police-floating-badge {
  position: absolute;
  bottom: 15%;
  left: -10%;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 15px 30px rgba(14, 165, 233, 0.25);
  z-index: 10;
  animation: floatOrbit 6s ease-in-out infinite alternate;
}

/* Problem Cards (Why SafeRoute?) */
.problem-card {
  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;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.problem-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(14, 165, 233, 0.4);
}

.problem-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(16, 185, 129, 0.12));
  color: #0EA5E9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-fast);
}

.problem-card:hover .problem-icon-wrapper {
  background: linear-gradient(135deg, #0EA5E9, #10B981);
  color: #FFFFFF;
  transform: scale(1.08) rotate(-5deg);
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.35);
}

/* Feature Cards Grid */
.feature-card-sr {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card-sr:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: #10B981;
}

.sr-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(14, 165, 233, 0.1);
  color: #0EA5E9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  transition: var(--transition-fast);
}

.feature-card-sr:hover .sr-feature-icon {
  background: linear-gradient(135deg, #0EA5E9, #10B981);
  color: #FFFFFF;
  transform: rotate(6deg) scale(1.05);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

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

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

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

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

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

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

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

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

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

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

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

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

.timeline-card-sr {
  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-card-sr:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #0EA5E9;
}

/* Safety Score Dashboard Section */
.safety-score-card {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: 28px;
  padding: 3rem 2.5rem;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 50px -12px rgba(14, 165, 233, 0.25);
  position: relative;
  overflow: hidden;
}

.circular-score-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0 auto 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circular-score-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circular-score-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 12;
}

.circular-score-progress {
  fill: none;
  stroke: url(#scoreGradient);
  stroke-width: 12;
  stroke-dasharray: 440;
  stroke-dashoffset: 26; /* ~94% filled */
  stroke-linecap: round;
  transition: stroke-dashoffset 2s ease-in-out;
}

.score-center-text {
  position: absolute;
  text-align: center;
}

.score-number {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #38BDF8, #4ADE80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.score-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #94A3B8;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 0.2rem;
}

/* Interactive Map Route Preview Box */
.map-preview-card {
  background: var(--card-bg);
  border-radius: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.map-placeholder-canvas {
  height: 380px;
  background: #020617;
  position: relative;
  background-image: 
    radial-gradient(rgba(56, 189, 248, 0.15) 1px, transparent 1px),
    radial-gradient(rgba(74, 222, 128, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-marker {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.map-marker.start { top: 25%; left: 15%; border-color: #38BDF8; }
.map-marker.end { bottom: 25%; right: 15%; border-color: #4ADE80; }
.map-marker.hospital { top: 35%; right: 30%; border-color: #EF4444; }
.map-marker.police { bottom: 35%; left: 35%; border-color: #2563EB; }

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

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

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

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

.screenshot-card-sr {
  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-card-sr:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: var(--shadow-hover);
  border-color: #0EA5E9;
}

.screenshot-box-sr {
  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-sr {
  position: absolute;
  inset: 0;
  background: rgba(14, 165, 233, 0.85);
  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-card-sr:hover .screenshot-overlay-sr {
  opacity: 1;
}

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

.faq-item-sr {
  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-sr {
  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-sr {
  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-sr.active .faq-icon-sr {
  transform: rotate(45deg);
  background: rgba(14, 165, 233, 0.15);
  color: #0EA5E9;
}

.faq-answer-sr {
  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-sr.active .faq-answer-sr {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem 1.5rem;
  transition: all 0.3s ease-in-out;
}

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

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

.future-card-sr {
  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-sr:hover {
  border-style: solid;
  border-color: #0EA5E9;
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.future-icon-sr {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.1);
  color: #0EA5E9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
