/* ══════════════════════════════════════════════════════════════════════════
   OEP Frontend Styles — v2.0
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
    --oep-blue: #2c56b0;
    --oep-blue-dark: #1e3d82;
    --oep-blue-light: #f0f5ff;
    --oep-border: #dce6f5;
    --oep-text: #1e2b3c;
    --oep-muted: #6b7a99;
    --oep-white: #ffffff;
    --oep-tag-bg: #eef3ff;
    --oep-radius: 10px;
    --oep-shadow: 0 4px 20px rgba(44, 86, 176, .10);
    --oep-font: 'Inter', system-ui, sans-serif;
}

/* ── Container ──────────────────────────────────────────────────────────── */
.oep-container {
    font-family: var(--oep-font);
    max-width: 1060px;
    margin: 30px auto;
    color: var(--oep-text);
    line-height: 1.6;
}

/* ── Search ─────────────────────────────────────────────────────────────── */
.oep-search-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 26px;
}

.oep-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 460px;
    display: flex;
    align-items: center;
}

.oep-search-icon {
    position: absolute;
    left: 16px;
    color: var(--oep-muted);
    pointer-events: none;
    font-size: 15px;
}

.oep-search-input {
    width: 100%;
    padding: 12px 44px 12px 44px;
    font-size: 15px;
    font-family: var(--oep-font);
    border: 1.5px solid #c5d3e8;
    border-radius: 8px;
    outline: none;
    background: var(--oep-white);
    transition: border-color .25s, box-shadow .25s;
}

.oep-search-input:focus {
    border-color: var(--oep-blue);
    box-shadow: 0 0 0 3px rgba(44, 86, 176, .12);
}

.oep-search-clear {
    position: absolute;
    right: 14px;
    cursor: pointer;
    color: var(--oep-muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: background .2s;
}

.oep-search-clear:hover {
    background: #cbd5e1;
}

/* Results meta */
.oep-results-meta {
    font-size: 14px;
    color: var(--oep-muted);
    margin-bottom: 20px;
    padding-left: 2px;
}

/* ── Job Card ───────────────────────────────────────────────────────────── */
.oep-job-card {
    display: flex;
    align-items: center;
    gap: 24px;
    border: 1.5px solid var(--oep-blue);
    border-radius: 0;
    padding: 24px 28px;
    margin-bottom: 22px;
    background: var(--oep-white);
    transition: transform .22s ease, box-shadow .22s ease;
}

.oep-job-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--oep-shadow);
}

@keyframes oepFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.oep-card-enter {
    animation: oepFadeIn .35s ease both;
}

.oep-job-thumb {
    flex-shrink: 0;
    width: 130px;
    height: 120px;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #eaeff8;
}

.oep-job-thumb img {
    width: 100%;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
}

.oep-job-info {
    flex: 1;
    min-width: 0;
}

.oep-job-title {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--oep-blue);
    text-decoration: none;
    margin-bottom: 6px;
    transition: color .2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oep-job-title:hover {
    color: var(--oep-blue-dark);
}

.oep-job-snippet {
    font-size: 14px;
    color: var(--oep-muted);
    margin: 0 0 14px;
    line-height: 1.5;
}

.oep-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    font-size: 13.5px;
    font-weight: 600;
}

.oep-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--oep-text);
}

.oep-meta-item i {
    color: var(--oep-blue);
}

.oep-meta-item.oep-date {
    color: var(--oep-muted);
}

.oep-meta-item.oep-tag {
    background: var(--oep-tag-bg);
    color: var(--oep-blue);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12.5px;
}

/* Card Actions */
.oep-card-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.oep-salary {
    font-size: 13px;
    font-weight: 700;
    color: #27ae60;
    background: #e8f9ef;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.oep-btn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--oep-blue);
    color: var(--oep-blue);
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: background .25s, color .25s;
    white-space: nowrap;
}

.oep-btn-more:hover {
    background: var(--oep-blue);
    color: var(--oep-white);
}

/* ── Loading ────────────────────────────────────────────────────────────── */
.oep-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    padding: 40px;
    color: var(--oep-muted);
}

.oep-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--oep-border);
    border-top-color: var(--oep-blue);
    border-radius: 50%;
    animation: oepSpin .8s linear infinite;
}

@keyframes oepSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Empty State ────────────────────────────────────────────────────────── */
.oep-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--oep-muted);
}

.oep-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    opacity: .4;
}

.oep-btn-reset {
    margin-top: 16px;
    background: var(--oep-blue);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-family: var(--oep-font);
}

/* ── Pagination ─────────────────────────────────────────────────────────── */
.oep-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.oep-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1.5px solid var(--oep-border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--oep-blue);
    font-weight: 600;
    font-size: 14px;
    background: var(--oep-white);
    cursor: pointer;
    transition: all .2s;
    font-family: var(--oep-font);
}

.oep-page-btn:hover,
.oep-page-btn.active {
    background: var(--oep-blue);
    color: var(--oep-white);
    border-color: var(--oep-blue);
}

/* ── Detail (Single) ────────────────────────────────────────────────────── */
.oep-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--oep-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 20px;
    transition: opacity .2s;
}

.oep-back-link:hover {
    opacity: .75;
}

.oep-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    border: 1px solid var(--oep-border);
    border-radius: var(--oep-radius);
    padding: 36px 40px;
    background: var(--oep-white);
    margin-bottom: 24px;
}

.oep-detail-title {
    font-size: 30px;
    font-weight: 900;
    color: var(--oep-blue);
    margin: 0 0 12px;
}

.oep-detail-company-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.oep-detail-company {
    font-size: 19px;
    font-weight: 700;
    padding-right: 14px;
    border-right: 2px solid #ccd6ea;
}

.oep-detail-tag {
    background: var(--oep-tag-bg);
    color: var(--oep-blue);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.oep-detail-tag.oep-tag-secondary {
    background: #f0fdf4;
    color: #166534;
}

.oep-detail-time {
    display: flex;
    gap: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--oep-muted);
}

.oep-detail-salary {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e8f9ef;
    color: #1a7a4e;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

.oep-detail-header-thumb img {
    width: 160px;
    height: 140px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--oep-border);
}

/* Info grid */
.oep-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    border: 1px solid var(--oep-border);
    border-radius: var(--oep-radius);
    padding: 36px 40px;
    background: var(--oep-white);
    margin-bottom: 24px;
}

.oep-grid-item h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--oep-blue);
    margin: 0 0 6px;
}

.oep-grid-item p {
    margin: 0;
    font-size: 15px;
    color: #444;
    font-weight: 500;
}

/* Detail body */
.oep-detail-body {
    border: 1px solid var(--oep-border);
    border-radius: var(--oep-radius);
    padding: 36px 40px;
    background: var(--oep-white);
}

.oep-section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--oep-blue);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
}

.oep-detail-description {
    font-size: 15.5px;
    line-height: 1.85;
    color: #444;
}

.oep-detail-expiration {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--oep-border);
}

.oep-detail-expiration h4 {
    font-size: 17px;
    font-weight: 800;
    color: var(--oep-blue);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 820px) {
    .oep-job-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .oep-card-actions {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }

    .oep-detail-header {
        flex-direction: column;
    }

    .oep-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .oep-detail-grid {
        grid-template-columns: 1fr;
    }

    .oep-detail-header,
    .oep-detail-body {
        padding: 24px 20px;
    }
}