/* ═══════════════════════════════════════════════════════════
   app-detail-premium.css — styles spécifiques à la page détail app.
   À charger APRÈS base.css (qui fournit reset, body, variables, layout).
   ═══════════════════════════════════════════════════════════ */

/* Bloc de largeur partagé : centre le contenu, laisse les fonds full-bleed */
.hero-content,
.cta-section,
.screenshots-section,
.content,
.divider {
  max-width: var(--content-max);
  margin-inline: auto;
}

/* BACK LINK (dans le hero, au-dessus de l'icône, aligné sur .hero-inner) */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.back-link:hover { color: var(--text); }
.back-arrow { font-size: 1.1rem; line-height: 1; }

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 4rem 4rem;
  background: radial-gradient(ellipse at 60% 0%, rgba(0,122,255,0.12) 0%, transparent 70%),
              radial-gradient(ellipse at 10% 100%, rgba(100,60,180,0.08) 0%, transparent 60%),
              var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.hero-icon {
  width: 110px;
  height: 110px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.hero-icon-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 26px;
  background: var(--border);
  flex-shrink: 0;
}

.hero-info { flex: 1; }

.hero-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.badge-featured {
  background: rgba(0,122,255,0.15);
  color: var(--accent);
  border: 1px solid rgba(0,122,255,0.35);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.badge-sponsored {
  background: rgba(255,184,0,0.12);
  color: #FFB800;
  border: 1px solid rgba(255,184,0,0.3);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hero-name {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.hero-dev {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.hero-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.meta-pill {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #aaa;
}
.meta-pill.rating { color: #f5a623; }
.meta-pill.price { color: var(--text); background: rgba(255,255,255,0.1); }

/* CTA SECTION */
.cta-section {
  padding: 2rem 4rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: var(--text);
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(0,122,255,0.35);
}
.btn-appstore:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-playstore {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #1db954;
  color: var(--text);
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(29,185,84,0.3);
}
.btn-playstore:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-website {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.07);
  color: var(--text);
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.12);
  transition: opacity 0.2s, background 0.2s;
}
.btn-website:hover { background: rgba(255,255,255,0.12); }

/* DIVIDER */
.divider {
  height: 1px;
  background: var(--border);
}

/* CONTENT */
.content {
  padding: 2rem 4rem;
}

.section-label {
  color: var(--text-faint);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.description {
  color: #bbb;
  line-height: 1.75;
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

/* INFO GRID */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.info-cell {
  background: var(--bg-card);
  padding: 1.1rem 1.25rem;
}

.info-cell-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.info-cell-value {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

/* UNAVAILABLE */
.unavailable {
  color: #f55;
  font-size: 0.85rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255,85,85,0.08);
  border-radius: 10px;
  border: 1px solid rgba(255,85,85,0.2);
}

.site-header { padding: 1.25rem 2rem; border-bottom: 1px solid var(--border); }
.site-title { font-size: 1.8rem; font-weight: 700; text-decoration: none; color: var(--text); }
.site-title:hover { opacity: 0.8; }

/* SCREENSHOTS */
.screenshots-section {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
  padding: 0 4rem 1.5rem;
  scroll-behavior: smooth;
}
.screenshots-section::-webkit-scrollbar { display: none; }
.screenshot {
  height: 480px;
  width: auto;
  border-radius: 16px;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

/* PROMOTE */
.promote {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.promote-text {
  color: var(--text-faint);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}
.promote-link {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid var(--border-strong);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: inline-block;
  transition: color 0.2s, border-color 0.2s;
}
.promote-link:hover { color: var(--text); border-color: var(--text-secondary); }

/* MOBILE */
@media (max-width: 600px) {
  .hero { padding: 2rem 1.5rem 3rem; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .hero-name { font-size: 1.7rem; }
  .hero-icon { width: 90px; height: 90px; }
  .cta-section { padding: 1.5rem; }
  .screenshots-section { padding: 0 1.5rem 1.5rem; }
  .divider { margin: 0 1.5rem; }
  .content { padding: 1.5rem; }
  .back-footer { padding: 1rem 1.5rem 3rem; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .screenshot { height: 180px; }
}