/* SchedTool v1.2.0 — one stylesheet, two moods:
   marketing pages are DARK (body.st-mk), the app interior is LIGHT.
   Accent: petrol teal. */

:root {
  --st-accent:       #0e7490;
  --st-accent-dark:  #0a5a70;
  --st-ink:          #17252b;
  --st-paper:        #f6f8f9;
  --st-card:         #ffffff;
  --st-line:         #dde5e8;
  --st-muted:        #5c6f77;
}

body {
  background: var(--st-paper);
  color: var(--st-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---- App chrome ---------------------------------------------------- */

.st-nav {
  background: #fff;
  border-bottom: 2px solid var(--st-accent);
}
.st-nav .navbar-brand {
  font-weight: 700;
  color: var(--st-accent);
  letter-spacing: -.02em;
}
.st-nav .nav-link { color: var(--st-ink); }
.st-nav .nav-link.active {
  color: var(--st-accent);
  font-weight: 600;
}

.st-card {
  background: var(--st-card);
  border: 1px solid var(--st-line);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
}

.btn-primary {
  --bs-btn-bg: var(--st-accent);
  --bs-btn-border-color: var(--st-accent);
  --bs-btn-hover-bg: var(--st-accent-dark);
  --bs-btn-hover-border-color: var(--st-accent-dark);
  --bs-btn-active-bg: var(--st-accent-dark);
  --bs-btn-active-border-color: var(--st-accent-dark);
}
.btn-outline-primary {
  --bs-btn-color: var(--st-accent);
  --bs-btn-border-color: var(--st-accent);
  --bs-btn-hover-bg: var(--st-accent);
  --bs-btn-hover-border-color: var(--st-accent);
  --bs-btn-active-bg: var(--st-accent);
  --bs-btn-active-border-color: var(--st-accent);
}
a { color: var(--st-accent); }

.st-net-badge {
  font-size: .72rem;
  font-weight: 600;
  border-radius: 4px;
  padding: .15rem .4rem;
  border: 1px solid var(--st-line);
  background: #eef4f6;
  color: var(--st-ink);
  white-space: nowrap;
}
.st-net-badge.st-net-x         { background:#111; color:#fff; border-color:#111; }
.st-net-badge.st-net-linkedin  { background:#0a66c2; color:#fff; border-color:#0a66c2; }
.st-net-badge.st-net-facebook  { background:#1877f2; color:#fff; border-color:#1877f2; }
.st-net-badge.st-net-instagram { background:#c13584; color:#fff; border-color:#c13584; }

.st-charcount { font-variant-numeric: tabular-nums; }
.st-charcount.over { color: #b02a37; font-weight: 700; }

.st-thumb {
  width: 48px; height: 48px; object-fit: cover;
  border-radius: 6px; border: 1px solid var(--st-line);
}

/* ---- Planner --------------------------------------------------------- */

.st-tabs .nav-link {
  color: var(--st-muted);
  padding: .25rem .7rem;
  border-radius: 6px;
  font-size: .9rem;
}
.st-tabs .nav-link.active {
  background: var(--st-accent);
  color: #fff;
  font-weight: 600;
}

.st-board {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: .5rem;
}
.st-col {
  flex: 1 0 230px;
  min-width: 230px;
  background: #eef3f5;
  border: 1px solid var(--st-line);
  border-radius: 10px;
  padding: .6rem;
  min-height: 140px;
}
.st-col-over { outline: 2px dashed var(--st-accent); outline-offset: -4px; }
.st-col-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: .6rem;
  padding: 0 .15rem;
}
.st-kcard {
  background: var(--st-card);
  border: 1px solid var(--st-line);
  border-radius: 8px;
  padding: .55rem .6rem;
  margin-bottom: .55rem;
  cursor: grab;
}
.st-kcard:active { cursor: grabbing; }

.st-stage {
  font-size: .74rem;
  font-weight: 700;
  border-radius: 20px;
  padding: .18rem .6rem;
  white-space: nowrap;
}
.st-stage-backlog { background: #e2e8ea; color: #46595f; }
.st-stage-draft   { background: #fdf0d5; color: #8a5a00; }
.st-stage-ready   { background: #d7edf3; color: #0a5a70; }
.st-stage-done    { background: #d9f0e1; color: #1a6b3c; }

.st-cat {
  font-size: .72rem;
  border-radius: 4px;
  padding: .15rem .4rem;
  background: #eef4f6;
  border: 1px solid var(--st-line);
  color: var(--st-muted);
  white-space: nowrap;
}

.st-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.st-cal-dow {
  font-size: .75rem;
  font-weight: 700;
  color: var(--st-muted);
  text-align: center;
  padding: .2rem 0;
}
.st-cal-day {
  background: #fbfcfd;
  border: 1px solid var(--st-line);
  border-radius: 6px;
  min-height: 84px;
  padding: .25rem;
  overflow: hidden;
}
.st-cal-blank { background: transparent; border-color: transparent; }
.st-cal-today { border-color: var(--st-accent); box-shadow: inset 0 0 0 1px var(--st-accent); }
.st-cal-num { font-size: .75rem; font-weight: 600; color: var(--st-muted); }
.st-chip {
  display: block;
  font-size: .7rem;
  line-height: 1.25;
  border-radius: 4px;
  padding: .1rem .3rem;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}
.st-chip-backlog { background: #e2e8ea; color: #46595f; }
.st-chip-draft   { background: #fdf0d5; color: #8a5a00; }
.st-chip-ready   { background: #d7edf3; color: #0a5a70; }
.st-chip-done    { background: #d9f0e1; color: #1a6b3c; }
.st-chip-sched   { background: #dceefb; color: #114d7a; }
.st-chip-sent    { background: #d9f0e1; color: #1a6b3c; }

@media (max-width: 575px) {
  .st-cal-day { min-height: 56px; }
  .st-chip { font-size: .62rem; }
}

/* ---- Auth pages ----------------------------------------------------- */

.st-auth-wrap { max-width: 420px; margin: 6vh auto 0; }

/* ---- Marketing (dark) ------------------------------------------------ */

body.st-mk {
  background: #0d1b20;
  color: #e8eef0;
}
body.st-mk .st-mk-nav {
  border-bottom: 1px solid #1e3a44;
}
body.st-mk .st-mk-nav .navbar-brand {
  color: #7dd3e8;
  font-weight: 700;
}
body.st-mk .st-mk-nav .nav-link { color: #cfe0e5; }
.st-hero {
  padding: 7rem 0 4rem;
}
.st-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.st-hero .lead { color: #a9c1c9; max-width: 40rem; }
.st-mk-card {
  background: #12262d;
  border: 1px solid #1e3a44;
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
  height: 100%;
}
.st-mk-card h3 { font-size: 1.05rem; font-weight: 700; color: #7dd3e8; }
.st-mk-card p  { color: #a9c1c9; font-size: .95rem; margin-bottom: 0; }
body.st-mk .st-mk-footer {
  border-top: 1px solid #1e3a44;
  color: #7e969e;
}
body.st-mk .btn-accent {
  background: #0e7490; border-color: #0e7490; color: #fff;
  font-weight: 600; padding: .6rem 1.4rem;
}
body.st-mk .btn-accent:hover { background: #0a5a70; border-color: #0a5a70; color:#fff; }
body.st-mk a { color: #7dd3e8; }
.st-mk-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: #0e7490; color: #fff; font-weight: 700; margin-bottom: .6rem;
}
