/**
 * Стили вакансий ЦОПП Мурманской области («Работа в России» / ОПК)
 * Фирменный арктический стиль темы copp-theme
 */

.opk-search,
.tv-search {
    margin: 30px auto 50px;
    padding: 34px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(15, 76, 108, 0.14);
    box-shadow: 0 8px 30px rgba(15, 76, 108, 0.06);
    color: #1e293b;
    box-sizing: border-box;
    font-family: inherit;
}

.opk-search *,
.tv-search * {
    box-sizing: border-box;
}

/* Шапка блока */
.opk-search__head,
.tv-search__head {
    margin-bottom: 26px;
}

.opk-search__head span,
.tv-search__head span {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: #e8f4f9;
    color: #005b82;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.3px;
    margin-bottom: 12px;
}

.opk-search__head h2,
.tv-search__head h2 {
    margin: 0 0 10px;
    color: #0f4c6c;
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 800;
    line-height: 1.2;
}

.opk-search__head p,
.tv-search__head p {
    margin: 0 0 18px;
    color: #475569;
    font-size: 16px;
    line-height: 1.6;
}

/* Инфо-блок кэша (для администраторов) */
.opk-cache-info,
.tv-cache-info {
    margin: 10px 0 20px !important;
    padding: 12px 18px;
    border-radius: 14px;
    background: #f0f7fa;
    border: 1px solid rgba(0, 91, 130, 0.16);
    font-size: 14px;
    font-weight: 600;
    color: #334e68;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.opk-cache-info a,
.tv-cache-info a {
    color: #005b82;
    font-weight: 800;
    text-decoration: underline;
    margin-left: auto;
}

.opk-cache-info a:hover,
.tv-cache-info a:hover {
    color: #0077aa;
}

/* Формы фильтрации */
.opk-filter,
.tv-form {
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
}

.opk-filter__main {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
    gap: 12px;
}

.tv-form__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.opk-filter__bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.opk-filter__bar-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.opk-filter__quick,
.tv-quick {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

/* Поля ввода и выпадающие списки */
.opk-filter input,
.opk-filter select,
.tv-form input,
.tv-form select,
.opk-page-form input,
.tv-page-form input {
    width: 100%;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
    color: #1e293b;
    background-color: #ffffff;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.opk-filter select,
.tv-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23005B82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 12px 8px;
    padding-right: 44px;
    cursor: pointer;
}

.opk-filter input:focus,
.opk-filter select:focus,
.tv-form input:focus,
.tv-form select:focus,
.opk-page-form input:focus,
.tv-page-form input:focus {
    border-color: #005b82;
    box-shadow: 0 0 0 3px rgba(0, 91, 130, 0.15);
}

/* Кнопки и экспорт */
.opk-filter button[type="submit"],
.tv-form button[type="submit"],
.opk-filter__actions button,
.tv-actions button,
.opk-export {
    background: #005b82;
    border: none;
    color: #ffffff !important;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 50px;
    padding: 0 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 15px;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0, 91, 130, 0.15);
}

.opk-filter button[type="submit"]:hover,
.tv-form button[type="submit"]:hover,
.opk-filter__actions button:hover,
.tv-actions button:hover,
.opk-export:hover {
    background: #0077aa;
    color: #ffffff !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 91, 130, 0.25);
}

.opk-export {
    background: #0f4c6c;
}

.opk-export:hover {
    background: #005b82;
}

/* Кнопка «Подробные фильтры» */
.opk-more-toggle,
.tv-more-btn {
    background: #e8f4f9 !important;
    border: 1px solid rgba(0, 91, 130, 0.25) !important;
    color: #005b82 !important;
    font-weight: 700;
    cursor: pointer;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 14.5px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.opk-more-toggle:hover,
.tv-more-btn:hover {
    background: #d8eef8 !important;
    border-color: #005b82 !important;
}

/* Развернутая панель фильтров */
.opk-filter__advanced,
.tv-more {
    display: none;
    padding: 24px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid rgba(15, 76, 108, 0.12);
    margin-top: 6px;
}

.opk-filter.is-open .opk-filter__advanced,
.tv-form.is-open .tv-more {
    display: grid;
    gap: 16px;
}

.opk-filter__advanced {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tv-filter-group {
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.tv-filter-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tv-filter-group h3,
.opk-field label {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #0f4c6c;
    display: block;
}

.tv-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.tv-check-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #334e68;
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
}

.tv-check-grid input,
.opk-checkbox input {
    width: 18px;
    height: 18px;
    min-height: 18px;
    padding: 0;
    margin: 0;
    cursor: pointer;
    accent-color: #005b82;
}

.opk-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #334e68;
}

/* Действия фильтров (Применить / Сбросить) */
.opk-filter__actions,
.tv-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 6px;
}

.opk-filter__actions a,
.tv-actions a {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    font-size: 14.5px;
    display: inline-flex;
    align-items: center;
    min-height: 50px;
    padding: 0 16px;
    transition: color 0.2s;
}

.opk-filter__actions a:hover,
.tv-actions a:hover {
    color: #005b82;
    text-decoration: underline;
}

/* Метаинформация (кол-во вакансий) */
.opk-meta,
.tv-meta {
    margin: 22px 0;
    padding: 14px 0;
    border-bottom: 1px solid rgba(15, 76, 108, 0.12);
    font-size: 15.5px;
    color: #475569;
    font-weight: 600;
}

.opk-meta strong,
.tv-meta strong {
    color: #0f4c6c;
    font-weight: 800;
}

/* Сетка карточек */
.opk-grid,
.tv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 22px;
    margin: 24px 0;
}

