/* ── Helvetas Vacancies – Frontend Styles ── */

:root {
    --hv-red:       #d62b27;
    --hv-red-dark:  #b01f1c;
    --hv-blue:      #1d4ed8;
    --hv-blue-dark: #1e40af;
    --hv-text:      #111827;
    --hv-muted:     #6b7280;
    --hv-border:    #e5e7eb;
    --hv-bg:        #ffffff;
    --hv-bg-soft:   #f9fafb;
    --hv-radius:    12px;
    --hv-gap:       1.25rem;
}

/* ── Grid ── */
.hv-grid {
    display: grid;
    gap: var(--hv-gap);
}
.hv-cols-1 { grid-template-columns: 1fr; }
.hv-cols-2 { grid-template-columns: repeat(2, 1fr); }
.hv-cols-3 { grid-template-columns: repeat(3, 1fr); }
.hv-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .hv-cols-3,
    .hv-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .hv-cols-2,
    .hv-cols-3,
    .hv-cols-4 { grid-template-columns: 1fr; }
}

/* ── Card ── */
.hv-card {
    background: var(--hv-bg);
    border: 1px solid var(--hv-border);
    border-radius: var(--hv-radius);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: .8rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    transition: box-shadow .2s ease, transform .2s ease;
}
.hv-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    transform: translateY(-3px);
}

/* ── Card Header ── */
.hv-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

/* ── Badge ── */
.hv-badge {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .22rem .65rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    white-space: nowrap;
}
.hv-badge--open       { background: #dcfce7; color: #15803d; }
.hv-badge--completed  { background: #fee2e2; color: #b91c1c; }
.hv-badge--closed     { background: #fef3c7; color: #92400e; }
.hv-badge--upcoming   { background: #dbeafe; color: #1d4ed8; }

/* ── Code ── */
.hv-code {
    font-size: .7rem;
    color: var(--hv-muted);
    font-family: ui-monospace, "Cascadia Code", monospace;
    letter-spacing: .02em;
}

/* ── Title ── */
.hv-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--hv-text);
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* ── Meta list ── */
.hv-meta {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.hv-meta__item {
    display: flex;
    align-items: flex-start;
    gap: .45rem;
    font-size: .84rem;
    color: #4b5563;
    line-height: 1.4;
    margin: 0 !important;
    padding: 0 !important;
}
.hv-meta__item::before { display: none !important; } /* reset theme bullets */

/* ── Icons ── */
.hv-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--hv-muted);
}
.hv-icon--sm {
    width: 14px;
    height: 14px;
    margin-top: 0;
}

/* ── Footer & button ── */
.hv-card__footer {
    margin-top: auto;
    padding-top: .4rem;
}
.hv-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1.1rem;
    background: var(--hv-red);
    color: #fff !important;
    text-decoration: none !important;
    font-size: .83rem;
    font-weight: 600;
    border-radius: 8px;
    transition: background .15s ease;
    border: none;
    cursor: pointer;
}
.hv-btn:hover,
.hv-btn:focus-visible { background: var(--hv-red-dark); outline: 2px solid var(--hv-red); outline-offset: 2px; }
.hv-btn-disabled{
    background:#cf8a8f !important;
    cursor:not-allowed;
    pointer-events:none;
    opacity:0.8;
}
.hv-btn-secondary{
    background: var(--hv-blue-dark) !important;
}

.hv-btn-secondary:hover, .hv-btn-secondary:focus-visible{
    background: var(--hv-blue) !important;
	outline: 2px solid var(--hv-blue) !important;
}

/* ── States ── */
.hv-empty {
    padding: 1.2rem;
    border-radius: var(--hv-radius);
    background: var(--hv-bg-soft);
    color: var(--hv-muted);
    font-size: .9rem;
    text-align: center;
    border: 1px dashed var(--hv-border);
}
.hv-notice {
    padding: 1rem 1.2rem;
    border-radius: var(--hv-radius);
    font-size: .88rem;
}
.hv-notice--error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
}
