/* App Store sync sections: screenshots + what's new */

.app-store-block {
  --as-card: var(--card, var(--surface, #131a24));
  --as-border: var(--border, var(--line, #21262d));
  --as-muted: var(--text-muted, var(--muted, #8b949e));
  --as-accent: var(--accent, #2dd4a0);
  --as-accent-dim: var(--accent-dim, var(--accent-soft, rgba(45, 212, 160, 0.15)));
  margin: 36px 0 8px;
}

.app-store-block[hidden] {
  display: none !important;
}

.app-store-block .as-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.app-store-block .as-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text, #e6edf3);
  margin: 0;
}

.app-store-block .as-meta {
  color: var(--as-muted);
  font-size: 0.85rem;
}

.app-store-block .as-subtitle {
  color: var(--as-muted);
  font-size: 0.95rem;
  margin: 0 0 18px;
}

.app-store-shots {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.app-store-shots::-webkit-scrollbar {
  height: 6px;
}

.app-store-shots::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--as-accent) 40%, transparent);
  border-radius: 999px;
}

.app-store-shot {
  flex: 0 0 auto;
  scroll-snap-align: start;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--as-border);
  background: var(--as-card);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.app-store-shot img {
  display: block;
  height: min(520px, 68vh);
  width: auto;
  max-width: min(260px, 72vw);
  object-fit: cover;
  background: color-mix(in srgb, var(--as-card) 80%, #000 20%);
}

.app-store-shot.is-landscape img {
  height: auto;
  width: min(420px, 86vw);
  max-width: none;
  max-height: 280px;
  object-fit: contain;
}

.app-store-whatsnew {
  background: var(--as-card);
  border: 1px solid var(--as-border);
  border-radius: 16px;
  padding: 22px 22px 18px;
  margin-top: 8px;
}

.app-store-whatsnew .as-version {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--as-accent);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.app-store-whatsnew .as-date {
  color: var(--as-muted);
  font-weight: 400;
  font-size: 0.85rem;
}

.app-store-whatsnew .as-notes {
  color: var(--text, #e6edf3);
  font-size: 0.95rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.app-store-history {
  margin-top: 14px;
  border-top: 1px solid var(--as-border);
  padding-top: 12px;
}

.app-store-history details {
  margin-top: 6px;
}

.app-store-history summary {
  cursor: pointer;
  color: var(--as-muted);
  font-size: 0.9rem;
  list-style: none;
}

.app-store-history summary::-webkit-details-marker {
  display: none;
}

.app-store-history summary:hover {
  color: var(--as-accent);
}

.app-store-history .as-hist-item + .as-hist-item {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--as-border);
}

.app-store-platforms {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}

.app-store-platforms button {
  appearance: none;
  border: 1px solid var(--as-border);
  background: var(--as-card);
  color: var(--text, #e6edf3);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.app-store-platforms button[aria-selected="true"] {
  border-color: color-mix(in srgb, var(--as-accent) 55%, transparent);
  background: var(--as-accent-dim);
  color: var(--as-accent);
}

.app-store-platforms button:hover {
  border-color: color-mix(in srgb, var(--as-accent) 40%, transparent);
}

.app-store-source {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--as-muted);
}

.app-store-source a {
  color: var(--as-accent);
  text-decoration: none;
}

.app-store-source a:hover {
  text-decoration: underline;
}
