/* ===== Feature 3 — Outreach ===== */
.outreach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 48px;
}

/* Item wrapper: holds card + text */
.outreach-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Card structure: grey outer + white inset */
.outreach-block {
  display: flex;
  flex-direction: column;
  background: var(--grey-surface);
  border-radius: var(--radius-card);
  padding: 16px;
  flex: 1;
}

.outreach-item h3 {
  font-size: 20px;
  margin-top: 16px;
  margin-bottom: 4px;
}

.outreach-item p {
  font-size: 15px;
  color: var(--black);
}

/* Wide card (row 2) */
.outreach-card-wide {
  grid-column: 1 / -1;
}

.outreach-card-wide h3 {
  font-size: 24px;
}

/* White inset */
.outreach-snippet {
  background: var(--white);
  border-radius: 12px;
  padding: 16px;
  font-size: 13px;
  flex: 1;
}

/* ---- Snippet: email ---- */
.snippet-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.snippet-row + .snippet-row {
  border-top: 1px solid var(--border);
}

.snippet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.snippet-email-text {
  flex: 1;
  font-family: monospace;
  font-size: 12px;
}

.snippet-badge {
  font-size: 11px;
  font-weight: 700;
  background: #e6f7f1;
  color: #1a9a76;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.snippet-send-icon {
  font-size: 14px;
  color: var(--grey-text);
  flex-shrink: 0;
}

/* ---- Snippet: linkedin / connections ---- */
.snippet-profile-header {
  margin-bottom: 12px;
}

.snippet-name {
  font-weight: 700;
  font-size: 14px;
}

.snippet-title {
  font-size: 12px;
  color: var(--grey-text);
}

.snippet-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 12px;
}

.snippet-connections {
  font-size: 13px;
  color: var(--grey-text);
  margin-bottom: 8px;
}

.snippet-connection-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.snippet-connection-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.snippet-mini-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--grey-text);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 8px;
  flex-shrink: 0;
}

/* ---- Snippet: submit decks form ---- */
.snippet-form-url {
  font-size: 13px;
  color: var(--grey-text);
  margin-bottom: 12px;
}

.snippet-form-input {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--grey-text);
  margin-bottom: 8px;
}

.snippet-form-btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  margin-top: 4px;
}

/* ---- Snippet: csv / export table ---- */
.snippet-table {
  font-family: monospace;
  font-size: 12px;
  overflow-x: auto;
}

.snippet-table-header {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  color: var(--grey-text);
}

.snippet-table-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.snippet-table-row.faded {
  opacity: 0.5;
}

.snippet-export-actions {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 12px;
}

.snippet-export-btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
}

/* ---- Catch-all badge ---- */
.snippet-badge-catchall {
  font-size: 11px;
  font-weight: 700;
  background: #FEF3C7;
  color: #92400E;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* ---- Loading spinner ---- */
.snippet-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- Outreach card animations ---- */
.snippet-connection-item.anim-ready {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.snippet-connection-item.anim-visible {
  opacity: 1;
  transform: translateY(0);
}

.snippet-form-input.anim-ready,
.snippet-form-btn.anim-ready {
  opacity: 0.4;
  transition: opacity 0.5s ease;
}

.snippet-form-input.anim-visible,
.snippet-form-btn.anim-visible {
  opacity: 1;
}

.snippet-table-row.anim-ready {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.snippet-table-row.anim-visible {
  opacity: 1;
  transform: translateY(0);
}

.snippet-table-row.faded.anim-visible {
  opacity: 0.5;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .snippet-spinner {
    animation: none;
  }

  .snippet-connection-item.anim-ready,
  .snippet-form-input.anim-ready,
  .snippet-form-btn.anim-ready,
  .snippet-table-row.anim-ready {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
