/* ============================================================
   Reviews & Vacancies Cards — rv-cards.css
   Палітра: бірюзово-м'ятна + рожевий акцент
   ============================================================ */

/* --- CSS-змінні --- */
:root {
  --rv-ink:         #2a3a3e;
  --rv-paper:       #f0fafa;
  --rv-accent:      #e05577;
  --rv-teal:        #3dbfbf;
  --rv-teal-dark:   #2a9a9a;
  --rv-teal-light:  #e0f5f5;
  --rv-muted:       #7a9ea4;
  --rv-card:        #ffffff;
  --rv-border:      #c8e8e8;
  --rv-shadow:      rgba(61,191,191,0.12);
  --rv-shadow-hover:rgba(61,191,191,0.24);
  --rv-radius:      16px;
  --rv-radius-lg:   20px;
  --rv-radius-pill: 50px;
}

/* ============================================================
   ЗАГАЛЬНІ ОБГОРТКИ
   ============================================================ */
.rv-reviews-wrap,
.rv-vacancies-wrap {
  font-family: 'DM Sans', sans-serif;
  color: var(--rv-ink);
  max-width: 860px;
  margin: 0 auto 48px;
}

/* ============================================================
   ЗАГОЛОВОК ВІДГУКІВ + ЗАГАЛЬНИЙ РЕЙТИНГ
   ============================================================ */
.rv-reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--rv-teal);
}

.rv-reviews-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  color: var(--rv-ink);
}

.rv-overall-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--rv-teal);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--rv-radius-pill);
  box-shadow: 0 4px 16px var(--rv-shadow);
}

