/* ===== VARIANT SWITCHER (з compiled-v5) ===== */
.variant-switcher {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 2px 0 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.variant-switcher::-webkit-scrollbar { display: none; }

.variant-btn {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg2);
  color: var(--text3);
  font-size: 8px;
  font-weight: 500;
  transition: all 0.2s;
  border: 2px solid transparent;
  position: relative;
}
.variant-btn .v-icon { font-size: 16px; line-height: 1; }
.variant-btn:hover { border-color: var(--coral-bg); color: var(--text); }
.variant-btn.active {
  border-color: var(--coral);
  background: var(--coral-bg);
  color: var(--coral);
  font-weight: 700;
}
.variant-btn .v-num {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.variant-panel { display: none; }
.variant-panel.active {
  display: block;
  animation: bounceIn 0.25s ease;
}

/* ===== VARIANT 1: Classic Cards ===== */
.v1-card {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  cursor: pointer;
}
.v1-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.v1-card .v1-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.v1-card .v1-company { font-size: 13px; color: var(--text2); font-weight: 500; }
.v1-card .v1-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.v1-card .v1-salary { font-size: 15px; font-weight: 700; color: var(--coral); }
.v1-card .v1-location { font-size: 12px; color: var(--text3); }
.v1-card .v1-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* ===== VARIANT 2: Compact Row ===== */
.v2-row {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.v2-row:hover { background: var(--bg2); }
.v2-row .v2-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--coral-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.v2-row .v2-info { flex: 1; min-width: 0; }
.v2-row .v2-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v2-row .v2-meta { font-size: 11px; color: var(--text2); }
.v2-row .v2-salary { font-weight: 700; color: var(--coral); font-size: 14px; white-space: nowrap; }

/* ===== VARIANT 3: Grid Cards ===== */
.v3-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (min-width: 768px) { .v3-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .v3-grid { grid-template-columns: repeat(4, 1fr); } }
.v3-grid-item {
  padding: 14px 12px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.v3-grid-item:hover { transform: translateY(-2px); }
.v3-grid-item .v3-hot {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--coral);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 0 var(--radius) 0 var(--radius-sm);
}
.v3-grid-item .v3-icon { font-size: 24px; margin-bottom: 6px; }
.v3-grid-item .v3-title { font-size: 13px; font-weight: 700; line-height: 1.3; margin-bottom: 2px; }
.v3-grid-item .v3-salary { font-size: 14px; font-weight: 700; color: var(--coral); margin-top: 4px; }
.v3-grid-item .v3-location { font-size: 10px; color: var(--text3); margin-top: 2px; }

/* ===== VARIANT 4: Minimal List ===== */
.v4-list { display: flex; flex-direction: column; }
.v4-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.15s;
}
.v4-item:last-child { border-bottom: none; }
.v4-item:hover { padding-left: 4px; }
.v4-item .v4-left { flex: 1; min-width: 0; }
.v4-item .v4-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v4-item .v4-sub { font-size: 11px; color: var(--text2); margin-top: 1px; }
.v4-item .v4-salary { font-size: 13px; font-weight: 700; color: var(--coral); white-space: nowrap; margin-left: 8px; }

/* ===== VARIANT 5: Featured / Hero Cards ===== */
.v5-card {
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--card), var(--coral-bg));
  border: 1px solid var(--coral);
  box-shadow: 0 4px 20px rgba(212,85,62,0.12);
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.v5-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(212,85,62,0.2); }
.v5-card .v5-badge-top {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  background: var(--coral);
  color: #fff;
  margin-bottom: 8px;
}
.v5-card .v5-title { font-size: 18px; font-weight: 800; margin-bottom: 2px; }
.v5-card .v5-company { font-size: 13px; color: var(--text2); font-weight: 500; margin-bottom: 6px; }
.v5-card .v5-salary { font-size: 20px; font-weight: 800; color: var(--coral); margin-bottom: 4px; }
.v5-card .v5-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.v5-card .v5-meta span {
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 10px;
  font-weight: 600;
  background: var(--bg2);
  color: var(--text2);
}
.v5-card .v5-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* ===== VARIANT 6: Detail ===== */
.v6-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.v6-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.v6-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  position: relative;
}
.fav-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: all .2s;
  color: #999;
}
.fav-heart:hover { transform: scale(1.15); color: #e74c3c; }
.fav-heart.liked { color: #e74c3c; background: rgba(255,235,235,.95); }
.v6-details-card { padding: 16px; }
.v6-title { font-size: 20px; font-weight: 800; margin-bottom: 2px; }
.v6-company { font-size: 14px; color: var(--text2); font-weight: 500; margin-bottom: 4px; }
.v6-benefits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.v6-benefits .v6-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: var(--coral-bg);
  color: var(--coral);
}
.v6-salary { font-size: 22px; font-weight: 900; color: var(--coral); margin-top: 8px; }
.v6-date { font-size: 12px; color: var(--text3); margin-top: 6px; }
.v6-desc { font-size: 14px; line-height: 1.6; margin: 12px 0; color: var(--text2); }
.v6-cta {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  background: var(--coral);
  color: #fff;
  border: none;
  font-family: var(--font);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .2s;
}
.v6-cta:hover { background: var(--coral-dark); }
@media(min-width: 768px) {
  .v6-card { flex-direction: row; align-items: stretch; }
  .v6-card .v6-photo { flex: 0 0 45%; max-height: 400px; height: auto; }
  .v6-card .v6-details-card { flex: 1; padding: 20px; display: flex; flex-direction: column; justify-content: center; }
  .v6-split { display: flex; align-items: stretch; }
  .v6-split .v6-photo { flex: 0 0 45%; max-height: 400px; height: auto; }
  .v6-split .v6-details { flex: 1; padding: 24px; }
}

/* ===== VARIANT 7: Gallery ===== */
.v7-gallery { display: flex; flex-direction: column; gap: 16px; }
.v7-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s;
}
.v7-card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.1); }
.v7-card .v7-img {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}
.v7-card .v7-img .v7-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.v7-card .v7-body { padding: 12px 14px 14px; }
.v7-card .v7-title { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.v7-card .v7-salary { font-weight: 700; color: var(--coral); font-size: 15px; }
.v7-card .v7-meta { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.v7-card .v7-meta span {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  background: var(--bg2);
  color: var(--text2);
}

/* ===== VARIANT 8: Timeline ===== */
.v8-timeline { position: relative; padding-left: 28px; }
.v8-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}
.v8-item {
  position: relative;
  padding: 12px 0 12px 16px;
  cursor: pointer;
  transition: all 0.2s;
  border-left: 3px solid transparent;
  margin-left: -3px;
}
.v8-item:hover { border-left-color: var(--coral); background: var(--bg2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.v8-item .v8-dot {
  position: absolute;
  left: -24px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--coral);
  border: 3px solid var(--bg);
  z-index: 1;
}
.dark .v8-item .v8-dot { border-color: var(--bg); }
.v8-item .v8-time { font-size: 10px; color: var(--text3); font-weight: 500; margin-bottom: 2px; }
.v8-item .v8-title { font-size: 14px; font-weight: 700; }
.v8-item .v8-company { font-size: 12px; color: var(--text2); font-weight: 500; }
.v8-item .v8-salary { font-size: 13px; font-weight: 700; color: var(--coral); margin-top: 2px; }
.v8-item .v8-tags { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.v8-item .v8-tags span {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 9px;
  background: var(--coral-bg);
  color: var(--coral);
  font-weight: 600;
}

/* ===== STICKY TOP (для варіантів) ===== */
.sticky-top {
  position: sticky;
  top: var(--header-h);
  z-index: 100;
  background: var(--bg);
  padding: 4px 0 4px;
  border-bottom: 1px solid var(--border);
  margin: 0;
  transition: transform .3s, opacity .3s;
}
.sticky-top.hidden { transform: translateY(-100%); opacity: 0; pointer-events: none; }

/* ===== AD BLOCKS (всередині варіантів) ===== */
.ad-block {
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 12px 0;
  background: var(--ad-bg);
  border: 1px solid rgba(194,58,41,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.ad-block:hover { background: var(--coral-bg); border-color: var(--coral); }
.ad-block .ad-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(212,85,62,0.12);
  padding: 2px 8px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 4px;
}
.ad-block .ad-title { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.ad-block .ad-text { font-size: 12px; color: var(--text2); line-height: 1.4; }
.ad-block .ad-icon {
  font-size: 32px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212,85,62,0.08);
  border-radius: 12px;
}

.ad-native {
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 12px 0;
  background: var(--ad-bg);
  border: 1px solid rgba(194,58,41,0.15);
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.ad-native:hover { background: var(--coral-bg); border-color: var(--coral); }
.ad-native .ad-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(212,85,62,0.12);
  padding: 2px 8px;
  border-radius: 8px;
  display: inline-block;
  align-self: flex-start;
}
.ad-native .ad-native-text { font-size: 13px; font-weight: 500; color: var(--text); line-height: 1.4; }
.ad-native .ad-native-cta { font-size: 13px; font-weight: 700; color: var(--coral); }
