/* Prospector Dashboard Styles */

.prospector-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 80px;
}

.prospector-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
}

.page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 8px;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 15px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: #e55a1f; transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-secondary {
  background: var(--surface-alt);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: #222228; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); background: var(--surface-alt); }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-icon { font-size: 16px; }

/* Stats bar */
.stats-bar {
  display: flex;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 32px;
  overflow: hidden;
}

.stat {
  flex: 1;
  padding: 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }

.stat-value {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: var(--text);
  letter-spacing: 1px;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.stat-success .stat-value { color: var(--success); }

/* Loading state */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px;
  color: var(--text-muted);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Error state */
.error-state {
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.3);
  border-radius: 8px;
  padding: 16px;
  color: #ff6b6b;
  margin-bottom: 24px;
}

/* Prospect grid */
.prospect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 20px;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 40px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 12px;
}

/* Prospect card */
.prospect-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s;
}
.prospect-card:hover { border-color: rgba(255, 107, 44, 0.3); }

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.brand-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 4px;
}

.website-link {
  color: var(--accent);
  font-size: 13px;
  text-decoration: none;
}
.website-link:hover { text-decoration: underline; }

/* Status select */
.status-select {
  background: var(--surface-alt);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8890' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.status-select option { background: var(--surface); color: var(--text); }

/* Card body */
.card-body {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.badge {
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 500;
}

.badge-dim {
  background: var(--surface-alt);
  color: var(--text-muted);
}

/* Card sections */
.card-section {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.card-section:last-of-type { border-bottom: none; }

.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.section-content {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Contact links */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.contact-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  border: 1px solid var(--accent-dim);
  padding: 3px 10px;
  border-radius: 4px;
  transition: all 0.2s;
}
.contact-link:hover { background: var(--accent-dim); text-decoration: none; }

.contact-email { color: var(--text-muted); border-color: var(--border); }

/* Outreach sequence */
.sequence-emails {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.email-item {
  background: var(--surface-alt);
  border-radius: 8px;
  padding: 14px;
}

.email-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.email-day {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 600;
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }

.email-subject {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 8px;
}

.email-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  white-space: pre-wrap;
}

/* Card footer */
.card-footer {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.delete-btn {
  margin-left: auto;
  color: #ff6b6b;
}
.delete-btn:hover { background: rgba(255, 80, 80, 0.1); border-color: rgba(255, 80, 80, 0.3); }

@media (max-width: 768px) {
  .prospector-page { padding: 20px; }
  .prospector-header { flex-direction: column; gap: 16px; }
  .page-title { font-size: 36px; }
  .stats-bar { flex-wrap: wrap; }
  .stat { flex: 1 1 40%; }
  .prospect-grid { grid-template-columns: 1fr; }
}