/* Great Tools — launcher-specific styles layered on the great-apps framework. */

.tagline {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── App grid ─────────────────────────────────────────────── */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  padding: 18px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  gap: 10px;
  padding: 22px 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.app-card:hover {
  transform: translateY(-3px);
  background: var(--bg-hover);
  border-color: var(--card-accent, var(--accent));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35),
    0 0 0 1px var(--card-accent, var(--accent)) inset;
}

.app-card:active {
  transform: translateY(-1px);
  background: var(--bg-active);
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: block;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.app-name {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.1;
}

.app-name-accent {
  color: var(--card-accent, var(--accent));
  font-weight: 700;
}

.app-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
  max-width: 22ch;
}

/* ── Header centering + footer copyright ──────────────────── */
.list-header .header-row {
  justify-content: flex-start;
}

.list-footer {
  padding-top: 8px;
  padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
}

.copyright {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0.6;
  margin-top: 2px;
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 480px) {
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 14px 12px calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .app-icon {
    width: 64px;
    height: 64px;
  }

  .app-tagline {
    font-size: 0.72rem;
  }
}
