/* ============================================================
   DARK MODE - HONEYCOMB THEME
   Blue-Purple tones, centered glow, canvas background
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg:        #111114;
  --hex-fill:  #18181d;
  --hex-stroke:#222228;
  --glow-1:    #7c3aed;  /* Violet glow */
  --glow-2:    #4f46e5;  /* Indigo      */
  --accent:    #ff6436;  /* n8n Orange  */
  --card-bg:   rgba(24, 24, 30, 0.82);
  --text:      #f5f5f7;
  --text-dim:  #8e8e9e;
  --border:    rgba(255, 255, 255, 0.07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── Canvas background ── */
#honeycomb-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Content layer ── */
.app-wrapper {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

/* ── Hero header ── */
.hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 3rem;
}

/* ── Orange accent label ── */
.hero-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 860px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 1.75rem;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04) inset,
              0 20px 50px rgba(0,0,0,0.6);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.07) inset,
              0 25px 60px rgba(0,0,0,0.7);
}

.card-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

/* ── Status rows ── */
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.status-row:last-child { border-bottom: none; }

.status-label { font-size: 0.9rem; color: var(--text-dim); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}
.badge-ok  { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.badge-err { background: rgba(239,68,68,0.15);  color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-ok  { background: #4ade80; box-shadow: 0 0 6px #4ade80; }
.dot-err { background: #f87171; box-shadow: 0 0 6px #f87171; }

/* ── Button ── */
.btn-ping {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(255,100,54,0.35);
}
.btn-ping:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 6px 28px rgba(255,100,54,0.45); }
.btn-ping:active { transform: translateY(0); }

/* ── Ping count badge ── */
.ping-count {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: rgba(255,100,54,0.12);
  border: 1px solid rgba(255,100,54,0.3);
  color: #ff8c6b;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-left: 0.75rem;
}

/* ── HTMX result box ── */
.result-box {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  min-height: 44px;
}

/* ── Stack badges at bottom ── */
.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
  justify-content: center;
}
.tech-tag {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
