/* ── Base ─────────────────────────────────────────────────── */
:root {
    --bg-main:    #1c1c1e;
    --bg-card:    #2a2a2e;
    --bg-input:   #1c1c1e;
    --border:     #3a3a3e;
    --orange:     #f97316;
    --orange-dim: #7c3a0a;
    --text-main:  #f4f4f5;
    --text-sub:   #a1a1aa;
    --text-dim:   #71717a;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
}

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
    background: #141414;
    border-bottom: 1px solid var(--border);
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-main) !important;
    letter-spacing: -0.5px;
}
.brand-radar {
    color: var(--orange);
    font-size: 0.7rem;
    vertical-align: middle;
    margin-right: 2px;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}
.nav-link {
    color: var(--text-sub) !important;
    font-size: 0.9rem;
}
.nav-link:hover { color: var(--text-main) !important; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero-section {
    padding: 4rem 0 2rem;
    border-bottom: 1px solid var(--border);
}
.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}
.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-main);
    margin-bottom: 1rem;
}
.hero-sub {
    font-size: 1.05rem;
    color: var(--text-sub);
    max-width: 560px;
    line-height: 1.7;
}

/* ── Orange accent ────────────────────────────────────────── */
.text-orange { color: var(--orange); }

.btn-orange {
    background: var(--orange);
    color: #fff;
    border: none;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s, transform 0.15s;
}
.btn-orange:hover {
    background: #ea6c0a;
    color: #fff;
    transform: translateY(-1px);
}
.btn-orange:active { transform: translateY(0); }

/* ── Stat cards ───────────────────────────────────────────── */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--orange);
    line-height: 1;
}
.stat-label {
    color: var(--text-sub);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* ── Step cards ───────────────────────────────────────────── */
.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
}
.step-number {
    width: 36px;
    height: 36px;
    background: var(--orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ── Search header ────────────────────────────────────────── */
.search-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}
.form-control {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 8px;
}
.form-control:focus {
    background: var(--bg-input);
    border-color: var(--orange);
    color: var(--text-main);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.2);
}
.form-control::placeholder { color: var(--text-dim); }
.form-label { color: var(--text-sub); }

/* ── Job cards ────────────────────────────────────────────── */
.job-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, transform 0.2s;
}
.job-card:hover {
    border-color: var(--orange);
    transform: translateY(-2px);
}
.company-name {
    font-weight: 600;
    color: var(--orange);
    font-size: 0.88rem;
}
.job-title {
    font-size: 0.98rem;
    font-weight: 600;
    margin: 0.4rem 0;
    color: var(--text-main);
    line-height: 1.4;
}
.job-location, .job-salary {
    font-size: 0.82rem;
    color: var(--text-sub);
    margin-bottom: 0.2rem;
}

/* ── Source badges ────────────────────────────────────────── */
.source-badge {
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}
.badge-linkedin     { background:#0a2a4a; color:#38bdf8; }
.badge-indeed       { background:#00237a; color:#93c5fd; }
.badge-glassdoor    { background:#063a1a; color:#4ade80; }
.badge-ziprecruiter { background:#2e0065; color:#c4b5fd; }
.badge-dice         { background:#3a0a0a; color:#fca5a5; }
.badge-monster      { background:#3a1a00; color:#fdba74; }
.badge-builtin      { background:#1a3a00; color:#86efac; }
.badge-wellfound    { background:#1a1a3a; color:#c4b5fd; }
.badge-default      { background:#2a2a00; color:#fde68a; }

/* ── Keywords ─────────────────────────────────────────────── */
.keywords-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.keyword-chip {
    background: #2a1a08;
    color: #fb923c;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid #3a2a10;
}

/* ── Time badges ──────────────────────────────────────────── */
.time-badge {
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
    display: inline-block;
}
.time-badge-fresh  { background:#14532d; color:#4ade80; }
.time-badge-recent { background:#451a03; color:#fbbf24; }
.time-badge-old    { background:#27272a; color:#a1a1aa; }

/* ── Empty state ──────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-sub);
}
.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* ── Message and detail pages ─────────────────────────────── */
.job-header-card,
.score-section,
.message-card,
.research-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.message-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-main);
    white-space: pre-wrap;
}
.score-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
}
.score-high { background:#14532d; color:#4ade80; }
.score-mid  { background:#451a03; color:#fbbf24; }
.score-low  { background:#450a0a; color:#f87171; }
.score-denom { font-size:0.7rem; font-weight:400; }

/* ── Applied button state ─────────────────────────────────── */
.btn-applied {
    background: #14532d !important;
    color: #4ade80 !important;
    border: none !important;
}

/* ── Kanban board ─────────────────────────────────────────── */
.kanban-board {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 1rem;
    align-items: flex-start;
}
.kanban-col {
    min-width: 220px;
    max-width: 220px;
    flex-shrink: 0;
}
.kanban-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 3px solid var(--orange);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
}
.kanban-count {
    background: var(--border);
    color: var(--text-sub);
    border-radius: 20px;
    padding: 1px 8px;
    font-size: 0.75rem;
}
.kanban-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}
.kanban-card:hover {
    border-color: var(--orange);
}
.kanban-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
    line-height: 1.3;
}
.kanban-notes {
    font-size: 0.78rem;
    color: var(--text-sub);
    background: #27272a;
    border-radius: 6px;
    padding: 6px 8px;
    margin-bottom: 8px;
    line-height: 1.4;
}
.interview-date {
    font-size: 0.78rem;
    color: #fbbf24;
    margin-bottom: 6px;
}
.kanban-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}
.btn-xs {
    font-size: 0.68rem;
    padding: 2px 7px;
    border-radius: 6px;
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .stat-number { font-size: 2rem; }
    .kanban-col {
        min-width: 180px;
        max-width: 180px;
    }
}