/* bookmarks.css — звёздочка-закладка (B7) */

.bookmark-star {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.08);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.bookmark-star:hover {
  background: #fff;
  transform: translateY(-1px);
}

.bookmark-star:focus-visible {
  outline: 2px solid var(--bk-accent, #c2986b);
  outline-offset: 2px;
}

.bookmark-star svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #6a6660;
  stroke-width: 1.6;
  transition: fill 0.18s ease, stroke 0.18s ease, transform 0.22s ease;
}

.bookmark-star.is-active {
  background: var(--bk-accent, #c2986b);
  border-color: var(--bk-accent, #c2986b);
}

.bookmark-star.is-active svg {
  fill: #fff;
  stroke: #fff;
  transform: scale(1.06);
}

/* В углу карточки покупки */
.purchase-card { position: relative; }
.purchase-card .bookmark-star {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

/* В углу карточки сценария */
.scenario-card { position: relative; }
.scenario-card .bookmark-star {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

/* Звёздочка на lifestyle-card сценария */
.lifestyle-card { position: relative; }
.lifestyle-card .bookmark-on-strip {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
}

/* Звёздочка автоинъектированная на изображение карточки идеи (формулы) */
.formula-card,
.gap-formula-card { position: relative; }
.formula-card .bookmark-on-image,
.gap-formula-card .bookmark-on-image {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  color: #6a6660;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.formula-card .bookmark-on-image:hover,
.gap-formula-card .bookmark-on-image:hover {
  background: #fff;
  transform: translateY(-1px);
}
.formula-card .bookmark-on-image .star-full,
.gap-formula-card .bookmark-on-image .star-full { display: none; }
.formula-card .bookmark-on-image.is-active,
.gap-formula-card .bookmark-on-image.is-active {
  background: #c2986b;
  border-color: #c2986b;
  color: #fff;
}
.formula-card .bookmark-on-image.is-active .star-empty,
.gap-formula-card .bookmark-on-image.is-active .star-empty { display: none; }
.formula-card .bookmark-on-image.is-active .star-full,
.gap-formula-card .bookmark-on-image.is-active .star-full { display: inline; }

/* В строке секции — inline-вариант */
.bookmark-star.is-inline {
  width: 28px;
  height: 28px;
  box-shadow: none;
  background: transparent;
  border-color: transparent;
}
.bookmark-star.is-inline:hover {
  background: rgba(0, 0, 0, 0.05);
}
.bookmark-star.is-inline svg { width: 16px; height: 16px; }

/* Страница /moi-zakladki */
.bookmarks-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.bookmarks-page h1 {
  font-size: 28px;
  margin: 0 0 8px;
  font-weight: 500;
}
.bookmarks-page .bk-lead {
  color: #6a6660;
  margin: 0 0 24px;
  font-size: 15px;
  max-width: 640px;
}
.bookmarks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.bookmarks-empty {
  text-align: center;
  padding: 48px 16px;
  color: #6a6660;
  border: 1px dashed rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  background: #fbf8f3;
}
.bk-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.bk-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
.bk-card-image {
  aspect-ratio: 4 / 5;
  background: #f4efe6;
  background-size: cover;
  background-position: center;
}
.bk-card-body {
  padding: 12px 14px 14px;
}
.bk-card-type {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a39a8c;
  margin: 0 0 4px;
}
.bk-card-title {
  font-size: 15px;
  line-height: 1.3;
  margin: 0 0 8px;
  font-weight: 500;
}
.bk-card-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: #6a6660;
  padding: 0;
  line-height: 1;
}
.bk-card-remove:hover { background: #fff; color: #1a1a1a; }

.bk-filters {
  display: flex;
  gap: 6px;
  margin: 0 0 20px;
  flex-wrap: wrap;
}
.bk-filter {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  cursor: pointer;
  color: #4a4640;
}
.bk-filter.is-active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}