/* Карточка вакансии */
.opk-card,
.tv-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(15, 76, 108, 0.12);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}

.opk-card:hover,
.tv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(15, 76, 108, 0.12);
    border-color: rgba(0, 91, 130, 0.35);
}

/* Верхняя полоса карточки: дата и форма занятости */
.opk-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.opk-card__date {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.opk-card__type {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: #edf5fa;
    color: #005b82;
    border: 1px solid rgba(0, 91, 130, 0.14);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

/* Заголовок вакансии */
.opk-card__title,
.opk-card h3,
.tv-card h3 {
    margin: 0 0 10px !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #0f4c6c !important;
    line-height: 1.35 !important;
}

.opk-card__title a,
.opk-card h3 a,
.tv-card h3 a {
    background: transparent !important;
    color: #0f4c6c !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: inherit !important;
    line-height: inherit !important;
    white-space: normal !important;
    display: inline !important;
    box-shadow: none !important;
    transform: none !important;
    word-break: break-word;
    overflow-wrap: break-word;
    transition: color 0.2s ease !important;
}

.opk-card__title a:hover,
.opk-card h3 a:hover,
.tv-card h3 a:hover {
    color: #0077aa !important;
    text-decoration: underline !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Предприятие */
.opk-card__company,
.opk-company,
.tv-company {
    font-weight: 700;
    color: #005b82;
    font-size: 14.5px;
    margin: 0 0 6px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Зарплата */
.opk-card__salary {
    font-size: 18px;
    font-weight: 800;
    color: #0f4c6c;
    margin: 0 0 8px;
    line-height: 1.3;
}

/* Адрес / Регион */
.opk-card__address,
.opk-region,
.tv-card p:not(.tv-company) {
    color: #64748b;
    font-size: 13.5px;
    margin: 0 0 12px;
    line-height: 1.4;
}

/* Обязанности и требования */
.opk-card__duty,
.opk-card__reqs {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #334e68;
}

.opk-card__duty strong,
.opk-card__reqs strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #0f4c6c;
    margin-bottom: 3px;
}

.opk-card__duty p,
.opk-card__reqs p {
    margin: 0;
    color: #475569;
    font-size: 13.5px;
    line-height: 1.5;
}

/* Теги вакансии */
.opk-tags,
.tv-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 16px;
}

.opk-tags span,
.tv-tags span {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    background: #f0f7fa;
    border: 1px solid rgba(0, 91, 130, 0.12);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: #005b82;
    line-height: 1.3;
}

/* Подвал карточки */
.opk-card__footer,
.tv-card > div:last-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    gap: 12px;
}

.opk-card strong,
.tv-card strong {
    font-size: 18px;
    font-weight: 800;
    color: #0f4c6c;
    white-space: nowrap;
}

/* Кнопка в подвале карточки */
.opk-card__btn,
.opk-card__footer a,
.tv-card > div:last-child a {
    background: #005b82 !important;
    color: #ffffff !important;
    padding: 10px 22px !important;
    border-radius: 999px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}

.opk-card__btn:hover,
.opk-card__footer a:hover,
.tv-card > div:last-child a:hover {
    background: #0077aa !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 91, 130, 0.25) !important;
    color: #ffffff !important;
}

/* Пагинация */
.opk-pagination,
.tv-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid rgba(15, 76, 108, 0.12);
    flex-wrap: wrap;
}

