/* MobileAnarchy app-page styles. Shared by every /store/ page. */
:root {
  --red: #dc2626;
  --red-glow: rgba(220, 38, 38, 0.35);
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-2: #161616;
  --text: #b0b0b0;
  --text-bright: #e5e5e5;
  --muted: #525252;
  --border: #1f1f1f;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }
body {
  font-family: 'IBM Plex Mono', monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}
.side-line {
  position: fixed; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(to bottom, transparent, var(--red), var(--red), transparent);
  opacity: 0.4; z-index: 10;
}
header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.8rem; padding: 1rem 2rem;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand img { filter: drop-shadow(0 0 8px var(--red-glow)); }
.brand span {
  color: #fff; font-family: 'Archivo Black', sans-serif;
  font-size: 0.85rem; letter-spacing: 0.08em;
}
header nav { display: flex; gap: 1.2rem; }
header nav a {
  color: var(--text); text-decoration: none;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
}
header nav a:hover, .brand:hover span { color: var(--red); }

main {
  max-width: 880px; margin: 0 auto; padding: 2.5rem 2rem 5rem;
  position: relative; z-index: 2;
  animation: enter 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.crumbs { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.08em; margin-bottom: 2.5rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.crumbs span { margin: 0 0.4rem; }

/* Hero */
.hero {
  display: flex; gap: 1.8rem; align-items: center;
  padding-bottom: 2.5rem; margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.app-icon {
  width: 128px; height: 128px; border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 0 30px var(--red-glow); flex-shrink: 0;
}
.hero-text { flex: 1; min-width: 260px; }
.store-tag {
  font-size: 0.72rem; color: var(--red); letter-spacing: 0.15em;
  text-transform: uppercase; font-weight: 500; margin-bottom: 0.5rem;
}
.hero-text h1 {
  font-family: 'Archivo Black', sans-serif; font-weight: 400; color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.15; letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}
.hero-text h1::before { content: '//'; color: var(--red); margin-right: 0.4rem; font-size: 0.7em; }
.tagline { font-size: 0.9rem; font-weight: 300; color: var(--text-bright); margin-bottom: 1rem; }
.hero-meta { min-height: 1.2rem; margin-bottom: 1.2rem; }
.rating { color: #f5b301; font-size: 0.85rem; letter-spacing: 0.05em; }
.cta {
  display: inline-block; background: var(--red); color: #fff;
  text-decoration: none; font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.85rem 2rem; border: 1px solid var(--red); transition: all 0.3s ease;
}
.cta:hover { box-shadow: 0 0 22px var(--red-glow); transform: translateY(-1px); }

/* Screenshots */
.shots {
  display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1rem;
  margin-bottom: 2.5rem; scroll-snap-type: x mandatory;
}
.shots img {
  height: 300px; width: auto; border-radius: 10px; border: 1px solid var(--border);
  scroll-snap-align: start; background: var(--surface); flex-shrink: 0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.shots img.zoomable { cursor: zoom-in; }
.shots img.zoomable:hover, .shots img.zoomable:focus-visible {
  border-color: var(--red); transform: translateY(-2px); outline: none;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center; padding: 3rem 1rem;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; animation: lb-fade 0.2s ease both; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lb-stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; max-width: 100%; }
.lb-stage img {
  max-width: min(1100px, 92vw); max-height: 80vh; width: auto; height: auto;
  border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6);
}
.lb-caption { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.05em; text-align: center; max-width: 92vw; }
.lb-close, .lb-nav {
  position: absolute; background: rgba(17, 17, 17, 0.7);
  border: 1px solid var(--border); color: var(--text-bright);
  cursor: pointer; font-family: inherit; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.lb-close:hover, .lb-nav:hover, .lb-close:focus-visible, .lb-nav:focus-visible {
  background: var(--red); border-color: var(--red); color: #fff;
  box-shadow: 0 0 16px var(--red-glow); outline: none;
}
.lb-close { top: 1.2rem; right: 1.2rem; width: 42px; height: 42px; font-size: 1.6rem; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 64px; font-size: 1.9rem; }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-count {
  position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  color: var(--muted); font-size: 0.72rem; letter-spacing: 0.12em;
}
@media (max-width: 600px) {
  .lightbox { padding: 1.5rem 0.5rem; }
  .lb-nav { width: 40px; height: 52px; font-size: 1.5rem; }
  .lb-prev { left: 0.4rem; } .lb-next { right: 0.4rem; }
  .lb-close { width: 38px; height: 38px; font-size: 1.4rem; top: 0.8rem; right: 0.8rem; }
}

/* About */
.about { margin-bottom: 3rem; }
.about h2, main > h2, .page-head h1 { font-family: 'Archivo Black', sans-serif; font-weight: 400; }
.about h2, main > h2 {
  font-size: 1rem; color: var(--text-bright); letter-spacing: 0.06em;
  text-transform: uppercase; margin: 2.5rem 0 1.2rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
}
.about h2::before, main > h2::before {
  content: ''; display: inline-block; width: 6px; height: 6px;
  background: var(--red); margin-right: 0.6rem; vertical-align: middle; position: relative; top: -2px;
}
.about p { margin-bottom: 1rem; font-size: 0.85rem; font-weight: 300; }

/* More links */
.more-links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.more-links a { color: var(--red); text-decoration: none; font-size: 0.8rem; border-bottom: 1px solid transparent; }
.more-links a:hover { border-bottom-color: var(--red); }

/* Store index */
.page-head { margin-bottom: 2rem; }
.page-head h1 { font-size: clamp(2rem, 5vw, 2.8rem); color: #fff; letter-spacing: 0.04em; }
.page-head h1::before { content: '//'; color: var(--red); margin-right: 0.4rem; font-size: 0.7em; }
.page-head .tagline { color: var(--muted); }
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem; margin-bottom: 2.5rem;
}
.card {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1.2rem; background: var(--surface); border: 1px solid var(--border);
  text-decoration: none; transition: all 0.25s ease;
}
.card:hover { border-color: var(--red); box-shadow: 0 0 18px var(--red-glow); transform: translateY(-2px); }
.card img { width: 64px; height: 64px; border-radius: 14px; }
.card-name { color: var(--text-bright); font-size: 0.85rem; font-weight: 500; }
.card-tag { color: var(--text); font-size: 0.72rem; font-weight: 300; line-height: 1.5; }

footer {
  text-align: center; padding: 2rem; color: var(--muted);
  font-size: 0.7rem; letter-spacing: 0.1em; border-top: 1px solid var(--border);
  position: relative; z-index: 2;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--red); }

@media (max-width: 600px) {
  header { padding: 0.8rem 1.2rem; }
  header nav { gap: 0.9rem; }
  main { padding: 2rem 1.2rem 4rem; }
  .hero { gap: 1.2rem; }
  .app-icon { width: 96px; height: 96px; }
  .shots img { height: 220px; }
}
