/* ═══════════════════════════════════════════════════════════════
   SOCIAL MEDIA HOOKS LIBRARY - /resources/social-media-hooks/
   Built by scripts/build-hooks.py, filtered by js/hooks.js.
   Sits on top of guide.css (hero, answer box, FAQ, related).
   ═══════════════════════════════════════════════════════════════ */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hk-intro { padding-top: clamp(2rem, 4vw, 3rem); }
.hk-intro .gd-answer { max-width: 52rem; }

.hk-rules { max-width: 52rem; margin: 2rem 0 2.5rem; }
.hk-rules h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
.hk-rules ol { padding-left: 1.25rem; display: grid; gap: 0.75rem; }
.hk-rules li { font-size: 1.0625rem; line-height: 1.7; color: rgba(255, 255, 255, 0.8); }
.hk-rules strong { color: #fff; }

/* Filters */
.hk-filters {
  position: sticky; top: 4.5rem; z-index: 20;
  padding: 1rem 0; margin-bottom: 1rem;
  background: rgba(0, 0, 0, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.hk-filter-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.hk-search { flex: 1 1 18rem; }
.hk-search input, .hk-vert select {
  width: 100%; height: 2.75rem; padding: 0 0.875rem;
  background: var(--surface); color: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
  font: inherit; font-size: 0.9375rem;
}
.hk-search input:focus, .hk-vert select:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.hk-vert { display: flex; align-items: center; gap: 0.625rem; flex: 0 1 20rem; }
.hk-vert span { font-family: var(--mono, monospace); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); white-space: nowrap; }
.hk-cats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.hk-cats button {
  padding: 0.4375rem 0.875rem; border-radius: 999px;
  border: 1px solid var(--border); background: transparent; color: rgba(255, 255, 255, 0.75);
  font: inherit; font-size: 0.8125rem; cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.hk-cats button:hover { border-color: var(--primary); color: #fff; }
.hk-cats button.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.hk-count { margin-top: 0.75rem; font-family: var(--mono, monospace); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); }

/* Library */
.hk-library { padding-bottom: clamp(3rem, 6vw, 5rem); }
.hk-group { margin-top: clamp(2rem, 4vw, 3rem); scroll-margin-top: 12rem; }
.hk-group-head { max-width: 46rem; margin-bottom: 1.25rem; }
.hk-group-head h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); }
.hk-group-head p { margin-top: 0.375rem; color: rgba(255, 255, 255, 0.65); line-height: 1.6; }
.hk-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .hk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .hk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.hk-card {
  display: flex; flex-direction: column; gap: 0.875rem;
  padding: 1.375rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color 0.25s;
  scroll-margin-top: 12rem;
}
.hk-card:hover, .hk-card:target { border-color: var(--primary); }
.hk-card header { display: flex; justify-content: space-between; gap: 0.5rem; }
.hk-cat, .hk-effort { font-family: var(--mono, monospace); font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; }
.hk-cat { color: var(--primary-lift, #7a7aff); }
.hk-effort { color: rgba(255, 255, 255, 0.6); }
.hk-line { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.3; color: #fff; }
.hk-why { font-size: 0.9375rem; line-height: 1.6; color: rgba(255, 255, 255, 0.68); }

.hk-ex { list-style: none; padding: 0.875rem 0 0; margin: 0; border-top: 1px solid var(--border); display: grid; gap: 0.625rem; }
.hk-ex li { font-size: 0.9375rem; line-height: 1.55; color: rgba(255, 255, 255, 0.88); }
.hk-ex-label { display: block; margin-bottom: 0.125rem; font-family: var(--mono, monospace); font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }

.hk-how summary {
  cursor: pointer; list-style: none;
  font-family: var(--mono, monospace); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary-lift, #7a7aff);
}
.hk-how summary::-webkit-details-marker { display: none; }
.hk-how summary::after { content: ' +'; }
.hk-how[open] summary::after { content: ' \2212'; }
.hk-how dl { margin-top: 0.75rem; display: grid; gap: 0.25rem 0; }
.hk-how dt { font-size: 0.75rem; font-weight: 600; color: #fff; margin-top: 0.5rem; }
.hk-how dd { margin: 0; font-size: 0.875rem; line-height: 1.55; color: rgba(255, 255, 255, 0.72); }

.hk-card footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding-top: 0.25rem; }
.hk-plats { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.hk-plats span { font-size: 0.6875rem; padding: 0.1875rem 0.5rem; border: 1px solid var(--border); border-radius: 999px; color: rgba(255, 255, 255, 0.6); }
.hk-copy {
  flex: none; padding: 0.4375rem 0.75rem; border-radius: var(--radius);
  border: 1px solid var(--primary); background: transparent; color: #fff;
  font: inherit; font-size: 0.75rem; cursor: pointer; transition: background 0.2s;
}
.hk-copy:hover { background: var(--primary); }
.hk-empty { margin-top: 2rem; color: rgba(255, 255, 255, 0.6); }

@media (max-width: 767px) {
  .hk-filters { position: static; }
  .hk-vert { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .hk-card, .hk-cats button, .hk-copy { transition: none; } }
.hk-card[hidden], .hk-group[hidden], .hk-ex li[hidden] { display: none; }
