/* css/components/integrations-grid.css — TinkyTown Integrations sub-tab grid
 * Phase 3 P3.T5. Brand: Fraunces + General Sans + var(--surface-deep)
 * var(--amber) var(--green) var(--green-soft). All colours via var() — no
 * raw hex.
 *
 * Renders a responsive grid of integration cards (Stripe, Twilio, Google,
 * Microsoft, Maps, SMS, MDM, AI Providers) with status badge, last-checked
 * timestamp, and a Reconnect button.
 */

.tt-int-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
  padding: 0.75rem 0;
  margin: 0 0 1rem;
  font-family: var(--f-sans, 'General Sans', system-ui, sans-serif);
}

.tt-int-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.95rem 1rem 0.85rem;
  background: var(--surface-deep, #0d0b10);
  border: 1px solid color-mix(in srgb, var(--amber, #e8a33d) 22%, transparent);
  border-radius: 14px;
  min-height: 168px;
  transition: border-color 140ms ease, transform 140ms ease;
}

.tt-int-card:hover {
  border-color: color-mix(in srgb, var(--amber, #e8a33d) 45%, transparent);
}

.tt-int-card-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.tt-int-icon {
  font-size: 1.45rem;
  line-height: 1;
  flex: 0 0 auto;
}

.tt-int-name {
  font-family: var(--f-display, 'Fraunces', Georgia, serif);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary, #fff);
  margin: 0;
}

.tt-int-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  padding: 0.18rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: color-mix(in srgb, currentColor 8%, transparent);
}

.tt-int-badge.is-connected    { color: var(--green, #4ade80); }
.tt-int-badge.is-disconnected { color: var(--amber-strong, #c98620); }
.tt-int-badge.is-unconfigured { color: var(--text-muted, rgba(255,255,255,0.55)); }

.tt-int-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
}

.tt-int-meta {
  font-size: 0.78rem;
  color: var(--text-muted, rgba(255, 255, 255, 0.6));
  margin: 0;
}

.tt-int-reconnect {
  margin-top: auto;
  align-self: flex-start;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--surface-deep, #0d0b10);
  background: var(--amber, #e8a33d);
  border: 1px solid var(--amber-strong, #c98620);
  border-radius: 10px;
  cursor: pointer;
  transition: background 120ms ease, transform 80ms ease;
}

.tt-int-reconnect:hover  { background: var(--amber-soft, #f0bb6b); }
.tt-int-reconnect:active { transform: translateY(1px); }
.tt-int-reconnect:focus-visible {
  outline: 2px solid var(--green, #4ade80);
  outline-offset: 2px;
}
