/* Smart Contract Auditor Jobs */

@keyframes jobsStatPop {
    0% { transform: translateY(4px) scale(0.92); opacity: 0.35; }
    70% { transform: translateY(-1px) scale(1.04); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes jobsCardIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes jobsRadarPulse {
    0% { transform: scale(0.35); opacity: 0.9; }
    100% { transform: scale(1.25); opacity: 0; }
}

@keyframes jobsRadarSweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .jobs-hero-panel strong.jobs-count-animating,
    .jobs-card,
    .jobs-empty-radar::before,
    .jobs-empty-radar::after,
    .jobs-empty-radar span {
        animation: none !important;
    }

    .jobs-card,
    .jobs-card::after,
    .jobs-apply,
    .jobs-apply::after,
    .jobs-filters {
        transition: none !important;
    }
}

.jobs-shell {
    min-height: 100vh;
    padding: 5.8rem max(1.25rem, calc((100vw - 1180px) / 2)) 5rem;
    color: var(--text-primary);
    background:
        radial-gradient(circle at 15% 0%, rgba(69, 244, 255, 0.13), transparent 28rem),
        radial-gradient(circle at 85% 6%, rgba(168, 85, 247, 0.14), transparent 28rem),
        linear-gradient(180deg, rgba(7, 9, 18, 0.98), rgba(10, 11, 22, 1) 48%, rgba(8, 10, 19, 1));
}

.jobs-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    gap: 2rem;
    align-items: end;
    margin-bottom: 1.5rem;
}

.jobs-kicker {
    margin: 0 0 0.65rem;
    color: var(--accent-secondary-strong);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.jobs-hero h1 {
    margin: 0;
    max-width: 760px;
    font-family: var(--font-display, var(--font-primary));
    font-size: clamp(2.45rem, 6vw, 4.8rem);
    line-height: 0.94;
    letter-spacing: -0.06em;
}

.jobs-lede {
    max-width: 720px;
    margin: 1rem 0 0;
    color: var(--text-secondary);
    font-size: clamp(0.98rem, 1.4vw, 1.08rem);
    line-height: 1.65;
}

.jobs-proof-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.95rem;
}

.jobs-proof-row span,
.jobs-quick-filters a,
.jobs-active-filters span,
.jobs-signals span,
.jobs-empty-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 1px solid rgba(69, 244, 255, 0.15);
    border-radius: 999px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.045);
    text-decoration: none;
}

.jobs-proof-row span {
    padding: 0 0.68rem;
    font-size: 0.74rem;
}

.jobs-hero-panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.jobs-hero-panel div {
    min-width: 0;
    padding: 1rem 0.65rem;
    background: rgba(14, 16, 29, 0.86);
    text-align: center;
}

.jobs-hero-panel strong {
    display: block;
    color: var(--accent-secondary);
    font-family: var(--font-mono);
    font-size: clamp(1.18rem, 2.2vw, 1.55rem);
    line-height: 1;
    white-space: nowrap;
}

.jobs-hero-panel strong.jobs-count-animating {
    animation: jobsStatPop 0.55s ease both;
}

.jobs-hero-panel span {
    display: block;
    margin-top: 0.4rem;
    color: var(--text-muted);
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jobs-workbench {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 26px;
    background: rgba(9, 11, 22, 0.76);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 30px 90px rgba(0, 0, 0, 0.22);
}

.jobs-filters {
    display: grid;
    gap: 0.7rem;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.038);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.jobs-filters:focus-within {
    border-color: rgba(69, 244, 255, 0.22);
    background: rgba(69, 244, 255, 0.045);
    box-shadow: 0 0 0 1px rgba(69, 244, 255, 0.06), 0 0 38px rgba(69, 244, 255, 0.08);
}

.jobs-search-row {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto auto;
    gap: 0.65rem;
    align-items: end;
}

.jobs-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(130px, 1fr));
    gap: 0.65rem;
}

.jobs-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.32rem;
}

.jobs-field > span {
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    line-height: 1.1;
    text-transform: uppercase;
}

.jobs-field input,
.jobs-field select {
    width: 100%;
    min-height: 42px;
    padding: 0 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    background: rgba(3, 5, 12, 0.74);
    color: var(--text-primary);
    font: inherit;
}

