/* Вакансии — тема slim. Опирается на классы темы, здесь только своё. */

.vacancy-row {
    cursor: pointer;
}

.badge-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    white-space: nowrap;
}

/* Классы приходят из getStatusMeta(): text-success / text-primary / text-danger */
.badge-status.text-success {
    background: rgba(40, 199, 111, .15);
    color: #28c76f !important;
}

.badge-status.text-primary {
    background: rgba(255, 159, 67, .15);
    color: #ff9f43 !important;
}

.badge-status.text-danger {
    background: rgba(234, 84, 85, .15);
    color: #ea5455 !important;
}

.vacancy-answers {
    margin: 0;
    padding: 0;
    list-style: none;
}

.vacancy-answers li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(128, 128, 128, .18);
}

.vacancy-answers li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.vacancy-answers .h {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    opacity: .7;
}

.vacancy-message-text {
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}


#vacancy-servers .btn {
    margin: 0;
}

/* Лента доступных вакансий */
.vacancy-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, transform .15s;
    border: 1px solid transparent;
}

.vacancy-card:hover {
    color: inherit;
    border-color: var(--bs-primary, #ea5455);
    transform: translateY(-2px);
}

.vacancy-card__arrow {
    font-size: 13px;
    opacity: .4;
    flex-shrink: 0;
    margin-top: 3px;
}

.vacancy-card:hover .vacancy-card__arrow {
    opacity: 1;
    color: var(--bs-primary, #ea5455);
}

.vacancy-card__short {
    font-size: 13px;
    line-height: 1.5;
    opacity: .75;
}

.vacancy-card__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vacancy-card__reward {
    display: inline-block;
    align-self: flex-start;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    background: rgba(40, 199, 111, .15);
    color: #28c76f;
}

/* Изображение в ответах на анкету */
.vacancy-answer-image {
    display: block;
    max-width: 320px;
    max-height: 220px;
    width: auto;
    height: auto;
    margin-top: 6px;
    border-radius: 6px;
    border: 1px solid rgba(128, 128, 128, .25);
}

/* Картинка на карточке вакансии */
.vacancy-card {
    overflow: hidden;
}

.vacancy-card__image {
    height: 130px;
    background-size: cover;
    background-position: center;
    border-radius: 8px 8px 0 0;
}

/* Слайд карусели вакансий: карточки одной высоты в ряду */
#open-vacancies .owl-stage {
    display: flex;
}

#open-vacancies .owl-item {
    display: flex;
}

.vacancy-slide {
    display: flex;
    width: 100%;
}

.vacancy-slide .vacancy-card {
    width: 100%;
}

/* ─── Требования к кандидату ─── */
.vacancy-req {
    display: flex;
    gap: 14px;
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 10px;
    /* Фон светлее карточки, чтобы блок читался вложенным, а не сливался */
    background: var(--bs-tertiary-bg, rgb(49, 53, 65));
    border: 1px solid rgba(255, 255, 255, .07);
}

.vacancy-req__icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(251, 71, 75, .12);
    color: var(--bs-primary, rgb(251, 71, 75));
    font-size: 16px;
}

.vacancy-req__content {
    min-width: 0;
}

.vacancy-req__title {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
}

.vacancy-req__body {
    font-size: 14px;
    line-height: 1.65;
    /* Явный цвет: --bs-body-color в теме переопределяется на тёмный
       и текст на этом фоне становится нечитаемым */
    color: rgba(255, 255, 255, .82);
}

.vacancy-req__body br + br {
    display: none;
}

@media (max-width: 575.98px) {
    .vacancy-req {
        padding: 14px;
        gap: 10px;
    }

    .vacancy-req__icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

.vacancy-req__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.vacancy-req__list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 5px;
}

.vacancy-req__list li:last-child {
    margin-bottom: 0;
}

/* Маркер акцентным цветом вместо стандартного буллета */
.vacancy-req__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--bs-primary, rgb(251, 71, 75));
}

/* Заголовок раздела внутри анкеты */
.vacancy-form-section {
    margin: 6px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-weight: 600;
    font-size: 15px;
    color: #fff;
}

.row > .col-12:first-child > .vacancy-form-section {
    margin-top: 0;
}

.vacancy-required {
    color: var(--bs-primary, rgb(251, 71, 75));
}

/* Подсказка на пустой форме подачи */
.vacancy-hint {
    display: flex;
    gap: 14px;
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 10px;
    background: var(--bs-tertiary-bg, rgb(49, 53, 65));
    border: 1px solid rgba(255, 255, 255, .07);
}

.vacancy-hint__icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(251, 71, 75, .12);
    color: var(--bs-primary, rgb(251, 71, 75));
    font-size: 16px;
}

.vacancy-hint__title {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
}

.vacancy-hint__steps {
    margin: 0 0 8px;
    padding-left: 18px;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .82);
}

.vacancy-hint__steps li {
    margin-bottom: 3px;
}

.vacancy-hint__note {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
}

/* ─── Оверлеи модуля ─── */
.vacancy-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(3px);
}

.vacancy-overlay__box {
    width: 100%;
    max-width: 460px;
    margin: 0;
}

.vc-check {
    width: 84px;
    height: 84px;
    margin-bottom: 12px;
}

.vc-check__circle {
    stroke: #28c76f;
    stroke-width: 2.5;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: vc-circle .5s cubic-bezier(.65, 0, .45, 1) forwards;
}

.vc-check__mark {
    stroke: #28c76f;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: vc-mark .35s cubic-bezier(.65, 0, .45, 1) .45s forwards;
}

@keyframes vc-circle { to { stroke-dashoffset: 0; } }
@keyframes vc-mark   { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
    .vc-check__circle,
    .vc-check__mark {
        animation: none;
        stroke-dashoffset: 0;
    }
}
