/* ── BibleChecker Words Feed — Instagram-style ── */

/* Shell */
.wf-shell { max-width: 480px; margin: 0 auto; }
.wf-list  { display: flex; flex-direction: column; }

/* ── Stories row ─────────────────────────────── */
.wf-stories-row {
  display: flex;
  gap: 4px;
  padding: 10px 12px 12px;
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid #efefef;
  scrollbar-width: none;
}
.wf-stories-row::-webkit-scrollbar { display: none; }

.wf-story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border: none;
  background: transparent;
  padding: 0 6px;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.wf-story-ring {
  width: 66px; height: 66px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-sizing: border-box;
}
.wf-story-ring--you {
  background: #dbdbdb;
}

.wf-story-avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #fff;
  display: block;
  box-sizing: border-box;
}

.wf-story-you-icon {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: #fafafa;
  border: 2.5px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.wf-story-you-icon svg {
  width: 28px; height: 28px;
  stroke: #262626;
}

.wf-story-name {
  font-size: .7rem;
  color: #262626;
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

/* ── Post card ───────────────────────────────── */
.wf-card {
  background: #fff;
  border-bottom: 1px solid #efefef;
}

/* Post header */
.wf-post-header {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  gap: 10px;
}
.wf-post-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #efefef;
  background: #e8f3ef;
  flex-shrink: 0;
}
.wf-post-meta { flex: 1; min-width: 0; }
.wf-post-name {
  display: block;
  font-size: .895rem;
  font-weight: 700;
  color: #262626;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-size: .895rem;
  font-weight: 700;
}
.wf-post-topic {
  display: block;
  font-size: .78rem;
  color: #737373;
  margin-top: 1px;
}
.wf-post-more {
  border: none;
  background: transparent;
  padding: 4px 6px;
  font-size: 1.1rem;
  color: #262626;
  cursor: pointer;
  letter-spacing: .1em;
  line-height: 1;
}

/* Verse area (the "photo" equivalent) */
.wf-post-verse {
  background: linear-gradient(160deg, #f0faf7 0%, #e4f4ef 100%);
  padding: 22px 18px 20px;
}
.wf-verse-ref {
  font-size: .8rem;
  font-weight: 700;
  color: #0f8f7c;
  margin-bottom: 10px;
  letter-spacing: .01em;
}
.wf-verse-text {
  font-size: 1.06rem;
  line-height: 1.72;
  color: #1a1a1a;
  margin: 0;
}
/* Script-specific font sizes */
.wf-verse-text.mm { font-family: 'Padauk', sans-serif; font-size: 1.1rem; }
.wf-verse-text.thai { font-family: 'Sarabun', sans-serif; }
.wf-verse-text.ko { font-family: 'Noto Sans KR', sans-serif; }

/* Action bar */
.wf-post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 2px;
}
.wf-actions-left { display: flex; gap: 4px; align-items: center; }

.wf-action {
  border: none;
  background: transparent;
  padding: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #262626;
  -webkit-tap-highlight-color: transparent;
  transition: transform .1s;
  border-radius: 50%;
}
.wf-action:active { transform: scale(.82); }
.wf-action svg {
  width: 25px; height: 25px;
  display: block;
}

/* Love — filled red when active */
.wf-action-love svg       { fill: none; stroke: #262626; }
.wf-action-love.is-active svg { fill: #e63946; stroke: #e63946; }

/* Crossref (comment icon) */
.wf-action-crossref svg { fill: none; stroke: #262626; }

/* Share */
.wf-action-share svg { fill: none; stroke: #262626; }

/* Bookmark — filled when active */
.wf-action-bookmark svg       { fill: none; stroke: #262626; }
.wf-action-bookmark.is-active svg { fill: #262626; stroke: #262626; }

/* Love count */
.wf-post-loves {
  padding: 4px 14px 4px;
  font-size: .875rem;
  color: #262626;
  line-height: 1.4;
}
.wf-post-loves strong { font-weight: 700; }

/* Caption */
.wf-post-caption {
  padding: 2px 14px 4px;
  font-size: .875rem;
  line-height: 1.52;
  color: #262626;
}
.wf-post-caption strong { font-weight: 700; margin-right: 4px; }

/* Footer links */
.wf-post-footer {
  display: flex;
  gap: 18px;
  padding: 4px 14px 14px;
  align-items: center;
}
.wf-see-more {
  font-size: .82rem;
  font-weight: 700;
  color: #0f8f7c;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.wf-versions-link {
  font-size: .82rem;
  color: #8e8e8e;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

/* Inline panel (translate / xref) */
.wf-inline-panel { padding: 0 14px 10px; }
.wf-inline-panel:empty { padding: 0; }

/* Translate version picker */
.wf-translate-menu,
.wf-bookmark-menu {
  background: #f9f9f9;
  border-radius: 14px;
  padding: 12px;
}
.wf-panel-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #8e8e8e;
  margin-bottom: 9px;
}
.wf-version-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.wf-ver-pill {
  border: 1.5px solid #dbdbdb;
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  color: #262626;
  transition: background .15s, color .15s;
}
.wf-ver-pill.active,
.wf-ver-pill:active { background: #0f8f7c; color: #fff; border-color: #0f8f7c; }
.wf-parallel-verse {
  font-size: .95rem;
  line-height: 1.62;
  color: #262626;
  padding: 8px 0 2px;
}
.wf-parallel-verse strong { font-weight: 700; }
.wf-loading-inline { font-size: .82rem; color: #8e8e8e; }

/* Highlight colour menu */
.wf-bookmark-menu { display: flex; flex-direction: column; gap: 8px; }
.wf-bookmark-choice {
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: .84rem;
  cursor: pointer;
  text-transform: capitalize;
  text-align: left;
}
.wf-yellow  { background: #fff9c4; color: #5c4a00; }
.wf-green   { background: #c8f7d5; color: #1a5c2a; }
.wf-red     { background: #ffd6d6; color: #5c1a1a; }
.wf-blue    { background: #c9e8ff; color: #0a3a5c; }
.wf-purple  { background: #e6d9ff; color: #3a1a5c; }

/* Empty / loading */
.wf-empty, .wf-loading {
  padding: 40px 20px;
  text-align: center;
  color: #8e8e8e;
  font-size: .95rem;
}

/* ── Profile page ────────────────────────────── */
.wf-profile { padding: 0 0 20px; }
.wf-profile-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 16px 16px;
  border-bottom: 1px solid #efefef;
}
.wf-profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: #e8f3ef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 26px;
  flex-shrink: 0;
}
.wf-local-avatar { background: #0c6b5d; color: #fff; }
.wf-profile-info { flex: 1; min-width: 0; }
.wf-profile-info h2 { margin: 0 0 2px; font-size: 1rem; font-weight: 700; color: #262626; }
.wf-profile-type { margin: 0 0 4px; font-size: .82rem; color: #737373; text-transform: capitalize; }
.wf-profile-tagline { margin: 0 0 10px; font-size: .84rem; color: #444; font-style: italic; line-height: 1.4; }
.wf-follow-btn {
  border: 1.5px solid #dbdbdb;
  background: transparent;
  color: #262626;
  border-radius: 8px;
  padding: 7px 16px;
  font-weight: 700;
  font-size: .875rem;
  cursor: pointer;
  transition: background .15s;
}
.wf-follow-btn.is-active { background: #0c6b5d; color: #fff; border-color: #0c6b5d; }

.wf-profile-tabs {
  display: flex;
  border-bottom: 1px solid #efefef;
  overflow-x: auto;
  scrollbar-width: none;
}
.wf-profile-tabs::-webkit-scrollbar { display: none; }
.wf-profile-tabs button {
  flex: 1;
  min-width: 70px;
  border: none;
  background: transparent;
  padding: 11px 6px;
  font-size: .82rem;
  font-weight: 700;
  color: #8e8e8e;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.wf-profile-tabs button.wf-tab-active,
.wf-profile-tabs button:first-child { color: #262626; border-bottom-color: #262626; }

.wf-profile-content { display: grid; gap: 10px; padding: 14px 14px 20px; }
.wf-saved-item { background: #fff; border-radius: 12px; padding: 14px; border: 1px solid #efefef; }
.wf-saved-item strong { font-size: .875rem; font-weight: 700; color: #0f8f7c; }
.wf-saved-item p { margin: 4px 0 0; font-size: .84rem; color: #444; line-height: 1.5; }

/* ── Dark mode ───────────────────────────────── */
[data-theme="dark"] .wf-stories-row,
[data-theme="dark"] .wf-card            { background: #000; border-color: #262626; }
[data-theme="dark"] .wf-story-name      { color: #fafafa; }
[data-theme="dark"] .wf-post-name       { color: #fafafa; }
[data-theme="dark"] .wf-post-topic,
[data-theme="dark"] .wf-post-more       { color: #8e8e8e; }
[data-theme="dark"] .wf-post-verse      { background: linear-gradient(160deg, #0a1f1a 0%, #0c2218 100%); }
[data-theme="dark"] .wf-verse-text      { color: #f0f0f0; }
[data-theme="dark"] .wf-action          { color: #fafafa; }
[data-theme="dark"] .wf-action-love svg       { stroke: #fafafa; }
[data-theme="dark"] .wf-action-love.is-active svg { fill: #e63946; stroke: #e63946; }
[data-theme="dark"] .wf-action-crossref svg,
[data-theme="dark"] .wf-action-share svg     { stroke: #fafafa; }
[data-theme="dark"] .wf-action-bookmark svg       { stroke: #fafafa; }
[data-theme="dark"] .wf-action-bookmark.is-active svg { fill: #fafafa; stroke: #fafafa; }
[data-theme="dark"] .wf-post-loves,
[data-theme="dark"] .wf-post-caption    { color: #fafafa; }
[data-theme="dark"] .wf-versions-link   { color: #8e8e8e; }
[data-theme="dark"] .wf-translate-menu,
[data-theme="dark"] .wf-bookmark-menu   { background: #1a1a1a; }
[data-theme="dark"] .wf-ver-pill        { background: #1a1a1a; color: #fafafa; border-color: #363636; }
[data-theme="dark"] .wf-parallel-verse  { color: #f0f0f0; }
[data-theme="dark"] .wf-loading-inline,
[data-theme="dark"] .wf-empty,
[data-theme="dark"] .wf-loading         { color: #8e8e8e; }
[data-theme="dark"] .wf-profile         { background: #000; }
[data-theme="dark"] .wf-profile-header  { border-color: #262626; }
[data-theme="dark"] .wf-profile-info h2 { color: #fafafa; }
[data-theme="dark"] .wf-profile-tagline { color: #c0c0c0; }
[data-theme="dark"] .wf-profile-tabs    { border-color: #262626; }
[data-theme="dark"] .wf-profile-tabs button         { color: #8e8e8e; }
[data-theme="dark"] .wf-profile-tabs button.wf-tab-active,
[data-theme="dark"] .wf-profile-tabs button:first-child { color: #fafafa; border-bottom-color: #fafafa; }
[data-theme="dark"] .wf-saved-item      { background: #1a1a1a; border-color: #262626; }
[data-theme="dark"] .wf-saved-item p    { color: #c0c0c0; }
