/* Shared styles for home.rush-team.dev hub + supporting pages. */

:root {
  --bg-grad-from: #0b1220;
  --bg-grad-to: #131a2c;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f4f6;
  --muted: #94a3b8;
  --accent: #fbbf24;
  --accent-blue: #60a5fa;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(ellipse at top left,  rgba(96, 165, 250, 0.18), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(251, 191, 36, 0.10), transparent 50%),
    linear-gradient(160deg, var(--bg-grad-from), var(--bg-grad-to));
  background-attachment: fixed;
}

a { color: var(--accent-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.hub-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 28px 96px;
}

.hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 56px;
}

.hub-header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hub-header .who {
  color: var(--muted);
  font-size: 13px;
}

.hub-header .accent-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
  margin-right: 10px;
  vertical-align: middle;
}

.hub-intro {
  margin: 0 0 40px;
  max-width: 640px;
  color: var(--muted);
  font-size: 15px;
}

.hub-intro b { color: var(--text); }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  padding: 22px 22px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: inherit;
  text-decoration: none !important;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.tile:hover {
  background: var(--panel-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.tile .icon {
  font-size: 22px;
  height: 36px;
  width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(96, 165, 250, 0.15);
  border-radius: 10px;
  margin-bottom: 14px;
}

.tile.amazon .icon { background: rgba(251, 191, 36, 0.18); }
.tile h2 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
}

.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.tile .meta {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tile.coming-soon {
  opacity: 0.6;
  pointer-events: none;
}

.tile.coming-soon .icon { background: rgba(255, 255, 255, 0.06); }
.tile.coming-soon::after {
  content: "Coming soon";
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--muted);
}

.hub-footer {
  margin-top: 64px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* === Single-card pages (denied, error) === */
.card-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  max-width: 480px;
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px 32px;
  box-shadow: var(--shadow);
  text-align: center;
}

.card .glyph {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 14px;
  background: rgba(251, 191, 36, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.card h1 {
  font-size: 20px;
  margin: 0 0 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.card .actions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  background: var(--accent-blue);
  color: #0b1220;
  font-weight: 600;
  text-decoration: none !important;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.btn:hover { filter: brightness(1.07); }

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
