/* ── App grid ─────────────────────────────────────── */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.app-card {
  background: #111522;
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.app-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 30px rgba(212,175,55,0.15);
}

.app-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.app-card__icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 12px;
}

.app-card__head {
  flex: 1;
}

.app-card__name {
  font-family: "Orbitron", sans-serif;
  font-size: 15px;
  color: var(--gold);
  margin: 0 0 4px;
  letter-spacing: 1px;
}

.app-card__tagline {
  color: var(--text-muted);
  font-size: 12px;
  margin: 0;
}

.app-card__desc {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  flex-grow: 1;
  margin: 0 0 16px;
}

.app-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.app-card__tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(212,175,55,0.1);
  color: var(--gold);
  border: 1px solid rgba(212,175,55,0.3);
}

.app-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #1f2937;
  padding-top: 14px;
}

.app-card__price {
  font-family: "Orbitron", sans-serif;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
}

.app-card__status {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(34,197,94,0.12);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.35);
}
.app-card__status--beta {
  background: rgba(245,158,11,0.12);
  color: #f59e0b;
  border-color: rgba(245,158,11,0.35);
}
.app-card__status--soon {
  background: rgba(167,176,194,0.12);
  color: #A7B0C2;
  border-color: rgba(167,176,194,0.35);
}

/* Filter pills */
.app-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.app-filters button {
  font-family: inherit;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid #1f2937;
  cursor: pointer;
  transition: all 0.2s ease;
}
.app-filters button:hover,
.app-filters button.active {
  background: rgba(212,175,55,0.1);
  color: var(--gold);
  border-color: var(--gold);
}

/* ═══════════════════════════════════════════════════
   MOBILE — App grid & detail pages
   ═══════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .apps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 28px;
  }

  .app-card { padding: 20px; }

  .app-card__icon {
    width: 48px;
    height: 48px;
  }

  .app-card__name { font-size: 14px; }
  .app-card__desc { font-size: 13px; }

  /* App filters wrap */
  .app-filters {
    gap: 8px;
    margin-top: 20px;
  }
  .app-filters button {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* ── App detail page: stack text + screenshot ─── */
@media (max-width: 900px) {
  /* Detail body uses inline grid — override via attribute */
  #app-detail-body > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  #app-detail-body img {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Feature list columns → single column */
  #app-detail-body ul[style*="columns"] {
    columns: 1 !important;
  }

  #app-name { font-size: 26px !important; }
}

@media (max-width: 480px) {
  .app-card { padding: 16px; }
  .app-card__icon { width: 40px; height: 40px; }
  .app-card__name { font-size: 13px; }
  .app-card__tagline { font-size: 11px; }
  .app-card__desc { font-size: 12px; }
  .app-card__price { font-size: 13px; }
  .app-card__status { font-size: 10px; padding: 2px 8px; }
}