.rv-overall-score {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.rv-overall-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rv-votes {
  font-size: 11px;
  opacity: 0.8;
  letter-spacing: 0.5px;
}

/* ============================================================
   ЗІРКИ
   ============================================================ */
.rv-stars,
.rv-stars-lg {
  display: flex;
  gap: 2px;
}

.rv-stars .s       { color: var(--rv-accent); font-size: 14px; }
.rv-stars .s.empty { color: #d0e8e8; }

.rv-stars-lg .s         { color: #fff; font-size: 18px; }
.rv-stars-lg .s.empty   { color: rgba(255,255,255,0.3); }

/* Зірки у картках вакансій роботодавця */
.rv-employer-rating .rv-stars-lg .s       { color: var(--rv-accent); }
.rv-employer-rating .rv-stars-lg .s.empty { color: #d0e8e8; }

/* ============================================================
   СІТКА КАРТОК ВІДГУКІВ
   ============================================================ */
.rv-cards-grid {
  display: grid;
  gap: 20px;
}

/* ============================================================
   КАРТКА ВІДГУКУ
   ============================================================ */
.rv-review-card {
  background: var(--rv-card);
  border: 1px solid var(--rv-border);
  border-radius: var(--rv-radius);
  padding: 28px 28px 24px;
  position: relative;
  box-shadow: 0 4px 16px var(--rv-shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.rv-review-card:hover {
  box-shadow: 0 8px 28px var(--rv-shadow-hover);
  transform: translateY(-3px);
}

/* Кольорова ліва смуга */
.rv-review-card.rv-border-odd  { border-left: 5px solid var(--rv-accent); }
.rv-review-card.rv-border-even { border-left: 5px solid var(--rv-teal); }

/* Виділена картка */
.rv-review-featured {
  background: var(--rv-teal) !important;
  border: none !important;
  border-left: none !important;
  border-radius: var(--rv-radius-lg) !important;
  box-shadow: 0 8px 32px rgba(61,191,191,0.30) !important;
  color: #fff;
}

.rv-review-featured .rv-card-author strong { color: #fff; }
.rv-review-featured .rv-author-role        { color: rgba(255,255,255,0.7) !important; }
.rv-review-featured .rv-card-meta          { color: rgba(255,255,255,0.6) !important; }
.rv-review-featured .rv-card-tag           { border-color: rgba(255,255,255,0.5); color: #fff; }
.rv-review-featured .rv-review-text        { color: rgba(255,255,255,0.92); border-top-color: rgba(255,255,255,0.2); }
.rv-review-featured .rv-review-text::before{ color: #fff; }
.rv-review-featured .rv-stars .s          { color: #fff; }
.rv-review-featured .rv-stars .s.empty    { color: rgba(255,255,255,0.3); }
.rv-review-featured .rv-avatar            { border-color: rgba(255,255,255,0.35); }

/* Мітка картки — десктоп: абсолютна справа */
.rv-card-tag {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid var(--rv-border);
  border-radius: var(--rv-radius-pill);
  color: var(--rv-muted);
  background: var(--rv-card);
  white-space: nowrap;
  z-index: 1;
}

/* Шапка картки */
.rv-card-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* Аватар */
.rv-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid var(--rv-border);
}

/* Автор */
.rv-card-author {
  flex: 1;
}

.rv-card-author strong {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--rv-ink);
  margin-bottom: 2px;
}

.rv-author-role {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--rv-muted);
  margin-bottom: 4px;
}

.rv-card-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--rv-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.rv-source {
  background: var(--rv-teal-light);
  color: var(--rv-teal-dark);
  padding: 1px 7px;
  border-radius: var(--rv-radius-pill);
  font-size: 10px;
  font-weight: 500;
}

/* Текст відгуку */
.rv-review-text {
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  line-height: 1.78;
  color: #2e3e42;
  font-style: italic;
  padding-top: 14px;
  border-top: 1px dashed var(--rv-border);
}

.rv-review-text::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  color: var(--rv-teal);
  line-height: 0;
  vertical-align: -13px;
  margin-right: 4px;
  opacity: 0.5;
}

/* ============================================================
   СТАТИСТИКА
   ============================================================ */
.rv-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 36px 0;
}

.rv-stat-item {
  background: var(--rv-card);
  border: 1px solid var(--rv-border);
  border-radius: var(--rv-radius);
  padding: 24px 16px;
  text-align: center;
  box-shadow: 0 4px 14px var(--rv-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.rv-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 900;
  color: var(--rv-teal);
  line-height: 1;
}

.rv-stat-lbl {
  font-size: 11px;
  color: var(--rv-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
}

/* ============================================================
   ПЛЮСИ / МІНУСИ
   ============================================================ */
.rv-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 16px;
  margin: 32px 0;
  align-items: start;
}

/* Ігноруємо зайві p-теги які WordPress вставляє між шорткодами */
.rv-pros-cons > p,
.rv-pros-cons > br {
  display: none;
}

/* Явно розміщуємо блоки по колонках */
.rv-pros {
  grid-column: 1;
  grid-row: 1;
}

.rv-cons {
  grid-column: 2;
  grid-row: 1;
}

.rv-pros,
.rv-cons {
  padding: 22px 24px;
  border-radius: var(--rv-radius);
  box-shadow: 0 4px 14px var(--rv-shadow);
  min-width: 0;
}

.rv-pros { background: #e8f8f5; border-top: 3px solid var(--rv-teal); }
.rv-cons { background: #fdf0f3; border-top: 3px solid var(--rv-accent); }

.rv-pros h3 { color: var(--rv-teal-dark); font-family: 'Playfair Display', serif; font-size: 16px; margin: 0 0 12px; }
.rv-cons h3 { color: var(--rv-accent);    font-family: 'Playfair Display', serif; font-size: 16px; margin: 0 0 12px; }

.rv-pros ul,
.rv-cons ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rv-pros ul li,
.rv-cons ul li {
  font-size: 14px;
  line-height: 1.6;
  padding: 5px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--rv-ink);
}

.rv-pros ul li::before { content: '✓'; color: var(--rv-teal);   font-weight: 700; flex-shrink: 0; }
.rv-cons ul li::before { content: '–'; color: var(--rv-accent); font-weight: 700; flex-shrink: 0; }

/* ============================================================
   ЦИТАТА
   ============================================================ */
.rv-pullquote {
  margin: 36px 0;
  padding: 28px 36px;
  background: var(--rv-teal);
  border-radius: var(--rv-radius-lg);
  box-shadow: 0 8px 28px rgba(61,191,191,0.25);
  position: relative;
  text-align: center;
  overflow: hidden;
}

.rv-pullquote::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  font-size: 120px;
  color: #fff;
  position: absolute;
  top: -20px;
  left: 16px;
  line-height: 1;
  opacity: 0.15;
  pointer-events: none;
}

.rv-pullquote p {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-style: italic;
  line-height: 1.6;
  color: #fff;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ============================================================
   ВИСНОВОК
   ============================================================ */
.rv-verdict {
  position: relative;
  padding: 34px 36px;
  background: var(--rv-card);
  border: 2px solid var(--rv-teal);
  border-radius: var(--rv-radius-lg);
  box-shadow: 0 8px 28px var(--rv-shadow);
  margin: 40px 0;
}

.rv-verdict-label {
  position: absolute;
  top: -14px;
  left: 28px;
  background: var(--rv-teal);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: var(--rv-radius-pill);
}

.rv-verdict h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--rv-ink);
}

.rv-verdict-text {
  font-family: 'Lora', serif;
  font-size: 15.5px;
  line-height: 1.78;
  color: #2a3a3e;
}

/* ============================================================
   ЗАГОЛОВОК БЛОКУ ВАКАНСІЙ
   ============================================================ */
.rv-vacancies-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--rv-teal);
}

.rv-company-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--rv-radius);
  object-fit: contain;
  border: 1px solid var(--rv-border);
  background: #fff;
  padding: 4px;
}

.rv-vacancies-titles {
  flex: 1;
}

.rv-section-label {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rv-teal-dark);
  background: var(--rv-teal-light);
  border: 1px solid var(--rv-teal);
  border-radius: var(--rv-radius-pill);
  padding: 3px 12px;
  margin-bottom: 6px;
}

