/*
 * Lists of blogs on one panel (allblogs_new.php, bookmarks_new.php), loaded after blogs_new.css.
 *
 * blogs_new's column, alone and full width, on one colour (--sec: the author's for allblogs,
 * yours for bookmarks), with 4px corners like blog_new's panel. Under the heading: a search
 * (allblogs), the tags as chips in their own colours (faded until picked), a count, the pager
 * with a page jump, then blogs_new's posts. Buttons are chamfered like blogs_new's.
 */

/* ─── The panel ─────────────────────────────────────────────────────────── */

.bl-list .bl-col { border-radius: 4px; }

.bl-list .bl-col-head { height: auto; min-height: 38px; flex-wrap: wrap; row-gap: 8px; }
.bl-list .bl-col-title { font-size: 28px; }
.bl-list .bl-col-title a { text-decoration: none; }
.bl-list .bl-col-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.bl-head-actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* ─── Buttons ───────────────────────────────────────────────────────────── */

.bl-btn-ondark,
.bl-btn-uc,
.bl-btn-danger,
.bl-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: 'Saira Condensed', 'Arial Narrow', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease-out;
}
.bl-btn-ondark:disabled, .bl-btn-uc:disabled, .bl-btn-danger:disabled { opacity: 0.5; cursor: default; }

/* On the panel's colour */
.bl-btn-ondark { background: rgb(0 0 0 / 0.12); color: #fff !important; }
.bl-btn-ondark:hover { background: rgb(0 0 0 / 0.2); }

/* A darker shade of the panel's colour, as blog_new's Post */
.bl-btn-uc { background: color-mix(in oklch, var(--sec), black 28%); color: #fff !important; }
.bl-btn-uc:hover { background: color-mix(in oklch, var(--sec), black 40%); }

.bl-btn-danger { background: oklch(0.58 0.2 27); color: #fff !important; text-shadow: none; }
.bl-btn-danger:hover { background: oklch(0.5 0.2 27); }

.bl-btn-ghost { background: oklch(0.95 0.006 265); color: oklch(0.40 0.018 265) !important; }
.bl-btn-ghost:hover { background: oklch(0.91 0.008 265); color: oklch(0.21 0.02 265) !important; }

/* ─── Search (allblogs) ─────────────────────────────────────────────────── */

.bl-search { display: flex; gap: 6px; margin: 0 0 14px; text-shadow: none; }
.bl-search input[type=search] {
  flex: 1;
  min-width: 0;
  height: 36px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: var(--panel);
  box-shadow: var(--shadow, none);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
}
.bl-search input[type=search]::placeholder { color: var(--muted); }
.bl-search input[type=search]:focus { outline: none; box-shadow: inset 0 0 0 2px var(--text); }

/* ─── Tags: chips in their own colours, faded until picked ─────────────── */

.bl-chips-wrap { flex-wrap: wrap; height: auto; overflow: visible; row-gap: 5px; margin-bottom: 14px; }
.bl-chip-tag { background: var(--tc); color: #fff !important; opacity: 0.6; transition: opacity 150ms ease-out; }
.bl-chip-tag:hover { background: var(--tc); opacity: 0.85; }
.bl-chip-tag.is-on { background: var(--tc); opacity: 1; box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.8); }

/* ─── Count and pager ───────────────────────────────────────────────────── */

.bl-count { margin: 0 0 12px; color: var(--sky-dim); font-size: 13px; font-weight: 600; }

.bl-list .bl-pager { margin: 0 0 16px; }
.bl-list .bl-posts + .bl-empty + .bl-pager,
.bl-list .bl-posts + .bl-pager { margin: 22px 0 0; }

.bl-jump { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--sky-dim); font-family: var(--display); font-size: 16px; font-weight: 600; }
.bl-jump input {
  width: 52px;
  height: 32px;
  margin: 0;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: var(--sky-chip);
  box-shadow: none;
  color: var(--sky-text);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.bl-jump input::-webkit-inner-spin-button,
.bl-jump input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.bl-jump input:focus { outline: none; background: var(--sky-chip-hi); box-shadow: inset 0 0 0 2px var(--sky-text); }

/* ─── A post's note (bookmarks: when you saved it) ──────────────────────── */

.bl-post-note { white-space: nowrap; }
.bl-post-note::before { content: '\00B7'; margin-right: 6px; }

/* ─── Dialog (Delete all) ───────────────────────────────────────────────── */

.bl-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgb(10 12 20 / 0.6);
}
.bl-modal-overlay[hidden] { display: none; }
.bl-modal {
  box-sizing: border-box;
  width: min(400px, 100%);
  padding: 22px 22px 18px;
  background: oklch(0.98 0.01 265.35);
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  color: oklch(0.21 0.02 265);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}
.bl-modal h3 {
  margin: 0 0 6px;
  color: inherit;
  font-family: 'Saira Condensed', 'Arial Narrow', 'Inter', sans-serif !important;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bl-modal p { margin: 0 0 14px; color: oklch(0.40 0.018 265); }
.bl-modal-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.bl-modal-input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: inset 0 0 0 1px oklch(0.88 0.01 265);
  font-family: inherit;
  font-size: 14px;
}
.bl-modal-input:focus { outline: none; box-shadow: inset 0 0 0 2px oklch(0.58 0.2 27); }
.bl-modal-error { min-height: 20px; margin-top: 6px; color: oklch(0.55 0.2 27); font-size: 13px; }
.bl-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.bl-modal .bl-cut { --cut: 7px; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }

/* ─── Smaller screens ───────────────────────────────────────────────────── */

@media (max-width: 560px) {
  .bl-list .bl-col-title { font-size: 24px; }
  .bl-search .bl-btn-uc, .bl-search .bl-btn-ondark { padding: 0 12px; }
}
