﻿:root {
    --sj-brand: #0f766e;
    --sj-brand-dark: #0b5d57;
    --sj-brand-soft: #e6f4f2;
    --sj-ink: #0f172a;
    --sj-muted: #64748b;
    --sj-line: #e2e8f0;
    --sj-bg: #f6f8fb;
    --sj-radius: 14px;
    --bs-link-color-rgb: 15, 118, 110;
    --bs-link-hover-color-rgb: 11, 93, 87;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--sj-bg);
    color: var(--sj-ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

code, .sj-panel {
    overflow-wrap: anywhere;
}

.min-w-0 {
    min-width: 0;
}

/* Buttons and forms */
.btn {
    border-radius: 10px;
    font-weight: 600;
}

.btn-primary {
    --bs-btn-bg: var(--sj-brand);
    --bs-btn-border-color: var(--sj-brand);
    --bs-btn-hover-bg: var(--sj-brand-dark);
    --bs-btn-hover-border-color: var(--sj-brand-dark);
    --bs-btn-active-bg: var(--sj-brand-dark);
    --bs-btn-active-border-color: var(--sj-brand-dark);
    --bs-btn-disabled-bg: var(--sj-brand);
    --bs-btn-disabled-border-color: var(--sj-brand);
}

.btn-outline-primary {
    --bs-btn-color: var(--sj-brand);
    --bs-btn-border-color: var(--sj-brand);
    --bs-btn-hover-bg: var(--sj-brand);
    --bs-btn-hover-border-color: var(--sj-brand);
    --bs-btn-active-bg: var(--sj-brand);
    --bs-btn-active-border-color: var(--sj-brand);
}

.nav-pills .nav-link.active {
    background: var(--sj-brand);
}

.form-control, .form-select {
    border-radius: 10px;
    border-color: var(--sj-line);
}

    .form-control:focus, .form-select:focus {
        border-color: var(--sj-brand);
        box-shadow: 0 0 0 .2rem rgba(15, 118, 110, .15);
    }

/* Header */
.sj-header {
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--sj-line);
    z-index: 1030;
}

.sj-brand {
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: -.02em;
    color: var(--sj-ink);
    text-decoration: none;
}

    .sj-brand span {
        color: var(--sj-brand);
    }

.sj-header .nav-link {
    font-weight: 500;
    color: var(--sj-ink);
    padding: .6rem .9rem;
}

    .sj-header .nav-link:hover {
        color: var(--sj-brand);
    }

@media (max-width: 767.98px) {
    .sj-header .navbar-nav {
        padding: .5rem 0 1rem;
    }
}

/* Hero */
.sj-hero {
    background: radial-gradient(1200px 400px at 85% -10%, rgba(255, 255, 255, .14), transparent 60%), linear-gradient(135deg, #0f766e 0%, #115e59 55%, #134e4a 100%);
    color: #fff;
    border-radius: 20px;
    padding: 2.25rem 1.25rem;
}

    .sj-hero h1 {
        font-size: clamp(1.9rem, 5vw, 3rem);
        line-height: 1.15;
        letter-spacing: -.02em;
    }

.sj-search {
    background: #fff;
    border-radius: 16px;
    padding: .6rem;
    box-shadow: 0 10px 30px rgba(2, 6, 23, .18);
}

.sj-chip-link {
    display: inline-block;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    padding: .25rem .75rem;
    border-radius: 999px;
    text-decoration: none;
    margin: .2rem .15rem 0 0;
    font-size: .85rem;
}

    .sj-chip-link:hover {
        background: rgba(255, 255, 255, .26);
        color: #fff;
    }

@media (min-width: 768px) {
    .sj-hero {
        padding: 4rem 3rem;
    }
}

/* Cards and panels */
.sj-card {
    background: #fff;
    border: 1px solid var(--sj-line);
    border-radius: var(--sj-radius);
}

.sj-panel {
    background: #fff;
    border: 1px solid var(--sj-line);
    border-radius: var(--sj-radius);
    padding: 1.25rem;
}

@media (min-width: 768px) {
    .sj-panel {
        padding: 2rem;
    }
}

.sj-choice {
    display: block;
    height: 100%;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s, transform .15s;
}

    .sj-choice:hover {
        box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
        transform: translateY(-2px);
        color: inherit;
    }

    .sj-choice h2 {
        color: var(--sj-brand);
        font-size: 1.25rem;
        font-weight: 800;
    }

    .sj-choice.employer h2 {
        color: #1d4ed8;
    }

.sj-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--sj-brand);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Job cards */
.sj-job {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    padding: 1rem;
    margin-bottom: .75rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s, transform .15s, border-color .15s;
}

    .sj-job:hover {
        box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
        transform: translateY(-1px);
        border-color: #cbd5e1;
        color: inherit;
    }

    .sj-job.is-featured {
        border-color: #f59e0b;
        background: #fffbeb;
    }

.sj-avatar {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--sj-brand-soft);
    color: var(--sj-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

.sj-job-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .5rem;
    flex-wrap: wrap;
}

.sj-job-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--sj-ink);
}

.sj-company {
    color: var(--sj-muted);
    font-size: .9rem;
}

.sj-posted {
    font-size: .78rem;
    color: var(--sj-muted);
    white-space: nowrap;
}

.sj-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .55rem;
}

.sj-chip {
    background: #f1f5f9;
    color: #334155;
    border-radius: 999px;
    padding: .15rem .65rem;
    font-size: .78rem;
}

    .sj-chip.salary {
        background: var(--sj-brand-soft);
        color: var(--sj-brand-dark);
        font-weight: 600;
    }

    .sj-chip.new {
        background: #dcfce7;
        color: #166534;
        font-weight: 600;
    }

    .sj-chip.featured {
        background: #fde68a;
        color: #92400e;
        font-weight: 600;
    }

@media (max-width: 575.98px) {
    .sj-job {
        padding: .85rem;
        gap: .7rem;
    }

    .sj-avatar {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Sticky apply bar (mobile job page) */
.sj-apply-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-top: 1px solid var(--sj-line);
    padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom, 0px));
    z-index: 1030;
    box-shadow: 0 -6px 20px rgba(15, 23, 42, .08);
}

/* Footer */
.sj-footer {
    background: #0f172a;
    color: #94a3b8;
    margin-top: 3rem;
    padding: 2.5rem 0 1.5rem;
    font-size: .92rem;
}

    .sj-footer h6 {
        color: #fff;
        font-size: .85rem;
        text-transform: uppercase;
        letter-spacing: .05em;
    }

    .sj-footer a {
        color: #cbd5e1;
        text-decoration: none;
        display: block;
        padding: .2rem 0;
    }

        .sj-footer a:hover {
            color: #fff;
        }

    .sj-footer .sj-brand {
        color: #fff;
        display: inline-block;
    }

        .sj-footer .sj-brand span {
            color: #5eead4;
        }

.sj-footer-bottom {
    border-top: 1px solid #1e293b;
    margin-top: 1.5rem;
    padding-top: 1rem;
    font-size: .82rem;
}