.jobs-field input:focus,
.jobs-field select:focus,
.jobs-filter-submit:focus-visible,
.jobs-reset:focus-visible,
.jobs-apply:focus-visible,
.jobs-pagination a:focus-visible,
.jobs-card h2 a:focus-visible,
.jobs-quick-filters a:focus-visible,
.jobs-empty-actions a:focus-visible {
    border-color: rgba(69, 244, 255, 0.6);
    outline: none;
    box-shadow: 0 0 0 3px rgba(69, 244, 255, 0.14);
}

.jobs-filter-submit,
.jobs-reset,
.jobs-apply,
.jobs-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 1rem;
    border: 0;
    border-radius: 13px;
    color: #061018;
    background: linear-gradient(135deg, var(--accent-secondary), #ffffff);
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.jobs-reset {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.07);
}

.jobs-quick-filters {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.05rem;
    scrollbar-width: none;
}

.jobs-quick-filters::-webkit-scrollbar { display: none; }

.jobs-quick-filters a {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 0.72rem;
    color: var(--accent-secondary-strong);
    font-size: 0.76rem;
    font-weight: 780;
}

.jobs-quick-filters a::before,
.jobs-signals span::before,
.jobs-empty-actions a::before {
    content: "";
    display: inline-block;
    width: 0.62rem;
    height: 0.62rem;
    margin-right: 0.38rem;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    opacity: 0.9;
}

.jobs-quick-filter--remote::before,
.jobs-signal--remote::before {
    box-shadow: inset 0 0 0 2px rgba(69, 244, 255, 0.08);
}

.jobs-quick-filter--salary::before,
.jobs-signal--salary::before {
    border-radius: 3px;
    transform: rotate(45deg);
}

.jobs-quick-filter--solidity::before,
.jobs-quick-filter--rust::before,
.jobs-quick-filter--audit::before,
.jobs-quick-filter--formal::before,
.jobs-signal--fit::before {
    border-radius: 2px;
    background: currentColor;
    box-shadow: 0 0 10px rgba(69, 244, 255, 0.25);
}

.jobs-signal--source::before,
.jobs-empty-actions a::before {
    border-radius: 3px;
}

.jobs-signal--fresh::before {
    background: currentColor;
    border-color: currentColor;
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.55);
}

.jobs-signal--archive::before {
    border-radius: 0;
    transform: rotate(45deg);
}

.jobs-quick-filter-active {
    border-color: rgba(69, 244, 255, 0.48) !important;
    color: #071018 !important;
    background: linear-gradient(135deg, var(--accent-secondary), #ffffff) !important;
    box-shadow: 0 0 20px rgba(69, 244, 255, 0.16);
}

.jobs-quick-filters a:hover,
.jobs-empty-actions a:hover {
    border-color: rgba(69, 244, 255, 0.38);
    background: rgba(69, 244, 255, 0.1);
}

.jobs-results-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.95rem 0.35rem 0.8rem;
    color: var(--text-muted);
}

.jobs-results-head p {
    margin: 0;
    font-size: 1rem;
}

.jobs-results-head strong { color: var(--text-primary); }

.jobs-updated {
    flex: 0 0 auto;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.jobs-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.jobs-active-filters span {
    min-height: 25px;
    padding: 0 0.55rem;
    color: var(--text-muted);
    font-size: 0.7rem;
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 0.72rem;
}

.jobs-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.024));
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
    overflow: hidden;
    animation: jobsCardIn 0.45s ease both;
}

.jobs-card:nth-child(2) { animation-delay: 0.04s; }
.jobs-card:nth-child(3) { animation-delay: 0.08s; }
.jobs-card:nth-child(4) { animation-delay: 0.12s; }
.jobs-card:nth-child(5) { animation-delay: 0.16s; }

.jobs-card::after {
    content: "";
    position: absolute;
    inset: -40% auto -40% -25%;
    width: 28%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.11), transparent);
    transform: skewX(-18deg) translateX(-140%);
    transition: transform 0.55s ease;
    pointer-events: none;
}

.jobs-card:hover {
    border-color: rgba(69, 244, 255, 0.26);
    background: linear-gradient(180deg, rgba(69, 244, 255, 0.07), rgba(255, 255, 255, 0.028));
    transform: translateY(-2px);
}

.jobs-card:hover::after {
    transform: skewX(-18deg) translateX(560%);
}

