
/* Stories bookmarks */

.stories-bookmark-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  margin: 12px 0;
  padding: 10px 16px;
  border: 1px solid var(--stories-border, #dbe2ea);
  border-radius: 999px;
  background: var(--stories-surface, #ffffff);
  color: var(--stories-text, #172033);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.stories-bookmark-button:hover {
  background: var(--stories-surface-hover, #f1f5f9);
}

.stories-bookmark-button.is-saved {
  border-color: var(--stories-accent, #2563eb);
  background: var(--stories-accent, #2563eb);
  color: #ffffff;
}

.stories-bookmarks-list {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.stories-bookmark-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--stories-border, #e2e8f0);
  border-radius: 14px;
  background: var(--stories-surface, #ffffff);
}

.stories-bookmark-title {
  color: var(--stories-text, #172033);
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.stories-bookmark-title:hover {
  text-decoration: underline;
}

.stories-bookmark-remove {
  flex-shrink: 0;
  padding: 8px 12px;
  border: 1px solid var(--stories-border, #dbe2ea);
  border-radius: 999px;
  background: transparent;
  color: var(--stories-muted, #64748b);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.stories-bookmark-remove:hover {
  color: #b91c1c;
  border-color: #b91c1c;
}

.stories-bookmarks-empty {
  padding: 20px;
  border-radius: 14px;
  background: var(--stories-surface, #f8fafc);
  color: var(--stories-muted, #64748b);
  line-height: 1.6;
}

.stories-bookmark-button:focus-visible,
.stories-bookmark-remove:focus-visible,
.stories-bookmark-title:focus-visible {
  outline: 2px solid var(--stories-accent, #2563eb);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .stories-bookmark-item {
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
  }

  .stories-bookmark-remove {
    padding: 7px 10px;
  }
}
