/* ============================================================
   СТРАНИЦА ВАКАНСИЙ (vacancies.css) — чистый, без !important
   ============================================================ */
.vacancies-page { max-width: 1400px; margin: 0 auto; padding: 24px 20px 60px; }
.vacancies-header { margin-bottom: 24px; }
.vacancies-header h1 { font-size: 28px; color: #1a2332; margin: 0 0 6px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.vacancies-header p { color: #7a8a9a; font-size: 15px; margin: 0; }
.vacancies-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.vacancies-main { min-width: 0; }
.results-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.results-count { font-size: 15px; color: #5a6a7a; }
.results-count strong { color: #1a2332; font-weight: 700; font-size: 17px; }
.vacancies-list { display: flex; flex-direction: column; gap: 12px; }

/* ===== КАРТОЧКА ВАКАНСИИ ===== */
.vacancy-card {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    background: white;
    border: 1px solid #eef0f2;
    border-radius: 14px;
    padding: 20px 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s;
    position: relative;
}
.vacancy-card:hover {
    border-color: #4F46E5;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.08);
    transform: translateY(-1px);
}
.vacancy-card-content { flex: 1; min-width: 0; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.vacancy-title { font-size: 20px; color: #1a2332; margin: 0 0 6px; font-weight: 700; line-height: 1.3; }
.vacancy-title a { color: inherit; text-decoration: none; }
.vacancy-title a:hover { color: #4F46E5; }

/* ===== КОМПАНИЯ (иконка + текст рядом) ===== */
.vacancy-company {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    font-size: 14px;
    color: #4F46E5;
    font-weight: 600;
    margin: 0 0 12px;
}
.vacancy-company svg { color: #4F46E5; flex-shrink: 0; width: 14px; height: 14px; display: inline-block; }
.vacancy-company a { color: inherit; text-decoration: none; flex: 0 1 auto; width: auto; display: inline-block; }
.vacancy-company a:hover { text-decoration: underline; }

/* ===== МЕТА-ДАННЫЕ (все иконки слева) ===== */
.vacancy-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #7a8a9a;
}
.vacancy-meta-item { display: inline-flex; align-items: center; gap: 4px; }
.vacancy-meta-item svg { flex-shrink: 0; }
.vacancy-meta-item.city svg { color: #3498db; }
.vacancy-meta-item.experience svg { color: #8e44ad; }
.vacancy-meta-item.employment svg { color: #27ae60; }
.vacancy-meta-item.remote { color: #27ae60; font-weight: 600; }
.vacancy-meta-item.remote svg { color: #27ae60; }

/* ===== ЗАРПЛАТА ===== */
.vacancy-salary {
    font-size: 18px;
    color: #1a2332;
    background: #e8f8ee;
    font-weight: 800;
    margin-top: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    display: inline-block;
    border-top: none;
}

/* ===== ДАТА ВНИЗУ ===== */
.vacancy-date-bottom {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #7a8a9a;
    margin-top: 12px;
}
.vacancy-date-bottom svg { color: #7a8a9a; }

/* ===== БЕЙДЖ «НОВАЯ» ===== */
.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #ecfdf5;
    color: #10B981;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
}

/* ===== КНОПКИ ===== */
.vacancy-card-actions { display: flex; align-items: flex-start; gap: 8px; flex-shrink: 0; padding-top: 4px; }
.btn-respond {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #4F46E5;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}
.btn-respond:hover { background: #4338CA; transform: translateY(-1px); }
.btn-respond svg { flex-shrink: 0; }
.btn-respond-guest {
    background: white;
    color: #4F46E5;
    border: 1.5px solid #4F46E5;
    flex: none;
    width: auto;
}
.btn-respond-guest:hover { background: #f0f0ff; }

.btn-fav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border: 1.5px solid #eef0f2;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s;
    color: #7a8a9a;
    flex-shrink: 0;
}
.btn-fav-icon:hover { border-color: #ef4444; color: #ef4444; }
.btn-fav-icon.active { border-color: #ef4444; color: #ef4444; background: #fef2f2; }
.btn-fav-icon svg { width: 18px; height: 18px; }

/* ===== ВЕРИФИЦИРОВАННЫЙ ===== */
.verified-badge { color: #2ecc71; vertical-align: -2px; margin-left: 2px; }

/* ===== ПУСТОЕ СОСТОЯНИЕ ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    border: 2px dashed #eef0f2;
}
.empty-icon { margin-bottom: 16px; line-height: 1; display: flex; justify-content: center; }
.empty-state h3 { color: #1a2332; font-size: 20px; margin: 0 0 8px; }
.empty-state p { color: #7a8a9a; margin: 0 0 20px; font-size: 15px; }
.empty-state .btn { display: inline-block; padding: 12px 32px; background: #4F46E5; color: white; text-decoration: none; border-radius: 8px; font-weight: 600; font-size: 14px; }

/* ===== МОБИЛЬНАЯ ВЕРСИЯ ===== */
@media (max-width: 992px) {
    .vacancies-page { padding: 16px 16px 40px; }
    .vacancies-header h1 { font-size: 22px; }
    .vacancies-header p { font-size: 14px; }
    .vacancies-layout { grid-template-columns: 1fr; gap: 16px; }
    .results-toolbar { flex-direction: column; align-items: stretch; }
    .vacancy-card { padding: 16px; border-radius: 12px; flex-direction: column; }
    .vacancy-title { font-size: 17px; }
    .vacancy-meta { font-size: 12px; gap: 6px 12px; }
    .vacancy-salary { font-size: 16px; padding: 6px 12px; }
    .vacancy-card-actions { width: 100%; justify-content: flex-start; padding-top: 12px; border-top: 1px solid #f0f2f5; }
    .btn-respond { flex: 1; justify-content: center; }
    .btn-respond-guest { flex: none; width: auto; }
}
@media (max-width: 480px) {
    .vacancy-card { padding: 14px; }
    .vacancy-title { font-size: 16px; }
    .vacancy-company { font-size: 13px; }
    .vacancy-salary { font-size: 15px; }
}
