/* ============================================================
   Story Highlights — highlights.css
   Rząd wyróżnień na profilu + modal zarządzania (właściciel)
   ============================================================ */

.sh-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 12px 16px;
  -webkit-overflow-scrolling: touch;
}
.sh-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  width: 72px;
}
.sh-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--border, #dbdbdb);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--muted, #fafafa);
}
.sh-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.sh-circle__icon { font-size: 24px; }
.sh-circle--add {
  font-size: 28px;
  font-weight: 300;
  color: var(--muted-fg, #8a8f98);
}
.sh-title {
  font-size: 12px;
  color: var(--fg, #262626);
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

/* ---------- modal zarządzania ---------- */
.shm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: rgba(0,0,0,.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.shm-overlay.shm--open { display: flex; }
.shm-modal {
  width: 100%;
  max-width: 440px;
  max-height: 85dvh;
  background: #fff;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.shm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}
.shm-header__title { font-size: 16px; font-weight: 700; color: #262626; }
.shm-header__close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  color: #262626;
}
.shm-body {
  padding: 14px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.shm-list { display: flex; flex-direction: column; gap: 8px; }
.shm-list__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}
.shm-list__cover {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.shm-list__cover img { width: 100%; height: 100%; object-fit: cover; }
.shm-list__title { flex: 1; font-size: 14px; font-weight: 600; color: #262626; }
.shm-list__btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 8px;
  color: #0095f6;
  font-weight: 600;
}
.shm-list__btn--danger { color: #ed4956; }
.shm-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dbdbdb;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
}
.shm-input:focus { border-color: #0095f6; }
.shm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.shm-grid__item {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: #111;
  padding: 0;
}
.shm-grid__item img { width: 100%; height: 100%; object-fit: cover; }
.shm-grid__item.shm--selected { border-color: #0095f6; }
.shm-grid__item.shm--selected::after {
  content: '✓';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0095f6;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shm-grid__type {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  background: linear-gradient(135deg, #833AB4, #ee2a7b);
}
.shm-grid__date {
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.7);
}
.shm-footer {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid #eee;
}
.shm-btn {
  flex: 1;
  min-height: 44px;
  border: none;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.shm-btn--primary { background: #0095f6; color: #fff; }
.shm-btn--primary:disabled { opacity: .5; }
.shm-btn--secondary { background: #efefef; color: #262626; }
.shm-empty {
  text-align: center;
  color: #8a8f98;
  font-size: 13px;
  padding: 12px 0;
}
