/* ---- API Gateway index page ---- */
/* Edit freely; re-apply the ConfigMap and rollout restart to publish. */

:root {
  --bg: #0f172a;
  --bg-soft: #1e293b;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #4f46e5;
  --accent-soft: #eef2ff;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --social: #0ea5e9;
  --social-soft: #e0f2fe;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  padding: 56px 0 72px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.site-header .tagline {
  margin: 10px 0 0;
  color: #cbd5e1;
  font-size: 1.05rem;
}
.site-header code {
  background: rgba(255,255,255,.10);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: .92em;
  color: #e0e7ff;
}

/* Cards grid */
main { padding: 40px 0 64px; margin-top: -40px; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(15,23,42,.06), 0 14px 32px rgba(15,23,42,.10);
}

.card-head { display: flex; align-items: center; gap: 10px; }
.card-head h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 650;
  line-height: 1.35;
}

.badge {
  flex: 0 0 auto;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.badge-warn   { background: var(--warn-soft);   color: var(--warn); }
.badge-social { background: var(--social-soft); color: var(--social); }

.desc {
  margin: 0;
  color: var(--muted);
  font-size: .96rem;
  flex: 1 1 auto;
}

.btn {
  align-self: flex-start;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: .92rem;
  padding: 9px 16px;
  border-radius: 9px;
  transition: background .15s ease;
}
.btn:hover { background: #4338ca; }

.url {
  display: block;
  background: var(--bg-soft);
  color: #cbd5e1;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .82rem;
  padding: 8px 12px;
  border-radius: 8px;
  overflow-x: auto;
  white-space: nowrap;
}

/* Footer */
.site-footer {
  background: var(--bg-soft);
  color: #94a3b8;
  font-size: .88rem;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .site-header { padding: 40px 0 60px; }
  .site-header h1 { font-size: 1.6rem; }
}
