/* destinations.css — 配信先カード + フィルタピル */

.dest-filter-pill {
  padding: 4px 12px;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.15s ease;
}
.dest-filter-pill:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.dest-filter-pill--active {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border-color: #047857;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.dest-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.15s, border-color 0.15s;
  position: relative;
}
.dest-card:hover {
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.12);
  border-color: #cbd5e1;
}

.dest-card__type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 8px;
  width: fit-content;
}
.dest-card__type--google_drive { background: #dbeafe; color: #1d4ed8; }
.dest-card__type--bigquery     { background: #e0e7ff; color: #4338ca; }
.dest-card__type--email        { background: #fce7f3; color: #be185d; }
.dest-card__type--slack        { background: #f3e8ff; color: #7e22ce; }

.dest-card__name {
  font-weight: 700;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.3;
}

.dest-card__config {
  font-size: 12px;
  color: #475569;
  background: #f8fafc;
  border-radius: 8px;
  padding: 8px 10px;
  border: 1px solid #f1f5f9;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  word-break: break-all;
  line-height: 1.5;
}
.dest-card__config code {
  background: transparent;
  color: #0f172a;
  font-weight: 600;
}

.dest-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #64748b;
}
.dest-card__badge {
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}
.dest-card__badge--mock    { background: #fef3c7; color: #92400e; }
.dest-card__badge--live    { background: #d1fae5; color: #065f46; }
.dest-card__badge--default { background: #dbeafe; color: #1e40af; }
.dest-card__badge--disabled { background: #fee2e2; color: #991b1b; }

.dest-card__actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
}
.dest-card__actions button {
  flex: 1;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.1s;
}
.dest-card__actions .btn-edit  { background: #f1f5f9; color: #334155; }
.dest-card__actions .btn-edit:hover  { background: #e2e8f0; }
.dest-card__actions .btn-test  { background: #d1fae5; color: #065f46; }
.dest-card__actions .btn-test:hover  { background: #a7f3d0; }
.dest-card__actions .btn-toggle { background: #fef3c7; color: #92400e; }
.dest-card__actions .btn-toggle:hover { background: #fde68a; }

/* 配信ログ行 */
.dlv-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
}
.dlv-row__status {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.dlv-row__status--success { background: #d1fae5; color: #065f46; }
.dlv-row__status--mocked  { background: #fef3c7; color: #92400e; }
.dlv-row__status--failed  { background: #fee2e2; color: #991b1b; }
.dlv-row__when {
  font-size: 11px;
  color: #64748b;
  font-family: ui-monospace, Menlo, monospace;
}
.dlv-row__by {
  font-size: 11px;
  color: #94a3b8;
}
