/* ============================================================
   55 Knots Dashboard — Shared Styles
   Soft, modern, friendly. Manrope for everything.
   ============================================================ */

:root {
  /* Palette */
  --ink: #0f0f10;
  --ink-soft: #2a2a2c;
  --red: #c8102e;
  --red-soft: #fce8eb;
  --cream: #f4f0e8;
  --paper: #ffffff;
  --grey-bg: #f5f3ee;
  --grey-input: #efece5;
  --grey-border: #e8e5dc;
  --grey-text: #6e6b62;
  --grey-subtle: #aba79c;

  /* Status colours (kept consistent from before) */
  --status-ready: #fbd7df;
  --status-ready-text: #8a0d22;
  --status-being: #d8efde;
  --status-being-text: #1e6b3a;
  --status-assets: #fbe9c8;
  --status-assets-text: #8a5e0d;
  --status-revision: #d3eef0;
  --status-revision-text: #0d6975;
  --status-design-ready: #c8102e;
  --status-design-ready-text: #ffffff;
  --status-completed: #d6d6d6;
  --status-completed-text: #555;

  /* Fonts */
  --font-ui: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;

  /* Radii */
  --r-card: 24px;
  --r-input: 14px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-card: 0 1px 2px rgba(15, 15, 16, 0.04), 0 8px 24px -12px rgba(15, 15, 16, 0.08);
  --shadow-hover: 0 1px 2px rgba(15, 15, 16, 0.04), 0 12px 32px -12px rgba(15, 15, 16, 0.14);
}

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

html, body {
  font-family: var(--font-ui);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  font-weight: 400;
}

/* ========== TYPOGRAPHY HELPERS ========== */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--grey-text);
}

/* Used inline: <h1>My <strong>Organization</strong></h1> */
h1, h2, h3 { font-weight: 400; letter-spacing: -0.02em; }
h1 strong, h2 strong, h3 strong { font-weight: 800; letter-spacing: -0.025em; }

/* ========== LOGO ========== */

.logo-mark {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s;
}
.logo-mark:hover { color: var(--red); }
.logo-mark svg {
  width: auto;
  height: 22px;
  display: block;
}
.logo-mark.on-dark { color: var(--paper); }

/* ========== BUTTONS ========== */

button, .btn {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  border: 0;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.05s, box-shadow 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover:not(:disabled) {
  background: var(--red);
}
.btn-primary:active:not(:disabled) { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-secondary {
  background: var(--grey-bg);
  color: var(--ink);
}
.btn-secondary:hover {
  background: var(--grey-border);
}

.btn-ghost {
  background: transparent;
  color: var(--grey-text);
}
.btn-ghost:hover { color: var(--red); background: var(--grey-bg); }

/* ========== INPUTS ========== */

input[type="text"], input[type="email"], input[type="password"],
input[type="date"], input[type="search"], select, textarea {
  width: 100%;
  background: var(--grey-input);
  border: 1.5px solid transparent;
  border-radius: var(--r-input);
  padding: 14px 16px;
  font-size: 15px;
  font-family: var(--font-ui);
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
textarea { line-height: 1.55; resize: vertical; min-height: 110px; font-weight: 400; }
input::placeholder, textarea::placeholder { color: var(--grey-subtle); font-weight: 400; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--paper);
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><path d='M3 5l4 4 4-4' stroke='%230f0f10' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
}

label {
  display: block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--ink);
}
.field-hint {
  font-size: 13px;
  color: var(--grey-text);
  margin-bottom: 10px;
  line-height: 1.5;
}

/* ========== PILLS ========== */

.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1px;
  border: 0;
  white-space: nowrap;
}
select.pill {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M1 3l4 4 4-4' stroke='currentColor' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.s-ready_to_start  { background: var(--status-ready);        color: var(--status-ready-text); }
.s-being_designed  { background: var(--status-being);        color: var(--status-being-text); }
.s-assets_needed   { background: var(--status-assets);       color: var(--status-assets-text); }
.s-revision_needed { background: var(--status-revision);     color: var(--status-revision-text); }
.s-design_ready    { background: var(--status-design-ready); color: var(--status-design-ready-text); }
.s-review          { background: var(--status-design-ready); color: var(--status-design-ready-text); }
.s-completed       { background: var(--status-completed);    color: var(--status-completed-text); }
.s-awaiting_approval   { background: #fff3cc; color: #6b5500; }
.s-awaiting_assets     { background: var(--status-assets); color: var(--status-assets-text); }
.s-revisions_requested { background: var(--red-soft); color: var(--red); }
.s-internal_qa         { background: #e6dffb; color: #4a3b8c; }

/* Approval state pills (client-facing) */
.pill-awaiting-approval {
  background: #fff3cc;
  color: #6b5500;
}
.pill-revisions {
  background: var(--red-soft);
  color: var(--red);
}

/* Status stack: real status pill + small badge below for crew */
.status-stack {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.approval-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
}
.approval-badge.awaiting-client {
  background: #fff3cc;
  color: #6b5500;
}
.approval-badge.revisions {
  background: var(--red-soft);
  color: var(--red);
}

/* ========== MSG BANNERS ========== */

.msg {
  margin-top: 14px;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: var(--r-input);
  display: none;
  line-height: 1.5;
  font-weight: 500;
}
.msg.show { display: block; }
.msg.error { background: var(--red-soft); color: var(--red); }
.msg.success { background: #e6f4ea; color: #1e7a3a; }

/* ========== CARD ========== */

.card {
  background: var(--paper);
  border-radius: var(--r-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

/* ========== UTILITY ========== */
.hidden { display: none !important; }

/* ========== NAV ICONS — white when active or on submit button ========== */
.nav-link.active .nav-link-icon,
.mobile-nav-link.active .nav-link-icon,
.submit-btn .nav-link-icon,
.mobile-nav-link.submit-action .nav-link-icon {
  filter: brightness(0) invert(1);
}
