/* ==========================================================================
   SPOTIFY MOD APK - COMPONENT LIBRARY (LIGHT EMERALD THEME)
   100% MOBILE-FRIENDLY & GOOGLE CORE WEB VITALS OPTIMIZED
   ========================================================================== */

/* ==========================================================================
   1. HERO & APP HEADER BOX
   ========================================================================== */
.app-hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #f4fbf6 100%);
  border: 1px solid rgba(29, 185, 84, 0.22);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 10px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px -5px rgba(29, 185, 84, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.app-hero-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(29, 185, 84, 0.12) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}

.hero-main-row {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  flex-wrap: wrap;
}

.app-icon-wrap {
  position: relative;
  flex-shrink: 0;
}

.app-icon-img {
  width: 105px;
  height: 105px;
  border-radius: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border: 2px solid rgba(29, 185, 84, 0.2);
  display: block;
}

.app-icon-badge {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: var(--spotify-green);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px var(--spotify-glow);
  text-transform: uppercase;
}

.app-hero-info {
  flex: 1;
  min-width: 280px;
}

.app-hero-title {
  font-size: clamp(1.5rem, 3.5vw, 2.3rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.25;
}

.app-meta-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.meta-badge-dev {
  color: var(--text-muted);
  font-weight: 600;
}

.meta-badge-dev a {
  color: var(--spotify-green-hover);
}

.meta-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
}

.meta-rating svg {
  fill: #f59e0b;
  width: 14px;
  height: 14px;
}

.meta-reviews {
  color: var(--text-subtle);
  font-size: 0.8rem;
}

.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.safe-scan-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
}

.safe-scan-pill svg {
  fill: #16a34a;
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   2. SCREENSHOTS HORIZONTAL SWIPE GALLERY (Touch Enabled)
   ========================================================================== */
.screenshots-section {
  margin: 35px 0;
}

.screenshots-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  -webkit-overflow-scrolling: touch;
}

.screenshots-track {
  display: flex;
  gap: 16px;
}

.screenshot-clone {
  display: none;
}

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

.screenshots-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 4px;
}

.screenshots-scroll::-webkit-scrollbar-thumb {
  background: rgba(29, 185, 84, 0.35);
  border-radius: 4px;
}

.screenshot-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #000;
  position: relative;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.screenshot-item:hover {
  transform: translateY(-4px);
  border-color: var(--spotify-green);
  box-shadow: 0 8px 20px rgba(29, 185, 84, 0.2);
}

.screenshot-item img {
  display: block;
  height: 250px;
  width: auto;
  object-fit: cover;
  pointer-events: none;
}

/* ==========================================================================
   3. APP SPECIFICATIONS TABLE (Responsive Wrap)
   ========================================================================== */
.specs-table-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 30px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 320px;
}

.specs-table tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background var(--transition-fast);
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table tr:hover {
  background: rgba(29, 185, 84, 0.03);
}

.specs-table th {
  text-align: left;
  padding: 16px 20px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  width: 32%;
  background: rgba(248, 250, 252, 0.8);
}

.specs-table td {
  padding: 16px 20px;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
}

.specs-badge-mod {
  background: rgba(29, 185, 84, 0.08);
  color: var(--spotify-green-hover);
  border: 1px solid rgba(29, 185, 84, 0.25);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  display: block;
  line-height: 1.5;
}

/* ==========================================================================
   4. MOD FEATURES GRID
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.feature-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(29, 185, 84, 0.4);
  background: #fafdfb;
  box-shadow: 0 12px 28px -10px rgba(29, 185, 84, 0.15);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(29, 185, 84, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--spotify-green-hover);
}

.feature-icon-box svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.feature-card h3 {
  margin-top: 0;
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 0;
}

/* ==========================================================================
   5. COMPARISON MATRIX (Mobile Responsive Horizontal Scroll)
   ========================================================================== */
.comparison-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 35px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
}

.comparison-table th, 
.comparison-table td {
  padding: 16px 18px;
  text-align: center;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 160px;
}

