/* Dijon Job Aggregator custom design system */
:root {
    --dja-ink: #17211d;
    --dja-muted: #65736d;
    --dja-paper: #fbf7ef;
    --dja-surface: #fffdf8;
    --dja-line: rgba(23, 33, 29, 0.12);
    --dja-primary: #0f6b55;
    --dja-primary-dark: #084737;
    --dja-secondary: #f2b84b;
    --dja-accent: #ff6b35;
    --dja-sky: #67c9d0;
    --dja-shadow: 0 24px 70px rgba(23, 33, 29, 0.14);
    --dja-radius: 28px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--dja-ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(242, 184, 75, 0.22), transparent 26rem),
        radial-gradient(circle at 88% 18%, rgba(103, 201, 208, 0.22), transparent 28rem),
        linear-gradient(180deg, #fffaf1 0%, #f7efe2 52%, #f8f4ec 100%);
    min-height: 100vh;
}

h1, h2, h3, .navbar-brand {
    font-family: "Space Grotesk", "Inter", sans-serif;
    letter-spacing: -0.035em;
}

a { color: var(--dja-primary-dark); }
a:hover { color: var(--dja-accent); }

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 2000;
    background: var(--dja-ink);
    color: #fff;
    padding: .75rem 1rem;
    border-radius: 999px;
    transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

.app-nav {
    background: rgba(255, 250, 241, 0.76);
    border-bottom: 1px solid rgba(23, 33, 29, 0.08);
    backdrop-filter: blur(18px);
}
.brand-lockup { display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; color: var(--dja-ink); }
.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--dja-primary), var(--dja-sky));
    color: #fff;
    font-size: .86rem;
    box-shadow: 0 14px 30px rgba(15, 107, 85, .25);
}
.nav-link { color: rgba(23, 33, 29, .72); font-weight: 650; }
.nav-link:hover { color: var(--dja-primary-dark); }
.message-stack { position: fixed; top: 86px; left: 0; right: 0; z-index: 1020; pointer-events: none; }
.message-stack .alert { pointer-events: auto; max-width: 780px; margin-left: auto; }

.hero-section { padding: 4.5rem 0 3rem; }
.form-hero, .list-hero, .detail-hero { padding: 4.5rem 0 2.5rem; }
.success-wrap { padding: 5rem 0; min-height: 66vh; display: grid; align-items: center; }
.section-pad { padding: 4.5rem 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--dja-primary-dark);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .11em;
    font-size: .76rem;
}
.eyebrow::before {
    content: "";
    width: .65rem;
    height: .65rem;
    border-radius: 999px;
    background: var(--dja-accent);
    box-shadow: 0 0 0 7px rgba(255, 107, 53, .13);
}
.display-title, .form-hero h1, .list-hero h1, .detail-hero h1 {
    font-size: clamp(2.6rem, 7vw, 5.9rem);
    line-height: .92;
    font-weight: 700;
    margin: 0;
}
.form-hero h1, .list-hero h1, .detail-hero h1 { max-width: 980px; }
.hero-copy { max-width: 720px; color: var(--dja-muted); font-size: 1.18rem; }
.lead { color: var(--dja-muted); }

.shape { position: absolute; border-radius: 36px; opacity: .86; filter: blur(.1px); }
.shape-one { width: 180px; height: 180px; right: 11%; top: 6rem; background: linear-gradient(135deg, var(--dja-secondary), var(--dja-accent)); transform: rotate(18deg); }
.shape-two { width: 120px; height: 120px; right: 3%; bottom: 1rem; background: linear-gradient(135deg, var(--dja-sky), var(--dja-primary)); border-radius: 999px; }

