/* ═══════════════════════════════════════════════════════════════
   detail.css — Styles for app.html, generator.html, package.html
   ═══════════════════════════════════════════════════════════════ */

/* ── Card "Learn More" links (index.html asset cards) ────────── */
.card-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-gold);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: gap var(--transition), color var(--transition);
}
.card-learn-more:hover {
  color: var(--accent-gold-hover);
  gap: 8px;
}

/* ── Detail Hero ──────────────────────────────────────────────── */
.detail-hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.detail-hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 80px 24px 72px;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #78716C;
  text-decoration: none;
  margin-bottom: 32px;
  transition: color var(--transition);
}
.detail-back:hover { color: #A8A29E; }

.detail-hero .hero-stats {
  max-width: 780px;
}

/* ── Detail Main Layout ───────────────────────────────────────── */
.detail-main { background: var(--bg-primary); }

.detail-section {
  padding: var(--section-pad) 0;
  background: var(--bg-primary);
}
.detail-section-alt {
  background: var(--bg-secondary);
}

.detail-section-inner {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 48px;
  align-items: start;
}

.detail-section-label {
  padding-top: 8px;
}

.detail-section-body {
  min-width: 0;
}

.detail-section-text h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.detail-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
}

.detail-note {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding: 16px;
  border-left: 3px solid var(--accent-gold-border);
  background: var(--accent-gold-subtle);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ── Feature List ─────────────────────────────────────────────── */
.detail-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.detail-feature-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.feature-item-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.detail-section-alt .feature-item-icon {
  background: var(--bg-primary);
}
.feature-item-icon svg {
  width: 18px;
  height: 18px;
  color: var(--accent-gold);
}

.detail-feature-list strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.detail-feature-list p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ── Provider Grid ────────────────────────────────────────────── */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.provider-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.detail-section-alt .provider-card {
  background: var(--bg-primary);
}
.provider-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
}
.provider-card strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.provider-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.provider-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.provider-google { background: #4285F4; }
.provider-apple  { background: #1C1917; }
.provider-amazon { background: #FF9900; color: #1C1917; }
.provider-samsung{ background: #1428A0; }

/* ── QA Table ─────────────────────────────────────────────────── */
.qa-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 4px;
}

.qa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: var(--bg-card);
}

.qa-table th {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.qa-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
  line-height: 1.6;
}
.qa-table tr:last-child td { border-bottom: none; }
.qa-table tr:hover td { background: var(--bg-surface); }

.qa-table td strong {
  color: var(--text-primary);
  font-weight: 600;
}

.qa-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
  white-space: nowrap;
  width: 36px;
}

/* ── CTA Section ──────────────────────────────────────────────── */
.detail-cta-section {
  padding: var(--section-pad) 0;
  background: var(--bg-dark);
}

.detail-cta-block {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.detail-cta-block h2 {
  font-size: 2rem;
  color: var(--text-on-dark);
  margin-bottom: 16px;
}

.detail-cta-block p {
  color: #A8A29E;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.detail-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.detail-cta-section .btn-primary {
  background: var(--accent-gold);
  color: #fff;
}
.detail-cta-section .btn-primary:hover {
  background: var(--accent-gold-hover);
  color: #fff;
}
.detail-cta-section .btn-secondary {
  color: #A8A29E;
  border-color: rgba(168,162,158,0.25);
}
.detail-cta-section .btn-secondary:hover {
  color: var(--text-on-dark);
  border-color: rgba(168,162,158,0.5);
}

.detail-back-link {
  display: block;
  font-size: 0.82rem;
  color: #78716C;
  text-decoration: none;
  transition: color var(--transition);
}
.detail-back-link:hover { color: #A8A29E; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .detail-section-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .detail-section-label {
    padding-top: 0;
  }
  .detail-hero .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }
  .detail-hero .stat-divider {
    display: none;
  }
}

@media (max-width: 640px) {
  .detail-hero-content {
    padding: 56px 24px 56px;
  }
  .detail-section-text h2 {
    font-size: 1.6rem;
  }
  .provider-grid {
    grid-template-columns: 1fr;
  }
  .qa-table {
    font-size: 0.78rem;
  }
  .qa-table th, .qa-table td {
    padding: 10px 12px;
  }
  .detail-cta-block h2 {
    font-size: 1.6rem;
  }
}