.opk-pagination a,
.tv-pagination a {
    color: #005b82;
    background: #f0f7fa;
    border: 1px solid rgba(0, 91, 130, 0.2);
    text-decoration: none;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 14.5px;
    transition: all 0.2s ease;
}

.opk-pagination a:hover,
.tv-pagination a:hover {
    background: #005b82;
    color: #ffffff;
}

.opk-page-form,
.tv-page-form {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 600;
    color: #475569;
}

.opk-page-form input,
.tv-page-form input {
    width: 70px;
    min-height: 44px;
    padding: 0 10px;
    text-align: center;
}

.opk-page-form button,
.tv-page-form button {
    background: #005b82;
    border: none;
    color: #ffffff;
    font-weight: 700;
    padding: 0 18px;
    min-height: 44px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.opk-page-form button:hover,
.tv-page-form button:hover {
    background: #0077aa;
}

/* Пустые состояния и предупреждения */
.opk-empty,
.tv-empty,
.opk-warning {
    text-align: center;
    padding: 36px 20px;
    border-radius: 18px;
    margin: 20px 0;
    font-size: 15.5px;
    font-weight: 600;
}

.opk-empty,
.tv-empty {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.opk-warning {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

/* Адаптивность для мобильных */
@media (max-width: 860px) {
    .opk-search,
    .tv-search {
        padding: 22px 18px;
        margin: 20px auto;
        border-radius: 18px;
    }

    .opk-filter__main,
    .tv-form__main {
        grid-template-columns: 1fr;
    }

    .opk-filter__bar {
        width: 100%;
    }

    .opk-filter__bar-actions {
        width: 100%;
        justify-content: stretch;
    }

    .opk-filter__bar-actions > * {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .opk-grid,
    .tv-grid {
        grid-template-columns: 1fr;
    }

    .opk-card,
    .tv-card {
        padding: 18px 16px;
        min-width: 0;
        box-sizing: border-box;
    }

    .opk-card__footer,
    .tv-card > div:last-child {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .opk-pagination,
    .tv-pagination {
        flex-direction: column;
        gap: 12px;
    }

    .opk-pagination a,
    .tv-pagination a {
        width: 100%;
        text-align: center;
    }
}

/* Быстрые фильтры для молодежи и студентов */
.tv-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 20px;
}

.tv-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334e68;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #cbd5e1;
}

.tv-chip:hover {
    background: #e2e8f0;
    color: #005b82;
    border-color: #94a3b8;
}

.tv-chip.is-active {
    background: #005b82;
    color: #ffffff;
    border-color: #005b82;
    box-shadow: 0 2px 8px rgba(0, 91, 130, 0.25);
}

.tv-filter-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 3px 12px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 13px;
    font-weight: 600;
}

