/* App look — the YouVersion-inspired layer (owner request 2026-11-19):
   app-style bottom tab bar on phones, a photo-card Verse of the Day, and
   softer, rounder cards. Gospel Harmony keeps its navy + gold identity;
   only the shapes, spacing and navigation borrow the Bible-app language.
   Loaded after styles.css; rules are scoped to outrank the base styles
   and verse-day.js's injected styles. */

/* ---------- Bottom tab bar (phones & small tablets) ---------- */
.gh-tabbar { display: none; }
@media (max-width: 900px) {
  .gh-tabbar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid #dbe3ec;
    box-shadow: 0 -4px 18px rgba(16, 36, 63, .08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .gh-tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 2px 7px;
    color: #68798d;
    text-decoration: none;
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .01em;
  }
  .gh-tabbar .gh-tab-ico { font-size: 1.28rem; line-height: 1.1; filter: grayscale(45%); opacity: .75; }
  .gh-tabbar a.active { color: #10243f; }
  .gh-tabbar a.active .gh-tab-ico { filter: none; opacity: 1; }
  .gh-tabbar a.active .gh-tab-label { box-shadow: inset 0 -2px 0 #d5aa57; padding-bottom: 1px; }
  body { padding-bottom: 58px; }
}

/* ---------- Verse of the Day: photo-card look ---------- */
.reader-inner .votd-card {
  border: none;
  border-radius: 20px;
  padding: 30px 24px 22px;
  text-align: center;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(213, 170, 87, .28), rgba(213, 170, 87, 0) 55%),
    linear-gradient(160deg, #1d4066 0%, #10243f 58%, #0a1830 100%);
  box-shadow: 0 14px 34px rgba(10, 23, 41, .35);
  margin: 16px 0 22px;
}
.reader-inner .votd-kicker { color: #e8cf8f; text-align: center; }
.reader-inner .votd-text {
  font: 1.38rem/1.6 Georgia, 'Times New Roman', serif;
  font-style: normal;
  color: #ffffff;
  text-align: center;
}
.reader-inner .votd-ref {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(213, 170, 87, .18);
  color: #e8cf8f;
  font-size: .88rem;
}
.reader-inner .votd-actions { justify-content: center; margin-top: 16px; }
.reader-inner .votd-btn {
  border-radius: 999px;
  padding: 9px 18px;
  border: none;
}
.reader-inner .votd-btn.ghost {
  background: rgba(255, 255, 255, .14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, .35);
}

/* ---------- Home hero: softer cards, pill buttons ---------- */
.home-hero .home-hero-btn { border-radius: 999px; }
.home-hero .home-hero-card {
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(16, 36, 63, .10);
}
.home-hero .home-hero-card:hover { box-shadow: 0 10px 24px rgba(16, 36, 63, .16); }

/* ---------- General card softening on app pages ---------- */
.pl-card, .nt-card, .pr-card, .comm-card {
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(16, 36, 63, .06);
}

/* ---------- Greeting bar + More sheet (phones) ----------
   Owner direction 2026-11-19: since More now carries everything the
   top menu held, the classic top menu is retired on phones and the
   greeting bar takes its place — "Good Morning, <name>", the reader's
   day streak, and a notifications bell, in the Bible-app style. */
.gh-greet, .gh-sheet, .gh-sheet-backdrop { display: none; }

/* With the welcome hero gone, the shell itself carries the offset that
   clears the fixed header + film strip. */
.app-shell.has-strip { padding-top: calc(4.5rem + 39px + 14px); }

@media (max-width: 900px) {
  .topbar { display: none; }
  /* Tight stack (owner: "close the empty gap", 2026-11-19): greeting bar
     (54px + notch inset) -> film strip (39px) -> content, ~6px apart. */
  .app-shell { padding-top: calc(54px + env(safe-area-inset-top, 0px)) !important; }
  .app-shell.has-strip { padding-top: calc(54px + env(safe-area-inset-top, 0px) + 39px + 6px) !important; }
  body .watch-film-strip { top: calc(54px + env(safe-area-inset-top, 0px)) !important; }
  .reader-inner { padding-top: .5rem; }
  .reader-inner .votd-card { margin-top: 6px; }
  .sidebar { top: 54px !important; }
  .app-shell.has-strip .sidebar { top: calc(54px + 39px) !important; }
  .reader { scroll-margin-top: calc(54px + 39px + 14px); }

  .gh-greet {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: calc(54px + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 14px 0;
    background: #10243f;
    color: #fff;
    z-index: 80;
    box-shadow: 0 2px 10px rgba(16, 36, 63, .25);
  }
  .gh-greet-hi { font-size: 1.07rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gh-greet-acts { display: flex; align-items: center; gap: 15px; flex: none; }
  .gh-greet-search { font-size: 1.02rem; text-decoration: none; }
  .gh-streak { font-size: .98rem; font-weight: 700; color: #fff; text-decoration: none; padding: 6px 4px; margin: -6px -2px; cursor: pointer; }
  .gh-bell { background: none; border: 0; font-size: 1.14rem; cursor: pointer; padding: 4px 2px; color: #fff; }
  .gh-bell-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 10px;
    width: 272px;
    max-width: 86vw;
    background: #fff;
    color: #10243f;
    border: 1px solid #b9c8d7;
    border-radius: 14px;
    box-shadow: 0 16px 38px rgba(16, 36, 63, .28);
    padding: 14px 16px;
    z-index: 90;
    text-align: left;
  }
  .gh-bell-panel[hidden] { display: none; }
  .gh-bell-title { font-weight: 800; margin-bottom: 6px; }
  .gh-bell-panel p { margin: 0 0 8px; color: #33475e; font-size: .94rem; }
  .gh-bell-panel a { color: #10243f; font-weight: 700; font-size: .94rem; }

  .gh-sheet-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 38, .45);
    z-index: 110;
  }
  .gh-sheet-backdrop[hidden] { display: none; }
  .gh-sheet {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 120;
    background: #fff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 34px rgba(16, 36, 63, .3);
    padding: 8px 10px calc(14px + env(safe-area-inset-bottom, 0px));
    max-height: 78vh;
    overflow: auto;
  }
  .gh-sheet[hidden] { display: none; }
  .gh-sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: #c9d4e0; margin: 4px auto 8px; }
  .gh-sheet a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    color: #10243f;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
  }
  .gh-sheet a:hover, .gh-sheet a:focus-visible { background: #eef2f7; }
  .gh-sheet-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-top: 1px solid #e3eaf2;
    margin-top: 4px;
    font-weight: 600;
    color: #33475e;
    font-size: .95rem;
  }
  .gh-sheet-textbtns { display: inline-flex; gap: 6px; }
  /* Streak information sheet (owner request 2026-11-19, modeled on the
     YouVersion streak screen: information only, no navigation). */
  .gh-streak { background: none; border: none; font: inherit; }
  .gh-sheet-title { font-size: 1.28rem; font-weight: 800; color: #10243f; line-height: 1.3; padding: 6px 8px 12px; }
  .gh-streak-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 2px; }
  .gh-streak-card { border: 1.5px solid #d7e0ea; border-radius: 16px; padding: 14px; }
  .gh-streak-label { font-size: .98rem; font-weight: 600; color: #10243f; }
  .gh-streak-big { font-size: 2rem; font-weight: 800; color: #10243f; margin-top: 10px; }
  .gh-streak-sub { color: #5a6c80; margin-top: 8px; font-size: .92rem; }
  .gh-streak-weeks { text-align: center; font-weight: 700; color: #10243f; margin: 16px 0 2px; }
  .gh-wk { display: grid; grid-template-columns: repeat(7, 1fr); padding: 10px 2px 2px; }
  .gh-wk-day { display: flex; flex-direction: column; align-items: center; gap: 3px; }
  .gh-wk-name { font-size: .9rem; color: #33475e; }
  .gh-wk-dot { height: 10px; font-size: 8px; line-height: 10px; color: #d5aa57; }
  .gh-wk-num { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #33475e; font-weight: 600; }
  .gh-wk-num.today { background: #10243f; color: #fff; }
  .gh-why-btn {
    display: block; margin: 14px auto 4px; font: inherit; font-weight: 700; color: #10243f;
    background: #fff; border: 1.5px solid #10243f; border-radius: 999px; padding: 9px 22px; cursor: pointer;
  }
  .gh-why-text { color: #33475e; line-height: 1.55; padding: 8px; margin: 0; }
  .gh-streak-go { margin-top: 10px; }
  /* "Everything you've done" activity tabs in the streak sheet
     (owner request 2026-11-20, modeled on the screenshot he sent:
     All · Highlights · Notes · Plans · Badges pills). */
  .gh-act { margin-top: 20px; border-top: 1px solid #e3eaf2; padding-top: 14px; }
  .gh-act-title { font-size: 1.08rem; font-weight: 800; color: #10243f; padding: 0 8px 8px; }
  .gh-pills { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .gh-pills::-webkit-scrollbar { display: none; }
  .gh-pill {
    flex: 0 0 auto; font: inherit; font-weight: 700; font-size: .95rem; color: #10243f;
    background: #fff; border: 1.5px solid #c9d4e0; border-radius: 999px; padding: 8px 16px; cursor: pointer;
  }
  .gh-pill.active { background: #10243f; color: #fff; border-color: #10243f; }
  .gh-act-panel { padding: 0 2px 4px; }
  .gh-act-count { font-weight: 700; color: #33475e; padding: 2px 6px 8px; margin: 0; font-size: .94rem; }
  .gh-act-empty { color: #5a6c80; line-height: 1.55; padding: 6px; margin: 0; }
  .gh-sheet a.gh-act-row {
    display: flex; gap: 10px; align-items: flex-start; padding: 10px 8px;
    border-bottom: 1px solid #eef2f7; font-weight: 400; font-size: .95rem;
  }
  .gh-act-dot { width: 15px; height: 15px; border-radius: 4px; flex: 0 0 auto; margin-top: 3px; border: 1px solid rgba(16, 36, 63, .18); }
  .gh-act-ico { font-size: 1.05rem; flex: 0 0 auto; margin-top: 1px; }
  .gh-act-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .gh-act-text { color: #10243f; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .gh-act-meta { color: #5a6c80; font-size: .82rem; }
  .gh-plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 4px 6px 6px; color: #10243f; }
  .gh-plan-head span { color: #5a6c80; font-size: .88rem; font-weight: 600; }
  .gh-plan-bar { height: 10px; background: #e8edf2; border-radius: 99px; overflow: hidden; margin: 0 6px 6px; }
  .gh-plan-fill { height: 100%; background: linear-gradient(90deg, #d5aa57, #b98c2f); border-radius: 99px; }
  .gh-day-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; }
  .gh-day-chip { background: #eef2f7; border-radius: 999px; padding: 4px 10px; font-size: .82rem; font-weight: 600; color: #33475e; }
  .gh-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 8px; padding: 6px 2px; }
  .gh-badges-row { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
  .gh-badges-row::-webkit-scrollbar { display: none; }
  .gh-badge { text-align: center; }
  .gh-badge.mini { flex: 0 0 76px; }
  .gh-badge-img {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 6px; position: relative;
    display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
    background: radial-gradient(circle at 35% 30%, #f6e2ac, #d5aa57 72%);
    border: 2px solid #b98c2f; box-shadow: 0 3px 8px rgba(185, 140, 47, .35);
  }
  .gh-badge.mini .gh-badge-img { width: 52px; height: 52px; font-size: 1.4rem; }
  .gh-badge.locked .gh-badge-img { background: #e8edf2; border-color: #c9d4e0; box-shadow: none; filter: grayscale(1); opacity: .5; }
  .gh-badge-tick {
    position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%;
    background: #10243f; color: #fff; font-size: .72rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
  }
  .gh-badge-name { font-weight: 700; font-size: .84rem; color: #10243f; line-height: 1.25; }
  .gh-badge.locked .gh-badge-name { color: #5a6c80; }
  .gh-badge-sub { font-size: .74rem; color: #5a6c80; line-height: 1.35; margin-top: 2px; }
  /* Highlight cards + action menu (owner request 2026-11-20, modeled on
     the YouVersion highlight cards he screenshotted). */
  .gh-hl-card { background: #f8fafc; border: 1.5px solid #d7e0ea; border-radius: 16px; padding: 12px 12px 8px; margin: 0 0 12px; }
  .gh-hl-head { display: flex; align-items: center; gap: 9px; }
  .gh-hl-avatar {
    width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto; overflow: hidden;
    background: radial-gradient(circle at 35% 30%, #f6e2ac, #d5aa57 75%);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: #10243f; font-size: .95rem;
  }
  .gh-hl-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .gh-hl-who { flex: 1 1 auto; min-width: 0; color: #33475e; font-size: .95rem; line-height: 1.3; }
  .gh-hl-who b { color: #10243f; }
  .gh-hl-when { color: #5a6c80; font-size: .82rem; font-weight: 600; }
  .gh-hl-body { border-left: 5px solid #d5aa57; padding: 2px 0 2px 12px; margin: 12px 0 4px; }
  .gh-hl-text { font-family: Georgia, 'Times New Roman', serif; font-size: 1.16rem; line-height: 1.5; color: #10243f; margin: 0; }
  .gh-hl-ref { font-weight: 700; color: #10243f; margin-top: 8px; font-size: .95rem; }
  .gh-hl-foot { display: flex; align-items: center; gap: 6px; padding-top: 4px; }
  .gh-sheet a.gh-hl-icobtn, .gh-hl-icobtn {
    font: inherit; font-size: 1.15rem; line-height: 1; background: none; border: 0; cursor: pointer;
    padding: 8px; border-radius: 10px; color: #10243f; text-decoration: none; display: inline-flex;
  }
  .gh-hl-dots { margin-left: auto; font-weight: 800; letter-spacing: 1px; }
  .gh-hl-menu { border-top: 1px solid #e3eaf2; margin-top: 6px; padding-top: 6px; }
  .gh-hl-menu button {
    display: block; width: 100%; text-align: left; font: inherit; font-weight: 600; font-size: .98rem;
    color: #10243f; background: none; border: 0; border-radius: 10px; padding: 10px 8px; cursor: pointer;
  }
  .gh-hl-menu button:hover, .gh-hl-menu button:focus-visible { background: #eef2f7; }
  .gh-hl-menu button.danger { color: #c0392b; }
  .gh-hl-edit { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; border-top: 1px solid #e3eaf2; margin-top: 6px; padding: 10px 8px 6px; }
  .gh-hl-edit[hidden] { display: none; }
  .gh-hl-edit-label { font-weight: 600; color: #33475e; font-size: .9rem; }
  .gh-hl-swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(16, 36, 63, .25); cursor: pointer; padding: 0; }
  .gh-hl-swatch.sel { border-color: #10243f; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #10243f; }
  .gh-hl-cmp { border-top: 1px solid #e3eaf2; margin-top: 6px; padding: 10px 8px 4px; }
  .gh-hl-cmp[hidden] { display: none; }
  .gh-cmp-ver { background: #eef2f7; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
  .gh-cmp-ver b { color: #10243f; }
  .gh-cmp-ver p { margin: 4px 0 0; color: #33475e; line-height: 1.5; font-family: Georgia, 'Times New Roman', serif; }
  .gh-sheet-textbtns button {
    font: inherit;
    font-weight: 700;
    color: #10243f;
    background: #fff;
    border: 1px solid rgba(16, 36, 63, .4);
    border-radius: .45rem;
    min-width: 2.4rem;
    padding: .3rem .5rem;
    cursor: pointer;
  }
}

/* ---------- Bottom tab bar + More sheet (desktop, >900px) ----------
   Owner report 2026-11-24: "Users don't see this on desktop" — the tab
   bar was phone-only (display:none above 900px). Desktop now gets the
   same bar, centered at a comfortable width, and the More sheet opens
   centered above it. The greeting bar stays phone-only; desktop keeps
   its classic top menu alongside the new bottom bar. */
@media (min-width: 901px) {
  .gh-tabbar {
    display: flex;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: min(640px, 100%);
    z-index: 60;
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid #dbe3ec;
    border-left: 1px solid #dbe3ec;
    border-right: 1px solid #dbe3ec;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 18px rgba(16, 36, 63, .12);
  }
  .gh-tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 9px 2px 8px;
    color: #68798d;
    text-decoration: none;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .01em;
  }
  .gh-tabbar .gh-tab-ico { font-size: 1.35rem; line-height: 1.1; filter: grayscale(45%); opacity: .75; }
  .gh-tabbar a.active { color: #10243f; }
  .gh-tabbar a.active .gh-tab-ico { filter: none; opacity: 1; }
  .gh-tabbar a.active .gh-tab-label { box-shadow: inset 0 -2px 0 #d5aa57; padding-bottom: 1px; }
  body { padding-bottom: 60px; }

  .gh-sheet-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 38, .45);
    z-index: 110;
  }
  .gh-sheet-backdrop[hidden] { display: none; }
  .gh-sheet {
    display: block;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: min(640px, 100%);
    z-index: 120;
    background: #fff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 34px rgba(16, 36, 63, .3);
    padding: 8px 10px 14px;
    max-height: 78vh;
    overflow: auto;
  }
  .gh-sheet[hidden] { display: none; }
  .gh-sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: #c9d4e0; margin: 4px auto 8px; }
  .gh-sheet a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    color: #10243f;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
  }
  .gh-sheet a:hover, .gh-sheet a:focus-visible { background: #eef2f7; }
  .gh-sheet-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-top: 1px solid #e3eaf2;
    margin-top: 4px;
    font-weight: 600;
    color: #33475e;
    font-size: .95rem;
  }
  .gh-sheet-textbtns { display: inline-flex; gap: 6px; }
  .gh-sheet-textbtns button {
    font: inherit;
    font-weight: 700;
    color: #10243f;
    background: #fff;
    border: 1px solid rgba(16, 36, 63, .4);
    border-radius: .45rem;
    min-width: 2.4rem;
    padding: .3rem .5rem;
    cursor: pointer;
  }
  html[data-theme="dark"] .gh-tabbar { background: rgba(13, 24, 43, .97); border-color: #2c425f; }
  html[data-theme="dark"] .gh-tabbar a { color: #9dabbf; }
  html[data-theme="dark"] .gh-tabbar a.active { color: #e9eef6; }
  html[data-theme="dark"] .gh-sheet { background: var(--surface, #13233c); }
  html[data-theme="dark"] .gh-sheet a { color: #e9eef6; }
  html[data-theme="dark"] .gh-sheet a:hover, html[data-theme="dark"] .gh-sheet a:focus-visible { background: var(--surface-blue, #1b3050); }
  html[data-theme="dark"] .gh-sheet-row { border-top-color: var(--line, #2c425f); color: #b9c6d8; }
  html[data-theme="dark"] .gh-sheet-grip { background: #3d547a; }
}
