/* Pounce App Styles — dark theme matching landing page */
:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --surface-2: #18181f;
  --border: #1e1e2e;
  --accent: #ff6b35;
  --accent-glow: rgba(255, 107, 53, 0.15);
  --accent-hover: #ff8555;
  --text: #e8e8ed;
  --text-muted: #8888a0;
  --text-dim: #55556a;
  --success: #3ecf8e;
  --error: #ff5c5c;
}

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

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; }

/* Nav */
nav {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
nav .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--text); }
.logo span { color: var(--accent); }

/* Main layout */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* Section headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.section-header h2 { font-size: 1.4rem; font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
  font-family: inherit;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--surface); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.card-title { font-size: 1rem; font-weight: 600; }
.card-subtitle { color: var(--text-muted); font-size: 0.85rem; margin-top: 2px; }
.card-meta { font-size: 0.8rem; color: var(--text-dim); }
.card-actions { display: flex; gap: 8px; }

/* Tags/badges */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-found { background: rgba(136, 136, 160, 0.15); color: var(--text-muted); }
.badge-drafted { background: var(--accent-glow); color: var(--accent); }
.badge-sent { background: rgba(62, 207, 142, 0.15); color: var(--success); }

/* Forms */
.form-group { margin-bottom: 16px; }
label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
input::placeholder { color: var(--text-dim); }
select option { background: var(--surface); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  width: 480px;
  max-width: calc(100vw - 48px);
  transform: scale(0.95);
  transition: transform 0.2s;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal h2 { margin-bottom: 24px; font-size: 1.3rem; }
.modal-footer { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }

/* Prospect cards */
.prospect-card { padding: 20px; }
.prospect-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.prospect-name { font-weight: 600; }
.prospect-company { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }
.prospect-email-link { font-size: 0.82rem; color: var(--accent); text-decoration: none; }
.prospect-email-link:hover { text-decoration: underline; }
.prospect-notes { font-size: 0.82rem; color: var(--text-muted); margin: 8px 0; font-style: italic; }
.email-draft {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
}
.email-subject { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 8px; font-weight: 600; }
.email-body { font-size: 0.88rem; line-height: 1.6; white-space: pre-wrap; }
.email-actions { margin-top: 12px; display: flex; gap: 8px; }

/* Loading spinner */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}
.empty-state p { margin-top: 12px; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 640px) {
  main { padding: 24px 16px; }
  .card { padding: 16px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 16px; }
}