/* ============================================================
   DASHCORE MARKETING OS — design system
   Cloned from dashcore.com homepage (navy / electric blue).
   Fonts: Inter (UI) · Unbounded (display) · Instrument Serif (accent)
   ============================================================ */

:root {
  --navy-deep:   #050d1c;
  --navy:        #0a1628;
  --navy-2:      #0f2040;
  --navy-3:      #16294d;
  --navy-line:   #1e3358;

  --blue:        #2f81ff;
  --blue-bright: #4d9bff;
  --blue-glow:   #1a6bff;
  --blue-soft:   rgba(47,129,255,0.12);
  --blue-ring:   rgba(47,129,255,0.35);

  --violet:      #8b5cf6;
  --green:       #10b981;
  --amber:       #f59e0b;
  --red:         #ef4444;

  --white:       #ffffff;
  --text:        #e6ecf5;
  --text-soft:   #b8c4d6;
  --muted:       #8a97ad;
  --subtle:      #5a6781;

  --r-xs: 6px;
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --pill: 999px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.35);
  --shadow-md: 0 10px 28px rgba(0,0,0,0.45);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.55);
  --glow-blue: 0 0 0 1px var(--blue-ring), 0 0 32px rgba(47,129,255,0.25);

  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur:      320ms;

  --sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: 'Unbounded', 'Inter', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;

  --sidebar-w: 248px;
  --max-w: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(47,129,255,0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(26,107,255,0.08), transparent 55%),
    var(--navy-deep);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: var(--blue-ring); color: var(--white); }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--navy-3); border-radius: 999px; border: 2px solid var(--navy-deep); }
::-webkit-scrollbar-thumb:hover { background: var(--navy-line); }

/* ============================================================
   LAYOUT SHELL
   ============================================================ */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(15,32,64,0.55), rgba(5,13,28,0.4));
  border-right: 1px solid var(--navy-line);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  backdrop-filter: blur(8px);
}

.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px 20px;
}
.brand .wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--white);
}
.brand .wordmark b { color: var(--blue); font-weight: 800; }
.brand .tag {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--subtle);
  margin-top: 2px;
}

.nav-group-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--subtle);
  padding: 16px 10px 6px;
}

.nav-link {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  position: relative;
}
.nav-link .ic { width: 18px; text-align: center; opacity: 0.85; font-size: 14px; }
.nav-link:hover { background: var(--navy-2); color: var(--white); }
.nav-link.active {
  background: linear-gradient(90deg, var(--blue-soft), transparent);
  color: var(--white);
  box-shadow: inset 2px 0 0 var(--blue);
}
.nav-link .count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  background: var(--navy-3);
  padding: 1px 7px;
  border-radius: var(--pill);
}

.sidebar-foot { margin-top: auto; padding: 14px 8px 4px; border-top: 1px solid var(--navy-line); }
.sidebar-foot .who { font-size: 12px; color: var(--muted); }
.sidebar-foot .who b { color: var(--text); font-weight: 600; }

/* ---------- Main ---------- */
.main { flex: 1; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 16px clamp(18px, 3vw, 36px);
  background: rgba(5,13,28,0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--navy-line);
}
.topbar .crumb { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.topbar .spacer { flex: 1; }

.content { padding: clamp(20px, 3vw, 40px); max-width: var(--max-w); }
.content.wide { max-width: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.page-head { margin-bottom: 28px; }
.page-head h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -1px;
  color: var(--white);
  line-height: 1.05;
}
.page-head p { color: var(--text-soft); margin-top: 10px; max-width: 62ch; font-size: 15px; }
.page-head .serif { font-family: var(--serif); font-style: italic; color: var(--blue-bright); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--blue); display: inline-block; }

h2.section { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.4px; color: var(--white); margin: 6px 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: var(--glow-blue); }
.btn-primary:hover { background: var(--blue-bright); box-shadow: 0 0 0 1px var(--blue-ring), 0 0 42px rgba(47,129,255,0.4); }
.btn-ghost { background: var(--navy-2); color: var(--text); border-color: var(--navy-line); }
.btn-ghost:hover { background: var(--navy-3); color: var(--white); }
.btn-sm { padding: 7px 13px; font-size: 12.5px; }

/* ============================================================
   CARDS + SURFACES
   ============================================================ */
