/* DealThread App Styles — matches brand: navy, gold, Syne/DM Sans */

/* ─── App Shell ───────────────────────────────────── */
.app-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}
.app-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--off-white);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  font-size: 13px;
  font-weight: 400;
  color: var(--warm-gray);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--off-white); background: rgba(245, 240, 232, 0.05); }
.nav-link-cta {
  background: rgba(201, 168, 76, 0.12);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.2);
}
.nav-link-cta:hover { background: rgba(201, 168, 76, 0.2); color: var(--gold); }

.app-content { max-width: 1200px; margin: 0 auto; padding: 64px 40px 120px; }

.app-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  color: var(--off-white);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.app-subtitle { font-size: 15px; color: var(--warm-gray); font-weight: 300; max-width: 540px; }

/* ─── Intake Form ─────────────────────────────────── */
.intake-wrapper { max-width: 640px; }
.intake-header { margin-bottom: 48px; }

.intake-form { display: flex; flex-direction: column; gap: 40px; }
.form-section { display: flex; flex-direction: column; gap: 20px; }
.form-section-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 12px; font-weight: 500; color: var(--warm-gray); letter-spacing: 0.03em; }
.required { color: var(--gold); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  background: rgba(245, 240, 232, 0.04);
  border: 1px solid rgba(245, 240, 232, 0.08);
  border-radius: 6px;
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  transition: border-color 0.15s, background 0.15s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23A89F91' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-group select option { background: #111827; color: var(--off-white); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(168, 159, 145, 0.5); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(201, 168, 76, 0.4);
  background: rgba(245, 240, 232, 0.06);
}
.form-group textarea { resize: vertical; min-height: 100px; line-height: 1.6; }

.btn-submit {
  align-self: flex-start;
  padding: 13px 28px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: opacity 0.15s;
}
.btn-submit:hover { opacity: 0.88; }

.success-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 8px;
  margin-bottom: 40px;
  color: var(--off-white);
  font-size: 14px;
}
.success-banner svg { flex-shrink: 0; margin-top: 2px; }
.success-banner div { flex: 1; }
.success-banner strong { display: block; color: var(--off-white); font-weight: 500; margin-bottom: 4px; }
.success-banner p { color: var(--warm-gray); font-weight: 300; margin: 0; }

.btn-outline {
  display: inline-block;
  padding: 10px 20px;
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-outline:hover { background: rgba(201, 168, 76, 0.06); }
.btn-outline-sm { padding: 8px 16px; font-size: 12px; }

.error-banner {
  padding: 14px 18px;
  background: rgba(220, 80, 80, 0.08);
  border: 1px solid rgba(220, 80, 80, 0.2);
  border-radius: 6px;
  color: #e05a5a;
  font-size: 14px;
  margin-bottom: 32px;
}

/* ─── Pipeline Board ───────────────────────────────── */
.pipeline-header { margin-bottom: 48px; }

.pipeline-board {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 16px;
}

.pipeline-col { min-width: 0; }
.col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  margin-bottom: 10px;
  background: rgba(245, 240, 232, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.06);
  border-radius: 6px;
}
.col-title { font-family: var(--font-display); font-size: 11px; font-weight: 600; color: var(--warm-gray); letter-spacing: 0.06em; text-transform: uppercase; }
.col-count {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.col-cards { display: flex; flex-direction: column; gap: 8px; }

.deal-card {
  background: rgba(245, 240, 232, 0.03);
  border: 1px solid rgba(245, 240, 232, 0.06);
  border-radius: 8px;
  padding: 16px;
  transition: border-color 0.15s;
}
.deal-card:hover { border-color: rgba(201, 168, 76, 0.15); }
.deal-card-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--off-white);
  margin-bottom: 8px;
  line-height: 1.3;
}
.deal-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.deal-card-meta span {
  font-size: 11px;
  color: var(--warm-gray);
  font-weight: 400;
}
.deal-card-price {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}
.deal-card-price .na { font-size: 12px; color: rgba(168, 159, 145, 0.5); font-weight: 400; }
.deal-card-actions { }
.stage-select {
  width: 100%;
  padding: 6px 10px;
  background: rgba(245, 240, 232, 0.04);
  border: 1px solid rgba(245, 240, 232, 0.08);
  border-radius: 4px;
  color: var(--warm-gray);
  font-family: var(--font-body);
  font-size: 11px;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23A89F91' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
}
.stage-select option { background: #111827; }

/* ─── Deals List ──────────────────────────────────── */
.deals-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.deals-list { display: flex; flex-direction: column; gap: 0; border: 1px solid rgba(245, 240, 232, 0.06); border-radius: 10px; overflow: hidden; }

.deal-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 32px;
  padding: 24px 28px;
  background: rgba(245, 240, 232, 0.02);
  border-bottom: 1px solid rgba(245, 240, 232, 0.04);
  transition: background 0.15s;
}
.deal-row:last-child { border-bottom: none; }
.deal-row:hover { background: rgba(245, 240, 232, 0.04); }

.deal-row-left { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.deal-row-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--off-white);
}
.deal-row-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--warm-gray);
  background: rgba(245, 240, 232, 0.06);
  border: 1px solid rgba(245, 240, 232, 0.06);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.tag-stage { }
.status-identifying { background: rgba(168, 159, 145, 0.12); color: var(--warm-gray); }
.status-outreach { background: rgba(201, 168, 76, 0.1); color: var(--gold); }
.status-nda { background: rgba(100, 160, 255, 0.1); color: #8ab4ff; }
.status-loi { background: rgba(100, 220, 140, 0.1); color: #64dc8c; }
.status-closed { background: rgba(201, 168, 76, 0.15); color: var(--gold); border-color: rgba(201, 168, 76, 0.2); }
.status-dead { background: rgba(220, 80, 80, 0.1); color: #e05a5a; }

.deal-row-notes { font-size: 13px; color: var(--warm-gray); font-weight: 300; margin-top: 4px; line-height: 1.55; max-width: 400px; }

.deal-row-financials { display: flex; gap: 24px; }
.deal-metric { display: flex; flex-direction: column; gap: 3px; text-align: right; }
.metric-label { font-size: 10px; color: var(--warm-gray); font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; }
.metric-value { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--off-white); }

.deal-row-price { text-align: right; min-width: 120px; }
.price-main { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--off-white); }
.price-label { display: block; font-size: 11px; color: rgba(168, 159, 145, 0.5); font-weight: 400; letter-spacing: 0.05em; text-transform: uppercase; margin-top: 2px; }
.price-na { font-size: 13px; color: rgba(168, 159, 145, 0.4); font-weight: 300; }

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .pipeline-board { grid-template-columns: repeat(3, 180px); }
  .form-row { grid-template-columns: 1fr; }
  .deal-row { grid-template-columns: 1fr; gap: 16px; }
  .deals-header { flex-direction: column; }
}
@media (max-width: 600px) {
  .app-content { padding: 40px 24px 80px; }
  .app-nav-inner { padding: 0 24px; }
  .pipeline-board { grid-template-columns: repeat(2, 160px); }
  .deal-row-financials { flex-direction: row; gap: 16px; }
}