/* tseh/components/cases/CaseCard.vue */

.case-card[data-v-c9265dac] {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  min-width: 0;
}
.case-card[data-v-c9265dac]:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.10);
}

/* ── Hero Image ── */
.case-card-image[data-v-c9265dac] {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  flex-shrink: 0;
  /* 🔒 Обложка кейса: правый клик («Сохранить изображение как…»), выделение
     и длинный тап на iOS отключены — это наша работа. */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.case-image-bg[data-v-c9265dac] {
  width: 100%;
  height: 100%;
  /* Картинка — настоящий <img> (alt + lazy), поэтому вместо background-size
     используем object-fit: cover: кадрирование такое же, как было у фона. */
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s;
}
.case-card:hover .case-image-bg[data-v-c9265dac] {
  transform: scale(1.04);
}
.case-image-placeholder[data-v-c9265dac] {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F5EDE6, #EDEDE8);
}
.placeholder-emoji[data-v-c9265dac] {
  font-size: 64px;
  opacity: 0.5;
}

/* ── Badges on image ── */
.badge[data-v-c9265dac] {
  position: absolute;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.badge-category[data-v-c9265dac] {
  top: 12px;
  left: 12px;
  background: #7C3AED;
  color: #fff;
}
.badge-niche[data-v-c9265dac] {
  top: 12px;
  right: 12px;
  background: rgba(28,26,22,0.75);
  color: #fff;
  backdrop-filter: blur(4px);
}
.badge-kpi[data-v-c9265dac] {
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  backdrop-filter: blur(4px);
}
.badge-status[data-v-c9265dac] {
  top: 52px;
  left: 12px;
  background: #F59E0B;
  color: #1C1A16;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.badge-geo[data-v-c9265dac] {
  bottom: 12px;
  left: 12px;
  background: rgba(16,185,129,0.92);
  color: #fff;
  backdrop-filter: blur(4px);
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Content ── */
.case-card-content[data-v-c9265dac] {
  padding: 20px 20px 0;
  flex: 1;
}
.case-title[data-v-c9265dac] {
  font-family: 'Inter Tight', sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  color: #1C1A16;
  margin: 0;
}
.case-desc[data-v-c9265dac] {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #6B7280;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Tags ── */
.tags-row[data-v-c9265dac] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.tag-pill[data-v-c9265dac] {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: #F5F0EB;
  color: #4B5563;
}

/* ── Ad budget (рекламный бюджет) ── */
.ad-budget[data-v-c9265dac] {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  font-size: 13px;
  line-height: 1.4;
}
.ad-budget-icon[data-v-c9265dac] {
  font-size: 16px;
  flex-shrink: 0;
}
.ad-budget-body[data-v-c9265dac] {
  min-width: 0;
}
.ad-budget-label[data-v-c9265dac] {
  color: #15803D;
  font-weight: 600;
}
.ad-budget-value[data-v-c9265dac] {
  color: #1C1A16;
  font-weight: 600;
}

/* ── Footer ── */
.case-card-footer[data-v-c9265dac] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  margin-top: 16px;
  background: #F9FAFB;
  border-top: 1px solid #F3F4F6;
}
.footer-client[data-v-c9265dac] {
  display: flex;
  align-items: center;
  gap: 10px;
}
.client-avatar[data-v-c9265dac] {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: #A7653C;
  color: #fff;
  flex-shrink: 0;
}
.client-name[data-v-c9265dac] {
  font-size: 13px;
  font-weight: 600;
  color: #1C1A16;
  line-height: 1.2;
}
.client-company[data-v-c9265dac] {
  font-size: 11px;
  color: #9CA3AF;
  line-height: 1.2;
  margin-top: 1px;
}
.btn-site[data-v-c9265dac] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: #F5F0EB;
  color: #4B5563;
  text-decoration: none;
  transition: background 0.2s;
  flex-shrink: 0;
}
.btn-site[data-v-c9265dac]:hover {
  background: #EDE6DE;
}

/* ── Red square label (красная плашка-квадрат) ── */
.red-square[data-v-c9265dac] {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 2px solid #DC2626;
  border-radius: 8px;
  color: #DC2626;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Inter Tight', sans-serif;
  background: #fff;
  line-height: 1.2;
  white-space: nowrap;
}