.card {
  background: linear-gradient(180deg, rgba(15,32,64,0.5), rgba(10,22,40,0.35));
  border: 1px solid var(--navy-line);
  border-radius: var(--r);
  padding: 20px;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card.hover:hover { transform: translateY(-3px); border-color: var(--blue-ring); box-shadow: var(--shadow-md); }
.card.glow { box-shadow: var(--glow-blue); border-color: var(--blue-ring); }

.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ---------- Stat tiles ---------- */
.stat {
  background: linear-gradient(180deg, rgba(15,32,64,0.55), rgba(10,22,40,0.3));
  border: 1px solid var(--navy-line);
  border-radius: var(--r);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}
.stat::after {
  content: ''; position: absolute; right: -20px; top: -20px;
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, var(--blue-soft), transparent 70%);
}
.stat .k { font-family: var(--mono); font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.stat .v { font-family: var(--display); font-weight: 800; font-size: 34px; color: var(--white); line-height: 1; margin-top: 10px; letter-spacing: -1px; }
.stat .sub { font-size: 12px; color: var(--text-soft); margin-top: 8px; }
.stat .sub b { color: var(--blue-bright); }

/* ============================================================
   BADGES / PILLS
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--pill);
  border: 1px solid var(--navy-line);
  color: var(--text-soft);
  background: var(--navy-2);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.badge.blue   { color: var(--blue-bright); border-color: var(--blue-ring); background: var(--blue-soft); }
.badge.blue .dot { background: var(--blue); }
.badge.violet { color: #c4b5fd; border-color: rgba(139,92,246,0.4); background: rgba(139,92,246,0.12); }
.badge.violet .dot { background: var(--violet); }
.badge.green  { color: #6ee7b7; border-color: rgba(16,185,129,0.4); background: rgba(16,185,129,0.12); }
.badge.green .dot { background: var(--green); }
.badge.amber  { color: #fcd34d; border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.12); }
.badge.amber .dot { background: var(--amber); }
.badge.red    { color: #fca5a5; border-color: rgba(239,68,68,0.4); background: rgba(239,68,68,0.12); }
.badge.red .dot { background: var(--red); }

/* status dots */
.status-idea .dot { background: var(--subtle); }
.status-draft .dot { background: var(--amber); }
.status-ready .dot { background: var(--blue); }
.status-scheduled .dot { background: var(--violet); }
.status-published .dot { background: var(--green); }
.status-generating .dot { background: var(--blue-bright); animation: pulse 1s ease-in-out infinite; }
.status-failed .dot { background: var(--red); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--navy-line); border-top-color: var(--blue); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.gen-track { width: 100%; max-width: 420px; height: 10px; background: var(--navy-3); border-radius: 999px; overflow: hidden; }
.gen-bar { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--blue-bright)); transition: width 0.6s var(--ease); position: relative; }
.gen-bar::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent); animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.gen-stat { font-family: var(--mono); font-size: 12px; color: var(--text-soft); }
.gen-stat b { color: var(--white); }

/* ============================================================
   CONTENT / ASSET CARDS
   ============================================================ */
.asset-card { display: flex; flex-direction: column; gap: 12px; cursor: pointer; }
.asset-card .row { display: flex; align-items: center; gap: 8px; }
.asset-card .glyph {
  width: 30px; height: 30px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: var(--r-xs);
  background: var(--navy-3); color: var(--blue-bright);
  font-size: 14px;
}
.asset-card h3 { font-size: 15px; font-weight: 650; color: var(--white); line-height: 1.3; }
.asset-card .excerpt { font-size: 13px; color: var(--text-soft); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.asset-card .foot { display: flex; align-items: center; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.asset-card .foot time { font-family: var(--mono); font-size: 10px; color: var(--subtle); margin-left: auto; }

/* ---------- tweet / social preview ---------- */
.tweet-preview {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--navy-line);
  background: var(--navy);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tweet-preview:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tweet-preview img { width: 100%; height: auto; }

/* ============================================================
   TABLE / LIST
   ============================================================ */
.list { display: flex; flex-direction: column; }
.list-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px;
  border: 1px solid var(--navy-line);
  border-bottom: none;
  background: rgba(15,32,64,0.28);
  transition: background var(--dur-fast) var(--ease);
}
.list-row:first-child { border-radius: var(--r) var(--r) 0 0; }
.list-row:last-child { border-bottom: 1px solid var(--navy-line); border-radius: 0 0 var(--r) var(--r); }
.list-row:hover { background: var(--navy-2); }
.list-row .glyph {
  width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: var(--r-xs); background: var(--navy-3); color: var(--blue-bright); font-size: 13px;
}
.list-row .title { font-weight: 600; color: var(--white); font-size: 14px; }
.list-row .meta { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 2px; }
.list-row .push { margin-left: auto; }

/* ============================================================
   FILTER BAR / CHIPS
   ============================================================ */
.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip {
  font-size: 13px; font-weight: 500;
  padding: 7px 14px; border-radius: var(--pill);
  border: 1px solid var(--navy-line); background: var(--navy-2); color: var(--text-soft);
  transition: all var(--dur-fast) var(--ease);
}
.chip:hover { color: var(--white); border-color: var(--blue-ring); }
.chip.active { background: var(--blue); color: var(--white); border-color: var(--blue); box-shadow: var(--glow-blue); }

/* ============================================================
   BRAND KIT
   ============================================================ */
.swatch { border-radius: var(--r); overflow: hidden; border: 1px solid var(--navy-line); }
.swatch .fill { height: 84px; }
.swatch .info { padding: 10px 12px; background: var(--navy-2); }
.swatch .info .name { font-size: 13px; font-weight: 600; color: var(--white); }
.swatch .info .hex { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; }

.type-spec { padding: 18px 20px; border: 1px solid var(--navy-line); border-radius: var(--r); background: rgba(15,32,64,0.35); }
.type-spec .label { font-family: var(--mono); font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }

/* ============================================================
   PROSE (asset detail body)
   ============================================================ */
.prose { font-size: 15px; line-height: 1.75; color: var(--text-soft); }
.prose h1, .prose h2, .prose h3 { font-family: var(--display); color: var(--white); letter-spacing: -0.4px; margin: 26px 0 10px; }
.prose h2 { font-size: 20px; }
.prose h3 { font-size: 16px; }
.prose p { margin: 12px 0; }
.prose ul, .prose ol { margin: 12px 0 12px 22px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); }
.prose em { font-family: var(--serif); font-style: italic; color: var(--blue-bright); font-size: 1.05em; }
.prose hr { border: none; border-top: 1px solid var(--navy-line); margin: 24px 0; }
.prose code { font-family: var(--mono); font-size: 0.88em; background: var(--navy-3); padding: 2px 6px; border-radius: 5px; color: var(--blue-bright); }
.prose blockquote { border-left: 2px solid var(--blue); padding-left: 16px; color: var(--text); font-family: var(--serif); font-size: 1.15em; font-style: italic; margin: 18px 0; }

