/**
 * SPOS Vacatures — Frontend Styles
 * Colors matched to Divi 5 template.
 */

:root {
    --spos-blue: #04324b;
    --spos-yellow: #f5b800;
    --spos-white: #ffffff;
    --spos-gray: #a2a2a2;
    --spos-gray-light: #dedede;
    --spos-line: rgba(29, 52, 97, 0.11);
    --spos-blue-77: rgba(4, 50, 75, 0.77);
    --spos-white-50: rgba(255, 255, 255, 0.5);
    --spos-white-42: rgba(255, 255, 255, 0.42);
}

/* =============================================
   OVERVIEW — Shortcode [spos_vacatures]
   ============================================= */
.spos-vac-overview {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Jost', 'Montserrat', sans-serif;
}

/* Header */
.spos-vac-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--spos-line);
}

.spos-vac-title {
    font-family: 'Jost', sans-serif;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--spos-blue);
    margin: 0 0 4px 0;
}

.spos-vac-count {
    font-size: 14px;
    color: var(--spos-gray);
    margin: 0;
}

#spos-vac-count-num {
    font-weight: 600;
    color: var(--spos-blue);
}

/* Filters */
.spos-vac-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.spos-vac-filter {
    padding: 10px 36px 10px 16px;
    border: 1px solid var(--spos-line);
    border-radius: 6px;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    color: var(--spos-blue);
    background: var(--spos-white);
    cursor: pointer;
    min-width: 160px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2304324b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.spos-vac-filter:focus {
    outline: none;
    border-color: var(--spos-yellow);
    box-shadow: 0 0 0 3px rgba(245, 184, 0, 0.15);
}

/* Card list */
.spos-vac-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Card */
.spos-vac-card {
    display: block;
    text-decoration: none !important;
    color: inherit;
    background: var(--spos-white);
    border: 1px solid var(--spos-line);
    border-radius: 10px;
    padding: 24px 28px;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.spos-vac-card:hover {
    background: #f6f7f9;
    box-shadow: 0 2px 12px rgba(4, 50, 75, 0.06);
    color: inherit;
}

.spos-vac-card:visited { color: inherit; }

.spos-vac-card-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.spos-vac-badge {
    display: inline-block;
    background: var(--spos-blue);
    color: var(--spos-white);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 4px;
}

.spos-vac-meta {
    font-size: 13px;
    color: var(--spos-gray);
}

.spos-vac-salary {
    display: inline-block;
    background: rgba(245, 184, 0, 0.15);
    color: #c49200;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
}

.spos-vac-card-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.spos-vac-card-content { flex: 1; }

.spos-vac-card-title {
    font-family: 'Jost', sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--spos-blue);
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.spos-vac-card-excerpt {
    font-size: 14px;
    color: var(--spos-gray);
    margin: 0;
    line-height: 1.5;
}

.spos-vac-card-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.spos-vac-card-regio {
    font-size: 13px;
    color: var(--spos-gray);
}

.spos-vac-card-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--spos-yellow);
    white-space: nowrap;
}

.spos-vac-card:hover .spos-vac-card-link {
    color: #c49200;
}

/* No results */
.spos-vac-no-results {
    text-align: center;
    padding: 48px 20px;
    color: var(--spos-gray);
    font-size: 16px;
}

/* Open sollicitatie */
.spos-vac-open-sollicitatie {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--spos-blue);
    border-left: 4px solid var(--spos-yellow);
    border-radius: 10px;
    padding: 28px 32px;
    margin-top: 32px;
}

.spos-vac-open-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--spos-white-50);
    margin-bottom: 4px;
}

.spos-vac-open-title {
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--spos-white);
}

/* Shared button */
.spos-vac-btn {
    display: inline-block;
    background: var(--spos-yellow);
    color: var(--spos-blue) !important;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none !important;
    transition: background-color 0.2s;
}

.spos-vac-btn:hover {
    background: #d9a200;
    color: var(--spos-blue) !important;
}

/* =============================================
   SINGLE — Vacature Detail Page
   ============================================= */

