/* ==========================================================================
   SahaayaNet - Official Download Center Stylesheet (downloads.css)
   Official downloads portal for SahaayaNet applications suite.
   Provides glassmorphic download cards, live search/filtering styles,
   hero download visual stage, system requirements, release notes timeline,
   security verification badges & interactive modals.
   ========================================================================== */

/* Theme Accent for Downloads Center: Indigo/Cyan/Blue Gradient Theme */
:root {
  --dl-primary: #2563EB;
  --dl-primary-dark: #1D4ED8;
  --dl-accent: #0EA5E9;
  --dl-emerald: #10B981;
  --dl-amber: #F59E0B;
  --dl-purple: #8B5CF6;
}

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

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

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

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

.breadcrumb-current-dl {
  color: var(--primary);
  font-weight: 700;
}

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

.dl-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);
}

.dl-badge-item:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.4);
}

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

.hero-glow-backdrop-dl {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, rgba(14, 165, 233, 0.15) 50%, transparent 70%);
  filter: blur(45px);
  animation: floatGlowDl 7s ease-in-out infinite alternate;
}

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

/* Floating Shapes in Download Hero */
.floating-shape-dl {
  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: floatBounceDl 4s ease-in-out infinite alternate;
}

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

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

/* Phone Mockup in Download Hero */
.downloads-phone-frame {
  position: relative;
  width: 275px;
  height: 490px;
  background: #0F172A;
  border-radius: 40px;
  padding: 10px;
  box-shadow: 0 25px 60px -12px rgba(37, 99, 235, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15);
  z-index: 5;
}

.phone-screen-container-dl {
  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-dl {
  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-blue {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 10px #38BDF8;
  animation: pulseDotBlue 1.8s infinite;
}

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

/* Search & Filter Toolbar */
.search-filter-wrapper {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  margin-bottom: 2.5rem;
}

.search-input-box {
  position: relative;
  width: 100%;
  margin-bottom: 1.25rem;
}

.search-input-box input {
  width: 100%;
  padding: 0.9rem 1.2rem 0.9rem 3rem;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition-fast);
  outline: none;
}

.search-input-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.search-icon-inside {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.filter-pills-bar {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}

.filter-pills-bar::-webkit-scrollbar {
  display: none;
}

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

.filter-pill-btn.active, .filter-pill-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

/* App Download Cards Grid */
.download-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

.dl-card {
  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;
}

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

.dl-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(37, 99, 235, 0.3);
}

.dl-card:hover::before {
  opacity: 1;
}

.dl-card-header {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.dl-app-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.dl-app-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.category-tag-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Specs Info Grid inside Card */
.dl-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  background: var(--bg-main);
  border-radius: 14px;
  padding: 0.85rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-light);
  font-size: 0.8rem;
}

.dl-spec-item {
  display: flex;
  flex-direction: column;
}

.dl-spec-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.dl-spec-value {
  color: var(--text-main);
  font-weight: 700;
  margin-top: 0.1rem;
}

.status-pill-coming {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(245, 158, 11, 0.12);
  color: #D97706;
  font-size: 0.72rem;
  font-weight: 800;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* Release Notes Timeline */
.release-timeline-container {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 1.5rem 0;
}

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

.release-item {
  position: relative;
  padding-left: 65px;
  margin-bottom: 2.5rem;
}

.release-node {
  position: absolute;
  left: 8px;
  top: 0;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  z-index: 5;
}

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

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

.req-card {
  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);
}

.req-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.3);
}

.req-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Security Cards Grid */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.security-card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: var(--transition-normal);
}

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

.sec-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem auto;
}

/* Newsletter Card */
.newsletter-card-wrapper {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: var(--radius-card);
  padding: 3rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
  color: white;
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
}

.newsletter-form-inline {
  display: flex;
  gap: 0.75rem;
  max-width: 520px;
  margin: 1.5rem auto 0 auto;
  flex-wrap: wrap;
}

.newsletter-form-inline input {
  flex: 1;
  min-width: 260px;
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 0.95rem;
  outline: none;
}

.newsletter-form-inline input::placeholder {
  color: #94A3B8;
}

.newsletter-form-inline input:focus {
  border-color: #38BDF8;
  background: rgba(255, 255, 255, 0.12);
}

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

.faq-item-dl {
  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-dl {
  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-dl {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
  color: var(--primary);
}

.faq-answer-dl {
  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-dl.active .faq-chevron-dl {
  transform: rotate(180deg);
}

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

/* Responsive Media Queries */
@media (max-width: 992px) {
  .downloads-hero-stage {
    height: 440px;
  }
  .downloads-phone-frame {
    width: 250px;
    height: 450px;
  }
}

@media (max-width: 640px) {
  .downloads-hero-stage {
    height: 360px;
  }
  .downloads-phone-frame {
    width: 220px;
    height: 400px;
  }
  .floating-shape-dl {
    display: none;
  }
  .newsletter-form-inline {
    flex-direction: column;
  }
  .newsletter-form-inline input {
    min-width: 100%;
  }
}
