/* ═══════════════════════════════════════════════════════════
   SD Job Board — Frontend Styles
   Intentionally minimal — designed to be overridden in Elementor
   ═══════════════════════════════════════════════════════════ */

/* ── Listing ─────────────────────────────────────────────── */
.kok-jb-listing {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ── Card ────────────────────────────────────────────────── */
.kok-jb-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.kok-jb-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-color: #c1c8d0;
}

.kok-jb-card--closed {
    opacity: 0.8;
}

.kok-jb-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.kok-jb-card__title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.kok-jb-card__title a {
    color: inherit;
    text-decoration: none;
}

.kok-jb-card__title a:hover {
    text-decoration: underline;
}

.kok-jb-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 0.75rem;
}

.kok-jb-card__meta span {
    font-size: 0.875rem;
    color: #6b7280;
}

.kok-jb-meta__deadline--expired {
    color: #dc2626 !important;
    text-decoration: line-through;
}

.kok-jb-card__excerpt {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1rem;
}

.kok-jb-card__footer {
    margin-top: 1rem;
}

.kok-jb-card__link {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: #1a1a1a;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.kok-jb-card__link:hover {
    background: #333;
    color: #fff;
}

.kok-jb-no-jobs {
    text-align: center;
    color: #6b7280;
    padding: 2rem;
    font-style: italic;
}

/* ── Badges ──────────────────────────────────────────────── */
.kok-jb-badge {
    display: inline-block;
    padding: 0.2em 0.7em;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.kok-jb-badge--open {
    background: #d1fae5;
    color: #065f46;
}

.kok-jb-badge--closed {
    background: #fee2e2;
    color: #991b1b;
}

/* ── Detail Page ─────────────────────────────────────────── */
.kok-jb-detail {
    max-width: 100%;
}

.kok-jb-detail__back {
    display: inline-block;
    color: #6b7280;
    font-size: 0.9rem;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.kok-jb-detail__back:hover {
    color: #1a1a1a;
}

.kok-jb-detail__head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.kok-jb-detail__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.kok-jb-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
}

.kok-jb-detail__meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem 0.5rem 0;
    margin-right: 1rem;
    font-size: 0.9rem;
}

.kok-jb-detail__meta-item--expired .kok-jb-detail__meta-val {
    color: #dc2626;
}

.kok-jb-detail__meta-label {
    font-weight: 600;
    color: #374151;
}

.kok-jb-detail__meta-val {
    color: #6b7280;
}

.kok-jb-detail__content {
    line-height: 1.8;
    color: #1f2937;
    margin-bottom: 2rem;
}

.kok-jb-detail__content p { margin-bottom: 1em; }
.kok-jb-detail__content ul,
.kok-jb-detail__content ol {
    margin: 0.5em 0 1em 1.5em;
}

.kok-jb-detail__cta {
    margin-top: 2rem;
}

.kok-jb-detail__apply-btn {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    background: #1a1a1a;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s ease, transform 0.15s ease;
    cursor: pointer;
}

.kok-jb-detail__apply-btn:hover {
    background: #333;
    color: #fff;
    transform: translateY(-1px);
}

.kok-jb-detail__closed-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #fff7f7;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #7f1d1d;
    font-size: 0.95rem;
    font-weight: 500;
}

.kok-jb-detail__closed-icon {
    font-size: 1.25rem;
}

/* ── Elementor editor placeholder ────────────────────────── */
.kok-jb-detail__preview-notice {
    border-radius: 8px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
    .kok-jb-detail__meta {
        flex-direction: column;
    }
    .kok-jb-detail__meta-item {
        margin-right: 0;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 0.75rem;
    }
    .kok-jb-detail__meta-item:last-child {
        border-bottom: none;
    }
}