.comparison-table th {
  background: #f8fafc;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.98rem;
}

.comparison-table th.highlight-col,
.comparison-table td.highlight-col {
  background: rgba(29, 185, 84, 0.05);
  border-left: 1px solid rgba(29, 185, 84, 0.2);
  border-right: 1px solid rgba(29, 185, 84, 0.2);
}

.comparison-table th.highlight-col {
  color: var(--spotify-green-hover);
}

.check-yes {
  color: #16a34a;
  font-weight: 700;
  font-size: 1.2rem;
}

.check-no {
  color: #dc2626;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ==========================================================================
   6. AUDIO EXPERIENCE SIMULATOR
   ========================================================================== */
.audio-preview-card {
  background: linear-gradient(135deg, #ffffff 0%, #f2faf5 100%);
  border: 1px solid rgba(29, 185, 84, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 35px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 8px 24px -6px rgba(29, 185, 84, 0.12);
}

.audio-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 240px;
}

.audio-play-btn {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: var(--radius-full);
  background: var(--spotify-green);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--spotify-glow);
  transition: transform var(--transition-fast);
}

.audio-play-btn:hover {
  transform: scale(1.08);
  background: var(--spotify-green-hover);
}

.audio-play-btn svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.soundwave-bars {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 36px;
}

.soundwave-bars span {
  display: inline-block;
  width: 4px;
  background: var(--spotify-green);
  border-radius: 2px;
  animation: soundwave-anim 1.2s ease-in-out infinite alternate;
}

.soundwave-bars span:nth-child(1) { height: 10px; animation-delay: 0.1s; }
.soundwave-bars span:nth-child(2) { height: 26px; animation-delay: 0.3s; }
.soundwave-bars span:nth-child(3) { height: 34px; animation-delay: 0.5s; }
.soundwave-bars span:nth-child(4) { height: 18px; animation-delay: 0.2s; }
.soundwave-bars span:nth-child(5) { height: 30px; animation-delay: 0.4s; }
.soundwave-bars span:nth-child(6) { height: 14px; animation-delay: 0.6s; }

@keyframes soundwave-anim {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

/* ==========================================================================
   7. INSTALLATION WIZARD STEPS
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.step-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--spotify-green-hover);
  margin-bottom: 12px;
}

.step-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.step-card p {
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 0;
}

/* ==========================================================================
   8. FAQ ACCORDION (Touch Friendly)
   ========================================================================== */
.faq-section {
  margin: 40px 0;
}

.faq-item {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item.active {
  border-color: rgba(29, 185, 84, 0.5);
  box-shadow: 0 4px 16px rgba(29, 185, 84, 0.08);
}

.faq-question {
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
  user-select: none;
  min-height: 52px; /* Touch target size */
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--transition-normal), background var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--spotify-green);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease;
  padding: 0 22px;
}

.faq-item.active .faq-answer {
  padding: 0 22px 22px 22px;
  max-height: 600px;
}

.faq-answer p {
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==========================================================================
   9. TOPICAL SILO CLUSTER GRID (25 Interconnected Pages)
   ========================================================================== */
.silo-cluster-box {
  background: rgba(29, 185, 84, 0.03);
  border: 1px solid rgba(29, 185, 84, 0.18);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 45px 0;
}

.silo-cluster-box h3 {
  margin-top: 0;
  margin-bottom: 18px;
  color: var(--text-main);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.silo-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.silo-link-chip {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all var(--transition-fast);
  min-height: 48px;
}

.silo-link-chip:hover {
  background: #f0fdf4;
  border-color: var(--spotify-green);
  color: var(--spotify-green-hover);
  transform: translateX(4px);
}

.silo-link-chip svg {
  width: 16px;
  height: 16px;
  fill: var(--spotify-green);
  flex-shrink: 0;
}

/* ==========================================================================
   10. DOWNLOAD HUB SPECIFICS (Countdown & Mirrors)
   ========================================================================== */
.download-hub-card {
  background: #ffffff;
  border: 1px solid rgba(29, 185, 84, 0.25);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  max-width: 680px;
  margin: 30px auto;
  box-shadow: 0 10px 30px -5px rgba(29, 185, 84, 0.1), 0 4px 16px rgba(0, 0, 0, 0.04);
}

.countdown-timer-circle {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-full);
  border: 3px solid rgba(29, 185, 84, 0.2);
  border-top-color: var(--spotify-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--spotify-green);
  animation: spin-pulse 1s linear infinite;
}

.download-mirror-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 30px;
}

.mirror-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-weight: 600;
  transition: all var(--transition-fast);
  min-height: 60px;
}