/* Hero */
.spos-vac-hero {
    background: var(--spos-blue);
    padding: 0;
    border-bottom: 4px solid var(--spos-yellow);
}

.spos-vac-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5%;
    min-height: 43vh;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
}

.spos-vac-back {
    font-size: 14px;
    color: var(--spos-white-50) !important;
    text-decoration: none !important;
    margin-bottom: 16px;
    display: inline-block;
}

.spos-vac-back:hover {
    color: var(--spos-yellow) !important;
}

.spos-vac-hero-title {
    font-family: 'Jost', sans-serif;
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--spos-white);
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.spos-vac-hero-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.spos-vac-hero-tag {
    font-size: 14px;
    color: var(--spos-white-42);
}

.spos-vac-hero-salary {
    font-size: 14px;
    font-weight: 600;
    color: var(--spos-yellow);
}

/* Content section */
.spos-vac-content {
    margin-top: 50px;
    border-bottom: 1px solid var(--spos-line);
}

.spos-vac-content-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Content blocks */
.spos-vac-block {
    margin-bottom: 30px;
}

.spos-vac-block h2 {
    font-family: 'Jost', sans-serif;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--spos-blue);
    margin: 0 0 10px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--spos-yellow);
}

.spos-vac-text {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

.spos-vac-text p {
    margin: 0 0 16px 0;
}

.spos-vac-text ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0 0 16px 0;
}

.spos-vac-text li {
    margin-bottom: 6px;
    line-height: 1.6;
}

/* CTA band */
.spos-vac-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--spos-blue);
    border-left: 4px solid var(--spos-yellow);
    border-radius: 4px;
    margin: 40px 0 50px;
}

.spos-vac-cta-left {
    padding: 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spos-vac-cta-left h5 {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--spos-white-50);
    margin: 0 0 4px 0;
}

.spos-vac-cta-left h3 {
    font-family: 'Jost', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--spos-white);
    margin: 0 0 12px 0;
}

.spos-vac-cta-left p {
    font-size: 14px;
    color: var(--spos-white-42);
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.spos-vac-cta-left a:not(.spos-vac-btn) {
    color: var(--spos-white-50) !important;
    text-decoration: none !important;
}

.spos-vac-cta-left a:not(.spos-vac-btn):hover {
    color: var(--spos-yellow) !important;
}

.spos-vac-cta-left .spos-vac-btn {
    margin-top: 8px;
    align-self: flex-start;
}

.spos-vac-cta-right {
    padding: 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spos-vac-cta-fallback {
    font-size: 14px;
    color: var(--spos-white-50);
}

/* CF7 form inside CTA */
.spos-vac-cta-right .wpcf7 input[type="text"],
.spos-vac-cta-right .wpcf7 input[type="email"],
.spos-vac-cta-right .wpcf7 input[type="tel"],
.spos-vac-cta-right .wpcf7 textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--spos-white);
    margin-top: 4px;
}

.spos-vac-cta-right .wpcf7 input::placeholder,
.spos-vac-cta-right .wpcf7 textarea::placeholder {
    color: var(--spos-white-42);
}

.spos-vac-cta-right .wpcf7 input:focus,
.spos-vac-cta-right .wpcf7 textarea:focus {
    outline: none;
    border-color: var(--spos-yellow);
}

.spos-vac-cta-right .wpcf7 label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--spos-white-50);
    margin-bottom: 10px;
}

.spos-vac-cta-right .wpcf7 input[type="submit"] {
    display: block;
    width: 100%;
    background: var(--spos-yellow);
    color: var(--spos-blue);
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 8px;
}

.spos-vac-cta-right .wpcf7 input[type="submit"]:hover {
    background: #d9a200;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    .spos-vac-cta {
        grid-template-columns: 1fr;
    }
    .spos-vac-hero-title {
        font-size: 28px;
    }
    .spos-vac-hero-inner {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .spos-vac-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .spos-vac-filters { width: 100%; }
    .spos-vac-filter { width: 100%; }
    .spos-vac-card-body { flex-direction: column; }
    .spos-vac-card-action {
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    .spos-vac-open-sollicitatie {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .spos-vac-title { font-size: 22px; }
}
