/* ============================================================
   BOOKMARKS
   Mevcut .card-grid sisteminin paraleli — aynı hiyerarşi.
   _data/bookmarks/*.json'dan beslenir.
============================================================ */

/* En dış wrapper — .card-grid karşılığı */
.bookmark-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* Tek bir bookmark grubu — .card karşılığı */
.bookmark {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
}

/* Grup başlığı — .card-header karşılığı */
.bookmark-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
  font-weight: 600;
  color: #b4b4b4;
}

.bookmark-header-icon {
  flex-shrink: 0;
  font-size: 1.1em;
  line-height: 1;
}

/* Grup içeriği — .card-body karşılığı */
.bookmark-body {
  padding: 4px 0;
}

/* Tek bir bookmark satırı — .card-item0 karşılığı */
/* Link üstte, description altta — block layout */
.bookmark-item {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--surface-2);
  transition: background 0.15s;
}

.bookmark-item:last-child {
  border-bottom: none;
}

.bookmark-item:hover {
  background: var(--surface-2);
}

.bookmark-item-icon {
  display: inline-block;
  margin-right: 4px;
  font-size: 1em;
  line-height: 1;
}

/* Link — başlık gibi davranır, alt satıra düşer */
.bookmark-item-label {
  display: inline-block;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #c0c0c0;
  text-decoration: none;
}

.bookmark-item-label:hover {
  color: #fff;
  text-decoration: underline;
}

/* Açıklama — başlığın altında, daha sönük */
.bookmark-item-description {
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.5;
}

/* Description içinde markdown render edilen elementler */
.bookmark-item-description a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--border-subtle);
}

.bookmark-item-description a:hover {
  color: #fff;
  text-decoration-color: currentColor;
}

.bookmark-item-description strong {
  color: #e0e0e0;
}

.bookmark-item-description em {
  font-style: italic;
}