.mirror-btn:hover {
  background: #f0fdf4;
  border-color: var(--spotify-green);
  transform: translateY(-2px);
  color: var(--spotify-green-hover);
}

.mirror-tag {
  font-size: 0.75rem;
  background: var(--spotify-green);
  color: #fff;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  flex-shrink: 0;
  margin-left: 8px;
}

/* ==========================================================================
   11. COMPREHENSIVE MOBILE RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
  .screenshots-scroll {
    overflow: hidden !important;
    width: 100%;
    position: relative;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: auto;
  }
  .screenshots-track {
    display: flex !important;
    gap: 16px;
    width: max-content;
    animation: seamlessInfiniteCycle 22s linear infinite !important;
    will-change: transform;
  }
  .screenshots-track:hover,
  .screenshots-track.paused {
    animation-play-state: paused !important;
  }
  .screenshot-clone {
    display: block !important;
  }
  @keyframes seamlessInfiniteCycle {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }
  .app-hero-card {
    padding: 24px 20px;
  }
  .app-icon-img {
    width: 90px;
    height: 90px;
  }
  .screenshot-item img {
    height: 210px;
  }
  .hero-actions-row .btn {
    width: 100%;
  }
  .silo-links-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .hero-main-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .app-meta-badges {
    justify-content: center;
  }
  .hero-actions-row {
    justify-content: center;
    width: 100%;
  }
  .specs-table th, .specs-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  .specs-table th {
    width: 36%;
    font-size: 0.84rem;
  }
  .safe-scan-pill, .specs-badge-mod {
    font-size: 0.8rem;
    padding: 6px 10px;
    border-radius: 6px;
  }

  /* Comparison Table Mobile View: Sleek Native Card Transformation */
  .comparison-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .comparison-table {
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    border: none !important;
  }
  .comparison-table thead {
    display: none !important;
  }
  .comparison-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    width: 100% !important;
  }
  .comparison-table tr {
    display: block !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 14px !important;
    padding: 16px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .comparison-table td {
    border: none !important;
    text-align: left !important;
    padding: 6px 0 !important;
    font-size: 0.88rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .comparison-table td:first-child {
    font-size: 1.02rem !important;
    font-weight: 700 !important;
    color: var(--text-main) !important;
    padding-bottom: 10px !important;
    margin-bottom: 8px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    display: block !important;
  }
  .comparison-table td:nth-child(2)::before {
    content: "Spotify Free";
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
  }
  .comparison-table td:nth-child(3)::before {
    content: "Spotify Paid ($11.99)";
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
  }
  .comparison-table td:nth-child(4) {
    background: rgba(29, 185, 84, 0.08) !important;
    border: 1px solid rgba(29, 185, 84, 0.25) !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    margin-top: 6px !important;
    font-weight: 700 !important;
    color: #15803d !important;
  }
  .comparison-table td:nth-child(4)::before {
    content: "Spotify MOD APK";
    font-weight: 700;
    color: #15803d;
    font-size: 0.88rem;
  }
  .audio-preview-card {
    padding: 20px 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .soundwave-bars {
    align-self: center;
    margin-top: 10px;
  }
  .mirror-btn {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .mirror-tag {
    margin-left: 0;
    align-self: flex-start;
  }
}

/* ==========================================================================
   12. ULTRA-LIGHTWEIGHT ZERO-OVERHEAD SCROLL REVEAL (GPU ACCELERATED)
   ========================================================================== */
.js-reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1), transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.js-reveal.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