.rv-vacancies-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--rv-ink);
}

.rv-company-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--rv-muted);
  margin: 0;
}

/* ============================================================
   СІТКА ВАКАНСІЙ
   ============================================================ */
.rv-vacancies-grid {
  display: grid;
  gap: 16px;
}

/* ============================================================
   КАРТКА ВАКАНСІЇ
   ============================================================ */
.rv-vacancy-card {
  background: var(--rv-card);
  border: 1px solid var(--rv-border);
  border-radius: var(--rv-radius-lg);
  padding: 26px 28px 22px;
  position: relative;
  box-shadow: 0 4px 16px var(--rv-shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  border-left: 5px solid var(--rv-teal);
}

.rv-vacancy-card:hover {
  box-shadow: 0 10px 32px var(--rv-shadow-hover);
  transform: translateY(-3px);
}

/* Бейдж */
.rv-vacancy-badge {
  position: absolute;
  top: 18px;
  right: 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--rv-radius-pill);
}

.badge-hot     { background: #fff0e8; color: #c85a20; border: 1px solid #f0c0a0; }
.badge-new     { background: var(--rv-teal-light); color: var(--rv-teal-dark); border: 1px solid var(--rv-teal); }
.badge-remote  { background: #e8f0ff; color: #2a4a9a; border: 1px solid #b0c4f0; }
.badge-top     { background: #fdf0f3; color: var(--rv-accent); border: 1px solid #f0c0cc; }
.badge-default { background: var(--rv-teal-light); color: var(--rv-teal-dark); border: 1px solid var(--rv-teal); }

/* Заголовок вакансії */
.rv-vacancy-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.rv-vacancy-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--rv-teal-light);
  border-radius: var(--rv-radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rv-vacancy-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--rv-ink);
  margin: 0 0 4px;
  line-height: 1.25;
  padding-right: 80px; /* відступ від бейджу */
}

.rv-vacancy-company {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--rv-teal-dark);
  font-weight: 500;
}

/* Мета-інфо */
.rv-vacancy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 16px;
}

.rv-vacancy-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--rv-muted);
}

.rv-meta-icon {
  font-size: 14px;
  line-height: 1;
}

