/* ================================================================
   Job Positions Plugin – Frontend Styles
   Design: cream/off-white bg, dark forest green, editorial feel
   ================================================================ */

/* ── Listing container ─────────────────────────────────────── */
.jpp-listing {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #1a2e1a;
    width: 100%;
    padding: 32px 40px 64px;
    background: #F8F5F0;
    border-radius: 4px;
    box-sizing: border-box;
}

/* ── Section heading ────────────────────────────────────────── */
.jpp-heading {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 400;
    color: #1a2e1a;
    letter-spacing: -0.02em;
    margin: 0 0 32px;
    line-height: 1.15;
}

/* ── Individual row (wraps trigger + panel) ─────────────────── */
.jpp-row {
    border-bottom: 1px solid rgba(26, 46, 26, 0.12);
}

.jpp-row:first-child {
    border-top: 1px solid rgba(26, 46, 26, 0.12);
}

/* ── Clickable trigger row ──────────────────────────────────── */
.jpp-row__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 0;
    cursor: pointer;
}

/* ── Left side ──────────────────────────────────────────────── */
.jpp-row__left {
    flex: 1;
    min-width: 0;
}

.jpp-row__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

/* ── Badges ─────────────────────────────────────────────────── */
.jpp-badge {
    display: inline-block;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    line-height: 1;
    white-space: nowrap;
}

.jpp-badge--urgentne    { background-color: #f4c5c5; color: #7a2020; }
.jpp-badge--expertna    { background-color: #bdd4b8; color: #2a4a24; }
.jpp-badge--pripravujeme{ background-color: #e0ddd8; color: #5a5550; }
.jpp-badge--aktualne    { background-color: #b8d4cc; color: #1a3a30; }

/* ── Secondary label ────────────────────────────────────────── */
.jpp-row__secondary {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7a7570;
}

/* ── Job title ──────────────────────────────────────────────── */
.jpp-row__title {
    margin: 0;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 400;
    line-height: 1.2;
    color: #1a2e1a;
    letter-spacing: -0.01em;
    transition: opacity 0.2s ease;
}

.jpp-row__trigger:hover .jpp-row__title {
    opacity: 0.65;
}

/* ── Right side ─────────────────────────────────────────────── */
.jpp-row__right {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-shrink: 0;
    text-align: right;
}

/* ── Location block ─────────────────────────────────────────── */
.jpp-row__location {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.jpp-row__location-label {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9a9590;
}

.jpp-row__location-value {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #1a2e1a;
}

/* ── Toggle button ──────────────────────────────────────────── */
.jpp-row__toggle {
    display: inline-flex;
    align-items: center;
    background: #1a2e1a;
    border: none;
    border-radius: 100px;
    padding: 9px 20px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.jpp-row__toggle-label {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-style: normal;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #F8F5F0;
}

.jpp-row__toggle-icon { display: none; }

/* ── Accordion panel ────────────────────────────────────────── */
.jpp-panel {
    /* max-height & overflow are set by JS during animation */
}

.jpp-panel__inner {
    padding: 0 0 32px;
    border-top: 1px dashed rgba(26, 46, 26, 0.15);
    margin-top: 0;
    padding-top: 24px;
}

/* ── Detail pills inside panel ──────────────────────────────── */
.jpp-panel__details {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.jpp-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.jpp-detail__label {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9a9590;
}

.jpp-detail__value {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    color: #1a2e1a;
}

/* ── Panel body content (post editor text) ──────────────────── */
.jpp-panel__content {
    font-size: 16px;
    line-height: 1.8;
    color: #2a3a2a;
    max-width: 640px;
}

.jpp-panel__content p   { margin: 0 0 1.2em; }
.jpp-panel__content ul,
.jpp-panel__content ol  { margin: 0 0 1.2em; padding-left: 1.4em; }
.jpp-panel__content li  { margin-bottom: 0.4em; }
.jpp-panel__content h4  {
    font-size: 13px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9a9590;
    margin: 1.6em 0 0.6em;
}

/* ── Empty state ────────────────────────────────────────────── */
.jpp-empty {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #7a7570;
    padding: 40px 0;
    font-size: 15px;
}

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 640px) {
    .jpp-row__trigger {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 24px 0;
    }

    .jpp-row__right {
        width: 100%;
        justify-content: space-between;
        text-align: left;
    }

    .jpp-row__location {
        align-items: flex-start;
    }

    .jpp-panel__details {
        gap: 20px;
    }
}
