/* ============================================================
   Dating Copilot — Phase 4/5 styles
   Matches the app design system: near-black violet, electric violet,
   soft rose. Uses the CSS vars from styles.css.
   ============================================================ */

/* ---------- shared ---------- */
.dc45-headrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dc45-lang { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.dc45-lang-select {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 13px;
}

.dc45-upgrade { text-align: center; padding: 30px 22px; }
.dc45-upg-icon { font-size: 40px; display: block; margin-bottom: 8px; }
.dc45-upgrade h3 { margin: 0 0 8px; }
.dc45-upgrade p { color: var(--muted); margin: 0 0 18px; }
.dc45-upgrade .btn { display: inline-block; }

.dc45-code {
  background: #0b0a0e;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--violet);
  word-break: break-all;
  overflow-wrap: anywhere;
}
.dc45-transcript {
  font-style: italic;
  color: var(--text);
  background: var(--surface-2);
  border-left: 3px solid var(--violet);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 14px;
  margin: 0;
}
.dc45-score-row { display: flex; align-items: center; gap: 16px; }
.dc45-big-score {
  width: 76px; height: 76px; border-radius: 50%;
  border: 4px solid var(--violet);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; color: var(--violet);
  flex: 0 0 auto;
}

/* ---------- community ---------- */
.dc45-post {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
a.dc45-post:hover { text-decoration: none; border-color: var(--violet); transform: translateY(-1px); }
.dc45-post-title { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.dc45-post-meta { font-size: 12px; color: var(--muted-2); margin-bottom: 6px; }
.dc45-post-excerpt { font-size: 14px; color: var(--muted); }
.dc45-thread-body { font-size: 15px; white-space: pre-wrap; margin: 10px 0 0; }
.dc45-reply { margin-bottom: 10px; }
.dc45-reply p { margin: 8px 0 0; white-space: pre-wrap; }

/* ---------- developers ---------- */
.dc45-docs { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.dc45-doc-row {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.dc45-method {
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em;
  color: #0e0c12; background: var(--violet);
  border-radius: 6px; padding: 3px 8px; white-space: nowrap;
}
.dc45-path { font-size: 13px; color: var(--text); }
.dc45-doc-body { font-size: 12px; color: var(--muted); }
.dc45-key-form { display: flex; gap: 10px; margin-bottom: 14px; }
.dc45-key-form .input { flex: 1; }
.dc45-key-once {
  background: var(--violet-soft);
  border: 1px solid var(--violet);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 14px;
}
.dc45-key-secret { margin: 10px 0; color: var(--text); }
.dc45-key-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px; margin-bottom: 8px;
}
.dc45-key-name { font-weight: 700; }
.dc45-key-meta { font-size: 12px; color: var(--muted-2); }

/* ---------- white-label ---------- */
.dc45-wl-preview {
  --wl-accent: var(--violet);
  background: #0e0c12;
  border: 2px solid var(--wl-accent);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.dc45-wl-brand { font-size: 22px; font-weight: 800; color: var(--wl-accent); }
.dc45-wl-logo { max-height: 64px; margin: 0 auto 10px; border-radius: 8px; }
.dc45-wl-link { font-size: 12px; }
.dc45-accent-row { display: flex; gap: 10px; align-items: center; }
.dc45-accent-row .input { flex: 1; }
.dc45-color {
  width: 52px; height: 44px; padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.dc45-coach-logo { width: 30px; height: 30px; border-radius: 8px; object-fit: contain; }

/* ---------- enterprise ---------- */
.dc45-ent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 8px 0 18px;
}
.dc45-ent-card { position: relative; display: flex; flex-direction: column; }
.dc45-ent-card h3 { margin-top: 0; }
.dc45-ent-card p { color: var(--muted); flex: 1; }
.dc45-ent-card .btn { align-self: flex-start; }

/* ---------- small screens ---------- */
@media (max-width: 480px) {
  .dc45-key-form { flex-direction: column; }
  .dc45-headrow { align-items: flex-start; }
}