/* Опис */
.rv-vacancy-desc {
  font-family: 'Lora', serif;
  font-size: 14.5px;
  line-height: 1.72;
  color: #2e3e42;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: var(--rv-paper);
  border-radius: var(--rv-radius);
  border-left: 3px solid var(--rv-teal-light);
}

/* Теги */
.rv-vacancy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.rv-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--rv-teal-dark);
  background: var(--rv-teal-light);
  border: 1px solid var(--rv-border);
  padding: 4px 12px;
  border-radius: var(--rv-radius-pill);
}

/* Футер з кнопкою */
.rv-vacancy-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px dashed var(--rv-border);
}

/* Кнопка */
.rv-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rv-teal);
  color: #fff !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 26px;
  border-radius: var(--rv-radius-pill);
  text-decoration: none !important;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(61,191,191,0.35);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.rv-apply-btn:hover {
  background: var(--rv-teal-dark);
  box-shadow: 0 6px 20px rgba(61,191,191,0.45);
  transform: translateY(-2px);
  color: #fff !important;
}

.rv-btn-arrow {
  font-size: 16px;
  transition: transform 0.2s ease;
}

.rv-apply-btn:hover .rv-btn-arrow {
  transform: translateX(4px);
}

/* ============================================================
   РЕЙТИНГ РОБОТОДАВЦЯ
   ============================================================ */
.rv-employer-rating {
  background: var(--rv-card);
  border: 1px solid var(--rv-border);
  border-radius: var(--rv-radius-lg);
  padding: 28px;
  box-shadow: 0 4px 16px var(--rv-shadow);
  margin: 32px 0;
}

.rv-employer-rating-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}

.rv-er-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-right: 28px;
  border-right: 1px solid var(--rv-border);
}

.rv-er-score {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 900;
  color: var(--rv-teal);
  line-height: 1;
}

.rv-er-reviews {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--rv-muted);
  text-align: center;
}

.rv-er-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rv-er-bar-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rv-er-bar-label {
  display: flex;
  justify-content: space-between;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--rv-ink);
}

.rv-er-bar-pct {
  font-weight: 600;
  color: var(--rv-teal-dark);
}

.rv-er-bar-track {
  width: 100%;
  height: 8px;
  background: var(--rv-teal-light);
  border-radius: var(--rv-radius-pill);
  overflow: hidden;
}

.rv-er-bar-fill {
  height: 100%;
  background: var(--rv-teal);
  border-radius: var(--rv-radius-pill);
  transition: width 0.6s ease;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .rv-stats-grid     { grid-template-columns: 1fr 1fr; }
  .rv-pros-cons      { grid-template-columns: 1fr; }
  .rv-pros           { grid-column: 1; grid-row: 1; }
  .rv-cons           { grid-column: 1; grid-row: 2; }
  .rv-reviews-header { flex-direction: column; align-items: flex-start; }
  .rv-employer-rating-grid { grid-template-columns: 1fr; }
  .rv-er-main        { border-right: none; border-bottom: 1px solid var(--rv-border); padding-right: 0; padding-bottom: 20px; flex-direction: row; gap: 16px; }
  .rv-verdict        { padding: 28px 22px; }
  .rv-pullquote      { padding: 22px 22px; }
  .rv-vacancy-card   { padding: 22px 20px 18px; }
  .rv-vacancy-title  { padding-right: 0; margin-bottom: 30px; }
  .rv-vacancy-badge  { top: auto; right: auto; position: static; display: inline-block; margin-bottom: 8px; }

  /* Тег відгуку: на мобільному — статичний, займає повний рядок зверху */
  .rv-card-tag {
    position: static;
    display: inline-block;
    width: 100%;
    flex: 0 0 100%;
    margin-bottom: 12px;
    text-align: left;
    background: var(--rv-teal-light);
    border-color: var(--rv-border);
    color: var(--rv-teal-dark);
  }

  .rv-review-featured .rv-card-tag {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
  }
}

@media (max-width: 420px) {
  .rv-stats-grid { grid-template-columns: 1fr; }
}
