/* =========================================================================
   App Detail Redesign  —  modern, card-based, mobile-first (scoped to .app-redesign)
   ========================================================================= */
.app-redesign{
  --accent:#16a34a;
  --accent-dark:#13854a;
  --accent-soft:#e7f7ee;
  --ink:#1f2937;
  --muted:#6b7280;
  --line:#eceff2;
  --card:#ffffff;
  --radius:16px;
  --shadow:0 1px 2px rgba(16,24,40,.04),0 6px 20px rgba(16,24,40,.06);
  color:var(--ink);
  max-width:920px;
}
.app-redesign *{box-sizing:border-box}

/* ---- card shell ---- */
.app-detail{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:20px;
  margin-bottom:18px;
}
@media (min-width:768px){ .app-detail{ padding:28px 32px; } }

/* ---- HERO ---- */
.app-hero{ display:flex; gap:18px; align-items:flex-start; }
.app-hero__icon{ position:relative; flex:0 0 auto; }
.app-hero__icon img{
  width:88px; height:88px; border-radius:20px; object-fit:cover;
  box-shadow:0 6px 18px rgba(16,24,40,.14); background:#fff;
}
@media (min-width:768px){ .app-hero__icon img{ width:104px; height:104px; } }
.app-hero__icon .ribbon{
  position:absolute; top:-8px; left:-8px;
  background:#7c3aed; color:#fff; font-size:11px; font-weight:700;
  letter-spacing:.4px; padding:3px 8px; border-radius:8px;
  box-shadow:0 3px 8px rgba(124,58,237,.35);
}
.app-hero__info{ min-width:0; flex:1; }
.app-hero__badges{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:8px; }
.chip{
  display:inline-flex; align-items:center; gap:5px;
  font-size:11.5px; font-weight:700; letter-spacing:.3px;
  padding:4px 10px; border-radius:999px; line-height:1;
}
.chip--choice{ background:var(--accent-soft); color:var(--accent-dark); }
.chip--mod{ background:#f1e9ff; color:#7c3aed; }
.app-hero__title{
  font-size:1.35rem; line-height:1.25; font-weight:800; margin:0 0 8px;
  color:var(--ink); letter-spacing:-.01em;
}
@media (min-width:768px){ .app-hero__title{ font-size:1.7rem; } }
.app-hero__meta{ display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; color:var(--muted); font-size:.85rem; }
.app-os{
  display:inline-flex; align-items:center; gap:6px;
  background:var(--accent-soft); color:var(--accent-dark);
  font-weight:600; padding:4px 10px; border-radius:999px;
}
.app-os svg{ width:14px; height:14px; fill:currentColor; }

/* rating + request row */
.app-hero__rate{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; margin-top:14px; }
.app-hero__rate .rating{ display:inline-block; }
.rate-score{ font-weight:700; font-size:.9rem; }
.rate-score small{ color:var(--muted); font-weight:500; }
.btn-request{
  display:inline-flex; align-items:center; gap:6px; margin-left:auto;
  background:#fff7e6; color:#b45309; border:1px solid #fde4b8;
  font-weight:600; font-size:.82rem; padding:7px 14px; border-radius:999px;
  text-decoration:none; transition:.15s;
}
.btn-request:hover{ background:#fdecc8; color:#92400e; }

/* ---- short summary ---- */
.app-summary{
  margin-top:18px; background:#f8fafc; border:1px solid var(--line);
  border-radius:12px; padding:12px 16px; color:#475569; font-size:.92rem; font-style:italic;
}
.app-summary p{ margin:0; }

/* ---- MOD INFO highlight box ---- */
.mod-info-box{
  margin-top:18px; display:flex; gap:10px; align-items:flex-start;
  background:#fff8ea; border:1px solid #f6e2b8; border-left:4px solid #f0a500;
  border-radius:12px; padding:14px 16px;
}
.mod-info-box svg{ width:18px; height:18px; fill:#d97706; flex:0 0 auto; margin-top:1px; }
.mod-info-box b{ color:#92400e; display:block; font-size:.78rem; text-transform:uppercase; letter-spacing:.5px; margin-bottom:2px; }
.mod-info-box span{ color:#7c4a03; font-weight:600; }

/* ---- DOWNLOAD button ---- */
.download-btn{
  display:flex; align-items:center; justify-content:center; gap:10px;
  width:100%; margin-top:20px;
  background:linear-gradient(135deg,#22c277,#13a55f);
  color:#fff !important; text-decoration:none;
  font-size:1.1rem; font-weight:700; letter-spacing:.2px;
  padding:16px 20px; border-radius:14px; border:0;
  box-shadow:0 8px 20px rgba(19,165,95,.35);
  transition:transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.download-btn svg{ width:22px; height:22px; fill:#fff; }
.download-btn:hover{ filter:brightness(1.03); box-shadow:0 10px 26px rgba(19,165,95,.45); color:#fff; }
.download-btn:active{ transform:translateY(1px); }
.download-btn small{ font-weight:500; opacity:.9; }

/* ---- INFO CARD GRID ---- */
.app-meta-grid{
  margin-top:20px; display:grid; gap:12px;
  grid-template-columns:repeat(2,minmax(0,1fr));
}
@media (min-width:768px){ .app-meta-grid{ grid-template-columns:repeat(4,minmax(0,1fr)); } }
.meta-card{
  background:#fbfcfd; border:1px solid var(--line); border-radius:14px; padding:14px;
  display:flex; flex-direction:column; gap:7px; min-width:0;
}
.meta-card__top{ display:flex; align-items:center; gap:7px; color:var(--muted); font-size:.74rem; font-weight:600; text-transform:uppercase; letter-spacing:.4px; }
.meta-card__top svg{ width:15px; height:15px; fill:var(--accent); flex:0 0 auto; }
.meta-card__value{ font-size:.95rem; font-weight:700; color:var(--ink); word-break:break-word; line-height:1.3; }
.meta-card__value a{ color:var(--accent-dark); text-decoration:none; }
.meta-card__value a:hover{ text-decoration:underline; }
.meta-card__value img{ height:22px; width:auto; }

/* ---- SCREENSHOTS ---- */
.app-section-title{ font-size:1.05rem; font-weight:800; margin:24px 0 12px; display:flex; align-items:center; gap:8px; }
.app-section-title::before{ content:""; width:4px; height:18px; border-radius:4px; background:var(--accent); display:inline-block; }
.screenshots{ display:flex; gap:12px; overflow-x:auto; padding-bottom:8px; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; }
.screenshots::-webkit-scrollbar{ height:6px; }
.screenshots::-webkit-scrollbar-thumb{ background:#d1d5db; border-radius:999px; }
.screenshots a{ flex:0 0 auto; scroll-snap-align:start; }
.screenshots img{ height:300px; width:auto; border-radius:14px; border:1px solid var(--line); box-shadow:var(--shadow); }

/* ---- description / content ---- */
.app-description{ margin-top:8px; line-height:1.7; color:#374151; font-size:.97rem; }
.app-description h2,.app-description h3{ font-weight:700; margin:18px 0 10px; }
.app-description img{ max-width:100%; height:auto; border-radius:10px; }

/* ---- tags ---- */
.app-tags{ display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 4px; }
.app-tags a{ background:#f1f5f9; color:#475569; font-size:.8rem; font-weight:600; padding:6px 12px; border-radius:999px; text-decoration:none; transition:.15s; }
.app-tags a:hover{ background:var(--accent-soft); color:var(--accent-dark); }

/* ---- bottom rating strip ---- */
.rating-strip{ display:flex; align-items:center; justify-content:center; gap:10px; padding:16px 0; margin:18px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }

/* ---- share row ---- */
.list-shares{ list-style:none; display:flex; gap:10px; padding:0; margin:6px 0 0; }
.list-shares a{ width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center; }
.list-shares svg{ width:17px; height:17px; }
.list-shares .facebook{ background:#1877f2; } .list-shares .twitter{ background:#111827; }
.list-shares .pinterest{ background:#e60023; } .list-shares .linkedin{ background:#0a66c2; }
.list-shares .email{ background:#6b7280; }

/* ---- related sections reuse card shell ---- */
.app-redesign section.bg-white{
  background:var(--card)!important; border:1px solid var(--line);
  border-radius:var(--radius); box-shadow:var(--shadow); padding:20px!important; margin-bottom:18px;
}