/* copyable code block */
.codeblock {
  position: relative;
  background: var(--navy-deep); border: 1px solid var(--navy-line); border-radius: var(--r);
  padding: 18px 20px; font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--text-soft);
  white-space: pre-wrap; word-break: break-word;
}
.copy-btn {
  position: absolute; top: 10px; right: 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--r-xs);
  background: var(--navy-2); border: 1px solid var(--navy-line); color: var(--muted); cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.copy-btn:hover { color: var(--white); border-color: var(--blue-ring); }
.copy-btn.done { color: var(--green); border-color: rgba(16,185,129,0.4); }

/* ============================================================
   CALENDAR
   ============================================================ */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal .dow { font-family: var(--mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--subtle); text-align: center; padding-bottom: 4px; }
.cal .day {
  min-height: 96px; border: 1px solid var(--navy-line); border-radius: var(--r-sm);
  background: rgba(15,32,64,0.28); padding: 8px; display: flex; flex-direction: column; gap: 5px;
}
.cal .day .n { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.cal .day.empty { background: transparent; border-color: transparent; }
.cal .pin {
  font-size: 10.5px; line-height: 1.3; padding: 4px 6px; border-radius: 5px;
  background: var(--blue-soft); color: var(--blue-bright); border-left: 2px solid var(--blue);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cal .pin.violet { background: rgba(139,92,246,0.14); color: #c4b5fd; border-color: var(--violet); }
.cal .pin.amber { background: rgba(245,158,11,0.14); color: #fcd34d; border-color: var(--amber); }
.cal .pin.green { background: rgba(16,185,129,0.14); color: #6ee7b7; border-color: var(--green); }

/* ============================================================
   HERO (dashboard)
   ============================================================ */
.hero {
  border: 1px solid var(--blue-ring);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 40px);
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(47,129,255,0.18), transparent 60%),
    linear-gradient(180deg, rgba(15,32,64,0.7), rgba(10,22,40,0.4));
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4vw, 46px); letter-spacing: -1.5px; color: var(--white); line-height: 1.02; }
.hero h1 .serif { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--blue-bright); }
.hero p { color: var(--text-soft); margin-top: 14px; max-width: 56ch; font-size: 16px; }
.hero .actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* ============================================================
   MISC
   ============================================================ */
.divider { height: 1px; background: var(--navy-line); margin: 28px 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .big { font-size: 40px; opacity: 0.5; margin-bottom: 12px; }
.kbd { font-family: var(--mono); font-size: 11px; padding: 2px 7px; border-radius: 5px; background: var(--navy-3); border: 1px solid var(--navy-line); color: var(--text-soft); }

.section-head { display: flex; align-items: center; gap: 12px; margin: 34px 0 16px; }
.section-head h2 { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--white); letter-spacing: -0.4px; }
.section-head .push { margin-left: auto; }
.section-head .line { flex: 1; height: 1px; background: var(--navy-line); }

/* fade-in */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rise { animation: rise var(--dur) var(--ease) both; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .sidebar { display: none; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .cal { grid-template-columns: repeat(2, 1fr); }
  .cal .dow { display: none; }
}