.jobs-card-main { min-width: 0; }

.jobs-card-topline,
.jobs-meta,
.jobs-tags,
.jobs-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
}

.jobs-card-topline span {
    color: var(--accent-secondary-strong);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.jobs-card h2 {
    margin: 0.34rem 0 0.4rem;
    font-size: clamp(1.08rem, 1.7vw, 1.36rem);
    line-height: 1.18;
}

.jobs-card h2 a {
    color: var(--text-primary);
    text-decoration: none;
}

.jobs-card h2 a:hover { color: var(--accent-secondary); }

.jobs-signals {
    margin-bottom: 0.42rem;
}

.jobs-signals span {
    min-height: 23px;
    padding: 0 0.5rem;
    color: var(--accent-secondary-strong);
    font-size: 0.66rem;
    font-weight: 750;
}

.jobs-signal--fresh {
    border-color: rgba(74, 222, 128, 0.28) !important;
    color: #a7f3d0 !important;
    background: rgba(74, 222, 128, 0.07) !important;
}

.jobs-signal--archive {
    border-color: rgba(251, 191, 36, 0.22) !important;
    color: #fde68a !important;
    background: rgba(251, 191, 36, 0.06) !important;
}

.jobs-meta {
    color: var(--text-secondary);
    font-size: 0.84rem;
}

.jobs-meta span:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-left: 0.38rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    vertical-align: middle;
}

.jobs-tags {
    max-height: 31px;
    margin-top: 0.58rem;
    overflow: hidden;
}

.jobs-tags span {
    padding: 0.26rem 0.48rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.045);
    font-size: 0.72rem;
    line-height: 1.15;
}

.jobs-apply {
    flex: 0 0 auto;
    min-width: 112px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.jobs-apply::after {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    margin-left: 0.45rem;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg) translateX(-2px);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.jobs-card:hover .jobs-apply {
    box-shadow: 0 0 24px rgba(69, 244, 255, 0.18);
}

.jobs-card:hover .jobs-apply::after,
.jobs-apply:focus-visible::after {
    opacity: 1;
    transform: rotate(45deg) translateX(1px);
}

.jobs-empty,
.jobs-explainer {
    padding: 1.55rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
}

.jobs-empty h2,
.jobs-explainer h2 { margin: 0 0 0.65rem; }
.jobs-empty p { margin: 0; color: var(--text-secondary); }

.jobs-empty-radar {
    position: relative;
    width: 54px;
    height: 54px;
    margin-bottom: 1rem;
    border: 1px solid rgba(69, 244, 255, 0.24);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(69, 244, 255, 0.18) 0 10%, transparent 11% 100%);
    overflow: hidden;
}

.jobs-empty-radar::before,
.jobs-empty-radar::after {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(69, 244, 255, 0.22);
    border-radius: 50%;
    animation: jobsRadarPulse 1.8s ease-out infinite;
}

.jobs-empty-radar::after {
    animation-delay: 0.75s;
}

.jobs-empty-radar span {
    position: absolute;
    inset: 0;
    background: conic-gradient(from 0deg, rgba(69, 244, 255, 0.48), transparent 24%);
    animation: jobsRadarSweep 2.8s linear infinite;
}

.jobs-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.jobs-empty-actions a {
    min-height: 34px;
    padding: 0 0.75rem;
    color: var(--accent-secondary-strong);
    font-weight: 800;
}

.jobs-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.15rem 0 0.25rem;
    color: var(--text-secondary);
}

.jobs-pagination span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.jobs-explainer {
    margin-top: 1.5rem;
}

.jobs-explainer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
    color: var(--text-secondary);
    line-height: 1.72;
}

.jobs-explainer-grid p { margin: 0; }

