/* Apps page: the hero's store listing and one card per app. */

/* ---------- hero: store listing of the selected app */
.showcase-store .showcase-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.store-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.store-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  box-shadow: var(--lift);
}

.store-meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.store-meta strong {
  font-size: 1rem;
}

.store-meta span {
  overflow: hidden;
  color: var(--text-soft);
  font-size: .75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-head .link-pill {
  flex-shrink: 0;
}

.store-shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* same hover language as the games library tiles */
.store-shot {
  position: relative;
  aspect-ratio: 9 / 16;
  padding: 0;
  overflow: hidden;
  background: #0d0d0d;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  cursor: zoom-in;
  transition: border-color .2s ease;
}

.store-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: saturate(.85) brightness(.85);
  transition: transform .35s ease, filter .35s ease;
}

.store-shot:hover,
.store-shot:focus-visible {
  border-color: var(--color-dark-orange);
}

.store-shot:hover img,
.store-shot:focus-visible img {
  filter: none;
  transform: scale(1.04);
}

.store-shot:hover .browser-zoom,
.store-shot:focus-visible .browser-zoom {
  opacity: 1;
}

/* app switcher, shown once there is more than one app */
.store-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--card-border);
}

.store-tab {
  width: 40px;
  height: 40px;
  padding: 0;
  overflow: hidden;
  background: none;
  border: 2px solid transparent;
  border-radius: 12px;
  opacity: .45;
  transition: opacity .2s ease, border-color .2s ease;
}

.store-tab img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-tab:hover,
.store-tab.active {
  opacity: 1;
}

.store-tab.active {
  border-color: var(--color-dark-orange);
}

/* ---------- app cards: one full-width card per app */
.app-list {
  display: grid;
  gap: 28px;
}

/* --x/--y follow the cursor (dom::track_glow), like the certificate cards */
.app-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 32px;
  overflow: hidden;
  background:
    radial-gradient(320px circle at var(--x, -400px) var(--y, -400px), rgba(255,148,49,.07), transparent 70%),
    var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  scroll-margin-top: calc(var(--nav-h) + 24px);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent-gradient);
  opacity: .6;
  transition: opacity .25s ease;
}

.app-card:hover {
  border-color: rgba(255,148,49,.4);
  box-shadow: 0 14px 36px var(--shadow);
  transform: translateY(-4px);
}

.app-card:hover::before {
  opacity: 1;
}

.app-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.app-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.app-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: var(--lift);
}

.app-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.app-card h2 {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.25;
}

.app-card h2 a:hover {
  color: var(--color-classic-orange);
}

.app-tagline {
  color: var(--color-pastel-orange);
  font-weight: 600;
}

.app-description {
  flex: 1;
  color: var(--text-dim);
}

.app-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.app-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 18px;
}

.app-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-light);
  font-size: .92rem;
  line-height: 1.45;
}

.app-highlight-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 36px;
  height: 36px;
  background: rgba(255,148,49,.14);
  border: 1px solid rgba(255,148,49,.35);
  border-radius: 10px;
  color: var(--color-dark-orange);
  font-size: .9rem;
}

.app-stack {
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
}

.app-stack h3 {
  margin-bottom: 12px;
  color: var(--text-soft);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* wide screens: story on the left, features and stack on the right */
@media (min-width: 900px) {
  .app-card {
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    padding: 36px 40px;
  }
}

@media (max-width: 600px) {
  .app-highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .app-card {
    padding: 24px 20px;
  }

  .app-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
  }

  .store-head .link-pill {
    padding: 6px 10px;
  }

  .store-meta span {
    white-space: normal;
  }
}
