/* v35 — Samsung Galaxy Store | #1428a0 → #1e88e5 */
:root {
  --primary: #1428a0;
  --accent: #1e88e5;
  --bg: #ffffff;
  --surface: #f5f5f5;
  --text: #212121;
  --muted: #757575;
  --border: #e0e0e0;
  --gold: #f9a825;
  --sh-light: #ffffff;
  --sh-dark: #d1d1d1;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  display: flex; flex-direction: column; align-items: center;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* Shell */
.app-shell { width: min(100%, 480px); padding-bottom: 32px; }

/* Top Bar */
.top-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
}
.top-bar-brand { display: flex; align-items: center; gap: 8px; }
.brand-name { font-size: 1.1rem; font-weight: 700; color: #fff; letter-spacing: 0.3px; }
.top-bar-actions { display: flex; align-items: center; gap: 4px; }
.ghost-btn {
  background: transparent; border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; touch-action: manipulation;
}
.ghost-btn:active { background: rgba(255,255,255,0.15); }

/* Hero */
.hero { display: flex; gap: 16px; align-items: center; padding: 20px 16px 16px; }
.app-icon {
  width: 80px; height: 80px; border-radius: 16px; overflow: hidden; flex-shrink: 0;
  box-shadow: 8px 8px 16px var(--sh-dark), -8px -8px 16px var(--sh-light);
}
.hero-copy h1 { margin: 0 0 4px; font-size: 1.5rem; font-weight: 700; }
.app-subtitle { margin: 0 0 8px; font-size: 0.85rem; color: var(--primary); font-weight: 600; }
.hero-rating { display: flex; align-items: center; gap: 6px; }
.stars-gold { color: var(--gold); font-size: 0.9rem; letter-spacing: 1px; }
.rating-num { font-size: 0.85rem; font-weight: 600; color: var(--muted); }

/* Actions */
.actions-section { padding: 0 16px 16px; }
.install-wrapper { position: relative; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
/* Decorative progress ring (purely visual) */
.progress-ring { position: absolute; width: 100%; height: 44px; pointer-events: none; opacity: 0; }
.ring-track { fill: none; stroke: var(--surface); stroke-width: 3; }
.ring-fill {
  fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 150.8; stroke-dashoffset: 22.6;
  transform-origin: center; transform: rotate(-90deg);
  animation: ring-spin 2s linear infinite;
}
@keyframes ring-spin { to { stroke-dashoffset: 150.8; } }
@media (prefers-reduced-motion: reduce) { .ring-fill { animation: none; } }

.hero-btn {
  width: 100%; padding: 14px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff; border: none; border-radius: 8px;
  font-size: 1rem; font-weight: 700; cursor: pointer; touch-action: manipulation;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  box-shadow: 0 4px 12px rgba(20,40,160,0.35); letter-spacing: 0.5px;
}
.hero-btn:active { transform: scale(0.95); box-shadow: 0 2px 6px rgba(20,40,160,0.25); }
@media (prefers-reduced-motion: reduce) { .hero-btn { transition: none; } }
.device-note { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--muted); margin: 0; }

/* Stats Bar */
.stats-bar {
  display: flex; justify-content: space-around; align-items: center;
  padding: 16px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 0.75rem; color: var(--muted); text-align: center; }
.stat-item strong { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.pegi-badge { width: 24px; height: 24px; border: 2px solid var(--text); border-radius: 2px; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; }
.stat-divider { width: 1px; height: 32px; background: var(--border); }

/* Screenshots */
.screenshot-section { padding: 20px 0 0 16px; border-top: 1px solid var(--border); }
.screenshot-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 10px;
  overflow-x: auto; padding-bottom: 12px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.screenshot-track::-webkit-scrollbar { display: none; }
.screenshot-card {
  margin: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 9/16;
  border: 1px solid var(--border); scroll-snap-align: start;
  box-shadow: 4px 4px 10px var(--sh-dark), -4px -4px 10px var(--sh-light);
}

/* Section defaults */
section { padding: 20px 16px 0; border-top: 1px solid var(--border); }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; cursor: pointer; }
.section-header h2 { font-size: 1.1rem; font-weight: 700; margin: 0; }
.section-header svg { color: var(--muted); flex-shrink: 0; }

/* About */
.app-description { font-size: 0.875rem; line-height: 1.65; color: var(--muted); margin: 0 0 14px; }
.info-row { display: flex; justify-content: space-between; font-size: 0.82rem; padding: 8px 0; border-bottom: 1px solid var(--border); }
.info-label { color: var(--muted); }
.tags-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tag { background: var(--surface); border-radius: 6px; padding: 4px 12px; font-size: 0.78rem; color: var(--primary); font-weight: 600; }

/* Ratings */
.rating-summary { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 20px; }
.rating-score-large { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.score-num { font-size: 3.5rem; font-weight: 700; line-height: 1; margin: 0; }
.stars-lg { font-size: 1rem; letter-spacing: 2px; margin: 4px 0; }
.score-sub { font-size: 0.75rem; color: var(--muted); text-align: center; }
.rating-bars { flex: 1; display: flex; flex-direction: column; gap: 4px; padding-top: 10px; }
.bar-row { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--muted); }
.star-label { width: 10px; text-align: right; }
.bar { flex: 1; height: 8px; background: var(--surface); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 4px; }

/* Review Card */
.review-card { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 16px; }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: #e67e22; color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.reviewer-info { display: flex; flex-direction: column; gap: 2px; }
.reviewer-info strong { font-size: 0.875rem; }
.review-date { font-size: 0.75rem; color: var(--muted); }
.more-btn {
  margin-left: auto; background: none; border: none; cursor: pointer; color: var(--muted);
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; touch-action: manipulation;
}
.review-stars { margin-bottom: 6px; }
.review-text { font-size: 0.875rem; margin: 0 0 12px; line-height: 1.5; }
.review-footer { display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; color: var(--muted); flex-wrap: wrap; gap: 8px; }
.feedback-btns { display: flex; gap: 8px; }
.pill-btn {
  background: transparent; border: 1px solid var(--border); border-radius: 99px;
  padding: 6px 16px; font-size: 0.78rem; cursor: pointer; touch-action: manipulation;
  min-height: 44px; color: var(--text);
}
.pill-btn:active { background: var(--surface); }

/* Data Safety */
.safety-card {
  background: var(--surface); border-radius: 12px; padding: 16px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: inset 4px 4px 8px var(--sh-dark), inset -4px -4px 8px var(--sh-light);
}
.safety-item { display: flex; align-items: flex-start; gap: 12px; font-size: 0.85rem; }
.safety-icon { color: var(--primary); flex-shrink: 0; margin-top: 1px; }

/* Footer */
.app-footer {
  background: var(--surface); padding: 24px 16px 32px;
  margin-top: 20px; font-size: 0.85rem; border-top: 1px solid var(--border);
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem; color: var(--primary); margin-bottom: 20px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.link-col { display: flex; flex-direction: column; gap: 8px; min-width: 130px; }
.link-col h3 { font-size: 0.875rem; font-weight: 700; margin: 0 0 4px; }
.link-col a { color: var(--muted); text-decoration: none; font-size: 0.82rem; }
.link-col a:hover { color: var(--primary); }
.footer-copy { font-size: 0.75rem; color: var(--muted); margin: 0; border-top: 1px solid var(--border); padding-top: 16px; }