@media (max-width: 1080px) {
    .jobs-shell { padding-top: 5.4rem; }
    .jobs-hero {
        grid-template-columns: 1fr;
        gap: 1rem;
        align-items: start;
    }
    .jobs-hero-panel { max-width: 100%; }
    .jobs-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 681px) {
    .jobs-filters {
        grid-template-columns: minmax(260px, 1.5fr) repeat(4, minmax(112px, 1fr)) auto auto;
        align-items: end;
    }

    .jobs-search-row,
    .jobs-filter-grid {
        display: contents;
    }

    .jobs-field--search {
        grid-column: 1;
        grid-row: 1;
    }

    .jobs-filter-grid .jobs-field:nth-child(1) {
        grid-column: 2;
        grid-row: 1;
    }

    .jobs-filter-grid .jobs-field:nth-child(2) {
        grid-column: 3;
        grid-row: 1;
    }

    .jobs-filter-grid .jobs-field:nth-child(3) {
        grid-column: 4;
        grid-row: 1;
    }

    .jobs-filter-grid .jobs-field:nth-child(4) {
        grid-column: 5;
        grid-row: 1;
    }

    .jobs-filter-submit {
        grid-column: 6;
        grid-row: 1;
    }

    .jobs-reset {
        grid-column: 7;
        grid-row: 1;
    }

    .jobs-quick-filters {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

@media (max-width: 680px) {
    .jobs-shell {
        padding: 4.9rem 1rem 3rem;
    }

    .jobs-hero {
        gap: 0.9rem;
        margin-bottom: 1rem;
    }

    .jobs-kicker {
        margin-bottom: 0.45rem;
        font-size: 0.64rem;
    }

    .jobs-hero h1 {
        max-width: 340px;
        font-size: clamp(2rem, 11vw, 2.7rem);
        line-height: 0.96;
        letter-spacing: -0.045em;
    }

    .jobs-lede {
        margin-top: 0.65rem;
        font-size: 0.92rem;
        line-height: 1.48;
    }

    .jobs-proof-row {
        display: none;
    }

    .jobs-hero-panel {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        border-radius: 16px;
    }

    .jobs-hero-panel div {
        padding: 0.65rem 0.3rem;
    }

    .jobs-hero-panel strong {
        font-size: 1.05rem;
    }

    .jobs-hero-panel span {
        margin-top: 0.28rem;
        font-size: 0.49rem;
        letter-spacing: 0.06em;
    }

    .jobs-workbench {
        padding: 0.65rem;
        border-radius: 22px;
    }

    .jobs-filters {
        gap: 0.55rem;
        padding: 0.58rem;
        border-radius: 18px;
    }

    .jobs-search-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .jobs-field--search {
        grid-column: 1 / -1;
    }

    .jobs-filter-grid {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        padding-bottom: 0.05rem;
        scrollbar-width: none;
    }

    .jobs-filter-grid::-webkit-scrollbar {
        display: none;
    }

    .jobs-filter-grid .jobs-field {
        flex: 0 0 148px;
        width: 148px;
    }

    .jobs-field > span {
        font-size: 0.56rem;
    }

    .jobs-field input,
    .jobs-field select,
    .jobs-filter-submit,
    .jobs-reset {
        min-height: 38px;
        border-radius: 11px;
        font-size: 0.86rem;
    }

    .jobs-filter-submit,
    .jobs-reset {
        width: 100%;
        padding: 0 0.7rem;
    }

    .jobs-quick-filters a {
        min-height: 28px;
        padding: 0 0.58rem;
        font-size: 0.7rem;
    }

    .jobs-results-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
        padding: 0.7rem 0.2rem 0.55rem;
    }

    .jobs-results-head p {
        font-size: 0.94rem;
    }

    .jobs-updated {
        font-size: 0.76rem;
    }

    .jobs-card {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.9rem;
        border-radius: 18px;
    }

    .jobs-card h2 {
        font-size: 1.06rem;
        line-height: 1.18;
    }

    .jobs-card-topline span {
        font-size: 0.62rem;
    }

    .jobs-signals {
        gap: 0.32rem;
        margin-bottom: 0.36rem;
    }

    .jobs-signals span {
        min-height: 21px;
        font-size: 0.61rem;
    }

    .jobs-meta {
        font-size: 0.78rem;
        line-height: 1.35;
    }

    .jobs-tags {
        max-height: 27px;
        margin-top: 0.5rem;
    }

    .jobs-tags span {
        padding: 0.22rem 0.42rem;
        font-size: 0.67rem;
    }

    .jobs-apply {
        width: 100%;
        min-height: 40px;
    }

    .jobs-empty,
    .jobs-explainer {
        padding: 1.15rem;
        border-radius: 18px;
    }

    .jobs-pagination {
        flex-wrap: wrap;
        padding-top: 1rem;
    }

    .jobs-explainer-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        line-height: 1.58;
    }
}
