/* DNS Propagation Checker — prop.css */

/* Pill nav variant */
.pill-link {
  text-decoration: none;
  transition: all .15s;
  color: var(--text-2);
}
.pill-link:hover { color: var(--accent); border-color: var(--accent); }
.pill-active {
  background: var(--accent);
  color: #fff;
  padding: 3px 10px; border-radius: 100px;
  font-size: 12px; font-weight: 600;
}

/* Override hero subtitle strong */
.subtitle strong { color: var(--accent); font-weight: 700; }

/* ─── Progress ───────────────────────────────────────────────────────────────── */
.progress-wrap { margin-bottom: 14px; }
.progress-bar {
  height: 5px; border-radius: 100px;
  background: var(--bg-3); overflow: hidden;
  margin-bottom: 6px;
}
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), #60a5fa);
  border-radius: 100px;
  transition: width .25s ease;
}
.progress-label {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--text-3);
}

/* ─── Summary chips ──────────────────────────────────────────────────────────── */
.summary-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 100px;
  font-size: 12px; font-weight: 600;
  border: 1px solid var(--border); background: var(--bg-2);
  color: var(--text-3);
  transition: all .2s;
}
.chip svg { flex-shrink: 0; }
.chip-ok       { color: #16a34a; background: #f0fdf4; border-color: #bbf7d0; }
.chip-diff     { color: #d97706; background: #fffbeb; border-color: #fde68a; }
.chip-nxdomain { color: #dc2626; background: #fef2f2; border-color: #fecaca; }
.chip-timeout  { color: #64748b; }

@media (prefers-color-scheme: dark) {
  .chip-ok       { background: #052e16; border-color: #14532d; }
  .chip-diff     { background: #451a03; border-color: #78350f; }
  .chip-nxdomain { background: #450a0a; border-color: #7f1d1d; }
}

/* ─── Map ────────────────────────────────────────────────────────────────────── */
#map {
  height: 460px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 1;
  background: #dde8f0;
}
.map-note {
  font-size: 11px; color: var(--text-3);
  text-align: center; margin-top: 6px; margin-bottom: 20px;
}

/* Leaflet overrides */
.leaflet-container { font-family: inherit; }
.leaflet-tooltip {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  color: var(--text) !important;
  font-size: 12px !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 6px 10px !important;
  white-space: nowrap;
}
.leaflet-tooltip::before { display: none !important; }
.leaflet-control-zoom a {
  color: var(--text-2) !important;
  background: var(--card) !important;
  border-color: var(--border) !important;
}

/* Pin pulse animation (pending state) */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.2); }
}
.pin-pending { animation: pulse .9s ease-in-out infinite; }

/* ─── Table ──────────────────────────────────────────────────────────────────── */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 48px;
  box-shadow: var(--shadow);
}
#results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
#results-table thead {
  background: var(--bg-2);
  position: sticky; top: 0; z-index: 2;
}
#results-table th {
  text-align: left; padding: 10px 14px;
  font-size: 11px; font-weight: 600; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .6px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
#results-table td {
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
#results-table tr:last-child td { border-bottom: none; }
#results-table tr:hover td { background: var(--bg-2); }

/* Flag + city cell */
.cell-loc {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; white-space: nowrap;
}
.flag { font-size: 16px; line-height: 1; }
.city-name { color: var(--text-2); }

/* Answer cell */
.cell-answer {
  font-family: var(--mono); font-size: 12px;
  max-width: 260px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
  color: var(--text);
}

/* Status badges */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 5px;
  font-size: 11px; font-weight: 700;
  white-space: nowrap;
}
.badge-ok       { background: #dcfce7; color: #15803d; }
.badge-diff     { background: #fef9c3; color: #a16207; }
.badge-nxdomain { background: #fee2e2; color: #b91c1c; }
.badge-timeout  { background: var(--bg-3); color: var(--text-3); }
.badge-error    { background: #fee2e2; color: #b91c1c; }

@media (prefers-color-scheme: dark) {
  .badge-ok       { background: #14532d; color: #86efac; }
  .badge-diff     { background: #422006; color: #fde68a; }
  .badge-nxdomain { background: #450a0a; color: #fca5a5; }
  .badge-error    { background: #450a0a; color: #fca5a5; }
}

/* ms cell color */
.ms-fast   { color: #16a34a; }
.ms-medium { color: #d97706; }
.ms-slow   { color: #dc2626; }

.table-empty {
  padding: 40px; text-align: center;
  color: var(--text-3); font-size: 14px;
  background: var(--card);
}

/* ─── Mobile ─────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  #map { height: 280px; }
  #results-table th:nth-child(5),
  #results-table td:nth-child(5) { display: none; } /* hide TTL */
  .cell-answer { max-width: 120px; }
}
