/* Weyel Jobs frontend styles.
 * The block stylesheet is not loaded for the [weyel_jobs] shortcode, so the
 * rendered card styles are also provided here for shortcode and archive views.
 */

.weyel-jobs-listing {
    max-width: var(--weyel-container-max, 1400px);
    margin: 0 auto;
    padding: var(--weyel-space-6, 32px) var(--weyel-gutter, 12px);
}

.weyel-jobs-filters {
    margin-bottom: var(--weyel-space-6, 32px);
    padding: var(--weyel-space-4, 20px);
    border: 1px solid var(--weyel-border-color-light, #f0f0f0);
    border-radius: var(--weyel-radius-md, 12px);
    background: var(--weyel-color-surface-muted, #fbfbfb);
}

.weyel-jobs-filters label {
    margin-right: var(--weyel-space-3, 16px);
    color: var(--weyel-color-text, #494043);
    font-family: var(--weyel-font-family-base, "Exo", sans-serif);
    font-weight: 600;
}

.weyel-jobs-filters select {
    min-width: 220px;
    padding: var(--weyel-space-2, 12px) var(--weyel-space-3, 16px);
    border: 1px solid var(--weyel-border-color-soft, #e0e0e0);
    border-radius: var(--weyel-radius-sm, 8px);
    background: var(--weyel-color-white, #fff);
    color: var(--weyel-color-text, #494043);
    font-family: var(--weyel-font-family-base, "Exo", sans-serif);
    font-size: var(--weyel-font-size-md, 16px);
}

.weyel-jobs-filters select:focus {
    outline: none;
    border-color: var(--weyel-color-blue, #0768b1);
}

.weyel-jobs-items {
    display: grid;
    gap: var(--weyel-space-5, 24px);
}

.weyel-job-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: var(--weyel-space-6, 32px);
    border: 1px solid var(--weyel-border-color-light, #f0f0f0);
    border-radius: var(--weyel-radius-lg, 16px);
    background: var(--weyel-color-white, #fff);
    transition: box-shadow var(--weyel-transition-base, 0.3s ease), border-color var(--weyel-transition-base, 0.3s ease);
}

.weyel-job-card:hover {
    border-color: var(--weyel-color-blue, #0768b1);
    box-shadow: var(--weyel-shadow-card-hover, 0 10px 25px rgba(7, 104, 177, 0.12));
}

.weyel-job-card__header {
    margin-bottom: var(--weyel-space-4, 20px);
}

.weyel-job-card__categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--weyel-space-1, 8px);
    margin-bottom: var(--weyel-space-3, 16px);
}

.weyel-job-card__category {
    display: inline-block;
    padding: var(--weyel-space-1, 8px) var(--weyel-space-3, 16px);
    border-radius: var(--weyel-radius-sm, 8px);
    background: var(--weyel-color-blue, #0768b1);
    color: var(--weyel-color-white, #fff);
    font-size: var(--weyel-font-size-xs, 12px);
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-transform: uppercase;
}

.weyel-job-card__title {
    margin: 0;
    font-family: var(--weyel-font-family-base, "Exo", sans-serif);
    font-size: var(--weyel-font-size-xl, 24px);
    font-weight: 500;
    line-height: 1.3;
}

.weyel-job-card__link {
    color: var(--weyel-color-blue, #0768b1);
    text-decoration: none;
    transition: color var(--weyel-transition-base, 0.3s ease);
}

.weyel-job-card__link:hover,
.weyel-job-card__link:focus {
    color: var(--weyel-color-green, #52ae32);
}

.weyel-job-card__body {
    flex: 1 1 auto;
}

.weyel-job-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--weyel-space-3, 16px) var(--weyel-space-5, 24px);
    margin: 0;
    padding: var(--weyel-space-4, 20px) 0;
    border-top: 1px solid var(--weyel-border-color-light, #f0f0f0);
    border-bottom: 1px solid var(--weyel-border-color-light, #f0f0f0);
    color: var(--weyel-color-text-muted, #555);
    font-family: var(--weyel-font-family-base, "Exo", sans-serif);
    font-size: var(--weyel-font-size-sm, 14px);
    list-style: none;
}

.weyel-job-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: var(--weyel-space-1, 8px);
    min-width: 0;
}

/* Explicit dimensions are required for inline SVGs; otherwise theme/browser
 * defaults can leave the icon collapsed or render it at an unintended size. */
.weyel-job-card__icon,
.weyel-job-card__button-icon {
    display: block;
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    max-width: 100%;
}

.weyel-job-card__icon {
    color: var(--weyel-color-blue, #0768b1);
    stroke: currentColor;
}

.weyel-job-card__footer {
    margin-top: var(--weyel-space-5, 24px);
}

.weyel-job-card__button {
    display: inline-flex;
    align-items: center;
    gap: var(--weyel-space-2, 12px);
    padding: var(--weyel-space-2, 12px) var(--weyel-space-4, 20px);
    border-radius: var(--weyel-radius-sm, 8px);
    background: var(--weyel-color-blue, #0768b1);
    color: var(--weyel-color-white, #fff);
    font-family: var(--weyel-font-family-base, "Exo", sans-serif);
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--weyel-transition-base, 0.3s ease);
}

.weyel-job-card__button:hover,
.weyel-job-card__button:focus {
    background: var(--weyel-color-blue-dark, #003577);
    color: var(--weyel-color-white, #fff);
}

.weyel-jobs-no-results {
    padding: var(--weyel-space-8, 64px);
    border-radius: var(--weyel-radius-lg, 16px);
    background: var(--weyel-color-surface-muted, #fbfbfb);
    color: var(--weyel-color-text-muted, #555);
    font-family: var(--weyel-font-family-base, "Exo", sans-serif);
    font-size: var(--weyel-font-size-lg, 18px);
    text-align: center;
}

.weyel-jobs-archive .nav-links,
.weyel-jobs-listing .nav-links {
    display: flex;
    justify-content: center;
    gap: var(--weyel-space-2, 12px);
    margin-top: var(--weyel-space-7, 48px);
}

.weyel-jobs-archive .page-numbers,
.weyel-jobs-listing .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--weyel-space-3, 16px);
    border: 1px solid var(--weyel-border-color-soft, #e0e0e0);
    border-radius: var(--weyel-radius-sm, 8px);
    background: var(--weyel-color-white, #fff);
    color: var(--weyel-color-text, #494043);
    font-family: var(--weyel-font-family-base, "Exo", sans-serif);
    font-weight: 500;
    text-decoration: none;
}

.weyel-jobs-archive .page-numbers:hover,
.weyel-jobs-listing .page-numbers:hover,
.weyel-jobs-archive .page-numbers.current,
.weyel-jobs-listing .page-numbers.current {
    border-color: var(--weyel-color-blue, #0768b1);
    background: var(--weyel-color-blue, #0768b1);
    color: var(--weyel-color-white, #fff);
}

@media (max-width: 768px) {
    .weyel-jobs-listing {
        padding: var(--weyel-space-4, 20px) var(--weyel-gutter, 12px);
    }

    .weyel-job-card {
        padding: var(--weyel-space-5, 24px);
    }

    .weyel-job-card__title {
        font-size: var(--weyel-font-size-lg, 18px);
    }

    .weyel-job-card__meta {
        flex-direction: column;
        gap: var(--weyel-space-2, 12px);
    }
}

@media (max-width: 480px) {
    .weyel-jobs-filters {
        display: flex;
        flex-direction: column;
        gap: var(--weyel-space-2, 12px);
    }

    .weyel-jobs-filters select {
        width: 100%;
    }
}
