/* ==========================================================================
   SahaayaNet - LostLink Product Page Stylesheet (lostlink.css)
   Official product landing page styles for LostLink - Smart Lost & Found Platform.
   Extends style.css with glassmorphic cards, AI matching hero stage, floating items,
   dashboard metrics, interactive map radar, screenshot lightbox & timeline.
   ========================================================================== */

/* 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: var(--primary);
  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(37, 99, 235, 0.3);
}

/* LostLink Hero Stage & Phone Mockup */
.lostlink-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 {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, rgba(37, 99, 235, 0.15) 50%, transparent 70%);
  filter: blur(45px);
  animation: floatGlow 7s ease-in-out infinite alternate;
}

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

/* Floating Item Icons around Hero Stage */
.floating-shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  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: floatBounce 4s ease-in-out infinite alternate;
}

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

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

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

.phone-screen-container {
  background: linear-gradient(180deg, #1E293B 0%, #0F172A 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 {
  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 {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Hero Illustration Graphic - Reunion Scene */
.hero-reunion-illustration {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1rem;
  text-align: center;
  margin: 0.5rem 0;
  position: relative;
}

.reunion-avatars {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 0.5rem;
}

.avatar-bubble {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.avatar-bubble.searcher { background: linear-gradient(135deg, #EF4444, #F59E0B); }
.avatar-bubble.finder { background: linear-gradient(135deg, #10B981, #0EA5E9); }

.ai-beam-line {
  height: 2px;
  flex: 1;
  margin: 0 0.5rem;
  background: linear-gradient(90deg, #F59E0B, #10B981);
  position: relative;
  overflow: hidden;
}

.ai-beam-line::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 20px;
  height: 6px;
  background: #FFFFFF;
  border-radius: 3px;
  box-shadow: 0 0 8px #0EA5E9;
  animation: beamMove 2s infinite linear;
}

@keyframes beamMove {
  0% { left: 0%; }
  100% { left: 100%; }
}

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

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #EF4444, #F59E0B);
}

.problem-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.problem-icon-wrapper {
  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.75rem;
  margin-bottom: 1.25rem;
}

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

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

.feature-card-lostlink:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(14, 165, 233, 0.3);
}

.feature-card-lostlink::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.feature-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(37, 99, 235, 0.08));
  border: 1px solid rgba(14, 165, 233, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

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

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

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

.timeline-step {
  display: flex;
  justify-content: flex-end;
  padding-right: 3rem;
  position: relative;
  margin-bottom: 2.5rem;
  width: 50%;
}

.timeline-step:nth-child(even) {
  align-self: flex-end;
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 3rem;
  margin-left: 50%;
}

.timeline-node {
  position: absolute;
  top: 15px;
  right: -20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 3px solid #0EA5E9;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #0EA5E9;
  z-index: 5;
}

.timeline-step:nth-child(even) .timeline-node {
  right: auto;
  left: -20px;
}

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

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

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

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

.dash-stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 165, 233, 0.3);
}

.dash-counter {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.dash-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

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

.dash-tab-btn.active, .dash-tab-btn:hover {
  background: #0EA5E9;
  color: white;
  border-color: #0EA5E9;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

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

.dash-item-card {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 1.25rem;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dash-item-card:hover {
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  border-color: rgba(14, 165, 233, 0.3);
}

/* Interactive Map Canvas Container */
.map-canvas-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.map-controls-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.map-filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.map-pill {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.map-pill.active {
  background: #0F172A;
  color: white;
  border-color: #0F172A;
}

.map-stage-area {
  width: 100%;
  height: 420px;
  background: #0F172A;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* SVG Map Grid Overlay */
.map-grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px, 40px 40px, 40px 40px;
}

.map-pin {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  border: 2px solid white;
  transform: translate(-50%, -50%);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}

.map-pin:hover {
  transform: translate(-50%, -50%) scale(1.3);
  z-index: 20;
}

.map-pin.lost { background: linear-gradient(135deg, #EF4444, #B91C1C); }
.map-pin.found { background: linear-gradient(135deg, #10B981, #047857); }
.map-pin.police { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.map-pin.desk { background: linear-gradient(135deg, #F59E0B, #D97706); }

/* Radar Radius Ring on Map */
.map-radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  height: 260px;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(14, 165, 233, 0.5);
  border-radius: 50%;
  pointer-events: none;
  animation: radarSweep 8s linear infinite;
}

@keyframes radarSweep {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Mobile Screenshot Carousel & Mockup Cards */
.screenshots-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.screenshots-scroll-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1.5rem 0.5rem;
  scrollbar-width: none;
}

.screenshots-scroll-container::-webkit-scrollbar {
  display: none;
}

.screenshot-mockup-card {
  flex: 0 0 280px;
  scroll-snap-align: center;
  background: #0F172A;
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
}

.screenshot-mockup-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover), 0 0 25px rgba(14, 165, 233, 0.3);
}

.mockup-inner-screen {
  background: linear-gradient(180deg, #1E293B, #0F172A);
  height: 460px;
  border-radius: 28px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  overflow: hidden;
}

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

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

.tech-card:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: var(--shadow-hover);
}

.tech-icon-box {
  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;
}

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

.future-card {
  background: var(--card-bg);
  border: 1px dashed rgba(14, 165, 233, 0.3);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-normal);
  position: relative;
}

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

.future-tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(14, 165, 233, 0.1);
  color: #0EA5E9;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

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

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

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

.faq-chevron {
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: #0EA5E9;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease-out;
  padding: 0 1.75rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

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

/* Responsive Overrides */
@media (max-width: 992px) {
  .timeline-container::before {
    left: 20px;
  }

  .timeline-step {
    width: 100%;
    padding-left: 3.5rem;
    padding-right: 0;
    margin-left: 0 !important;
  }

  .timeline-step:nth-child(even) {
    justify-content: flex-start;
  }

  .timeline-node {
    left: 2px !important;
    right: auto !important;
  }
}

@media (max-width: 640px) {
  .lostlink-hero-stage {
    height: 440px;
  }

  .lostlink-phone-frame {
    width: 240px;
    height: 440px;
  }

  .floating-shape {
    display: none;
  }

  .dash-counter {
    font-size: 1.6rem;
  }
}
