/* =====================================================================
   BOOKMARKS MODULE — favorites / saved items
   ===================================================================== */

.bm-star {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  font-size: 1.3rem;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1.5px solid rgba(251, 191, 36, 0.4);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  flex-shrink: 0;
}
.bm-star:hover {
  background: rgba(251, 191, 36, 0.22);
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.4);
}
.bm-star.saved {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #fff;
  border-color: #d97706;
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.55);
}

/* Bookmarks screen */
#bookmarks-body { padding: 14px 14px 28px; }

.bm-item {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 10px;
}
.bm-item-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid #fbbf24;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.bm-item-main:hover {
  background: var(--surface2);
  border-color: rgba(251, 191, 36, 0.45);
  transform: translateY(-1px);
}
.bm-item-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 38px;
  text-align: center;
}
.bm-item-text { flex: 1; min-width: 0; }
.bm-item-title {
  font-weight: 700; font-size: 0.98rem;
  color: var(--text);
  margin-bottom: 3px;
}
.bm-item-subtitle {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.5;
  margin-bottom: 4px;
}
.bm-item-type {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(251, 191, 36, 0.15);
  padding: 2px 8px;
  border-radius: 999px;
}
.bm-item-chev {
  color: var(--text3);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.bm-item-remove {
  flex-shrink: 0;
  width: 44px;
  background: rgba(231, 76, 60, 0.08);
  border: 1px solid rgba(231, 76, 60, 0.25);
  color: #e74c3c;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.05rem;
}
.bm-item-remove:hover {
  background: rgba(231, 76, 60, 0.2);
  border-color: #e74c3c;
}

/* Empty state */
.bm-empty {
  padding: 60px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 16px;
}
.bm-empty-icon { font-size: 3.5rem; margin-bottom: 14px; }
.bm-empty-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.bm-empty-sub {
  font-size: 0.86rem;
  color: var(--text2);
  line-height: 1.55;
  max-width: 380px;
  margin: 0 auto;
}

/* Home mode-card variant */
.mode-card.bookmarks-cta {
  border-color: rgba(251, 191, 36, 0.40);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(245, 158, 11, 0.05));
}
.mode-card.bookmarks-cta:hover {
  border-color: rgba(251, 191, 36, 0.60);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.14), rgba(245, 158, 11, 0.08));
}
.mode-card.bookmarks-cta .mode-icon {
  background: radial-gradient(circle at 30% 30%, rgba(251, 191, 36, 0.30), rgba(245, 158, 11, 0.18));
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.28);
}

/* Toast */
.bm-toast {
  position: fixed;
  bottom: 160px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 18px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  border-radius: 999px;
  z-index: 10000;
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.45);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  font-family: 'Inter', 'Noto Serif KR', sans-serif;
}
.bm-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