.glass-card, .feature-card, .job-card, .content-panel {
    background: rgba(255, 253, 248, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.74);
    box-shadow: var(--dja-shadow);
    backdrop-filter: blur(18px);
}
.command-card { border-radius: 34px; padding: 1.5rem; position: relative; overflow: hidden; }
.command-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -75px;
    bottom: -80px;
    background: rgba(255, 107, 53, .16);
    border-radius: 999px;
}
.card-kicker { text-transform: uppercase; letter-spacing: .12em; color: var(--dja-muted); font-size: .74rem; font-weight: 800; }
.status-pill, .remote-pill, .badge-soft, .source-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    font-weight: 800;
    font-size: .76rem;
}
.status-pill { background: rgba(15, 107, 85, .1); color: var(--dja-primary-dark); padding: .45rem .75rem; }
.badge-soft { background: rgba(242, 184, 75, .26); color: #6b4507; padding: .38rem .7rem; }
.remote-pill { background: rgba(103, 201, 208, .2); color: #17656b; padding: .38rem .7rem; }
.source-chip { background: rgba(23, 33, 29, .06); color: var(--dja-muted); padding: .45rem .7rem; }

.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.metric-tile { background: rgba(255,255,255,.7); border: 1px solid var(--dja-line); border-radius: 22px; padding: 1rem; }
.metric-tile span { display: block; font-family: "Space Grotesk"; font-size: 2.1rem; line-height: 1; color: var(--dja-primary-dark); }
.metric-tile small { color: var(--dja-muted); font-weight: 700; }
.pipeline-list { display: grid; gap: .75rem; color: var(--dja-muted); font-weight: 700; }
.dot { display: inline-block; width: .65rem; height: .65rem; border-radius: 999px; margin-right: .55rem; }
.dot-green { background: var(--dja-primary); }
.dot-orange { background: var(--dja-accent); }
.dot-blue { background: var(--dja-sky); }

.hero-search {
    display: flex;
    gap: .75rem;
    padding: .5rem;
    border-radius: 999px;
    background: rgba(255,255,255,.8);
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 18px 45px rgba(23,33,29,.11);
    max-width: 760px;
}
.hero-search .form-control { border: 0; border-radius: 999px; background: transparent; padding-left: 1.2rem; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--dja-primary); box-shadow: 0 0 0 .2rem rgba(15, 107, 85, .18); }
.btn-accent { background: var(--dja-accent); border-color: var(--dja-accent); color: #fff; font-weight: 800; }
.btn-accent:hover { background: #e65722; border-color: #e65722; color: #fff; transform: translateY(-1px); }
.btn-dark { background: var(--dja-ink); border-color: var(--dja-ink); }
.btn-glass { background: rgba(255,255,255,.58); border: 1px solid rgba(23,33,29,.15); color: var(--dja-ink); font-weight: 800; }
.btn { transition: transform .18s ease, box-shadow .18s ease; }
.btn:hover { box-shadow: 0 14px 25px rgba(23,33,29,.12); }

.feature-card, .job-card, .content-panel { border-radius: var(--dja-radius); padding: 1.35rem; position: relative; }
.feature-card { min-height: 250px; }
.feature-card p, .job-excerpt { color: var(--dja-muted); }
.feature-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 18px; background: var(--dja-ink); color: #fff; font-family: "Space Grotesk"; margin-bottom: 1.5rem; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3.3rem); margin: .2rem 0 0; }
.job-card { display: flex; flex-direction: column; min-height: 310px; }
.job-card h3 a { text-decoration: none; color: var(--dja-ink); }
.job-card h3 a:hover { color: var(--dja-primary-dark); }
.company { font-weight: 800; }

.empty-state { text-align: center; border: 1px dashed rgba(23,33,29,.2); border-radius: 34px; padding: 3rem 1.5rem; background: rgba(255,255,255,.45); }
.empty-orb { width: 86px; height: 86px; border-radius: 30px; background: linear-gradient(135deg, var(--dja-secondary), var(--dja-sky)); margin: 0 auto 1rem; transform: rotate(-10deg); }

.app-form, .filter-bar, .success-card { border-radius: 34px; padding: clamp(1.25rem, 4vw, 2.2rem); }
.app-form .form-control, .app-form .form-select, .filter-bar .form-control, .filter-bar .form-select { border-radius: 16px; min-height: 50px; border-color: var(--dja-line); }
.app-form textarea.form-control { min-height: 150px; }
.form-label { font-weight: 800; color: var(--dja-ink); }
.form-text { color: var(--dja-muted); }
.form-switch .form-check-input { width: 3.2rem; height: 1.65rem; }
.form-check-input:checked { background-color: var(--dja-primary); border-color: var(--dja-primary); }
.success-card { max-width: 820px; text-align: center; }
.success-mark { display: inline-grid; place-items: center; width: 78px; height: 78px; border-radius: 26px; background: var(--dja-primary); color: #fff; font-size: 2rem; font-weight: 900; margin-bottom: 1.2rem; }
.detail-list { display: grid; gap: .75rem; text-align: left; margin: 1.5rem 0 0; }
.detail-list div { padding: .8rem 0; border-top: 1px solid var(--dja-line); }
.detail-list dt { color: var(--dja-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.detail-list dd { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
.detail-list.compact div:first-child { border-top: 0; }
.results-label { color: var(--dja-muted); font-weight: 800; }
.back-link { text-decoration: none; font-weight: 800; color: var(--dja-primary-dark); }
.detail-side { border-radius: 28px; padding: 1.35rem; }
.content-panel h2 { margin-bottom: 1rem; }
.content-panel p { color: var(--dja-muted); line-height: 1.75; }

.app-footer { padding: 2rem 0; border-top: 1px solid var(--dja-line); color: var(--dja-muted); }

@media (max-width: 768px) {
    .hero-search { border-radius: 28px; flex-direction: column; }
    .hero-search .btn, .hero-search .form-control { width: 100%; }
    .metric-grid { grid-template-columns: 1fr; }
    .shape { opacity: .35; }
}
/* Ops dashboard */
.ops-hero { padding: 4.5rem 0 2.25rem; }
.ops-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.ops-tile { min-height: 132px; background: rgba(255,255,255,.66); border: 1px solid var(--dja-line); }
.ops-panel { padding: 1.35rem; }
.ops-table { --bs-table-bg: transparent; margin-bottom: 0; }
.ops-table th { color: var(--dja-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.status-chip { display: inline-flex; border-radius: 999px; padding: .35rem .65rem; font-weight: 800; font-size: .78rem; background: rgba(103,201,208,.18); color: var(--dja-primary-dark); }
.status-error { background: rgba(255,107,53,.16); color: #9b3417; }
.status-paused, .status-planned { background: rgba(242,184,75,.22); color: #7a5310; }
.status-active { background: rgba(15,107,85,.14); color: var(--dja-primary-dark); }
.breakdown-row { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--dja-line); }
.breakdown-row:last-child { border-bottom: 0; }
.queue-card { height: 100%; padding: 1rem; border: 1px solid var(--dja-line); border-radius: 20px; background: rgba(255,253,248,.72); }
@media (max-width: 991px) { .ops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .ops-grid { grid-template-columns: 1fr; } }
