/* Volumes UI Kit — local styles for the click-thru prototype.
   The kit assumes ../colors_and_type.css is loaded (the relative path
   inside ui_kits/volumes-app/ is ../../colors_and_type.css). */

.vol-app {
  font-family: var(--font-sans);
  color: var(--rich-black);
  background: var(--ivory);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vol-screen {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.vol-screen::-webkit-scrollbar { width: 0; height: 0; }

/* ── Top bar ─────────────────────────────────────────── */
.vol-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px 20px;
}
.vol-topbar h1 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--rich-black);
  margin: 0;
  letter-spacing: 0;
}
.vol-topbar .icon-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--warm-grey);
}
.vol-topbar .material-symbols-outlined { font-size: 22px; }

/* ── Section heading ─────────────────────────────────── */
.vol-section-h {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--rich-black);
  font-weight: 400;
  padding: 24px 20px 10px 20px;
  margin: 0;
}

/* ── Paper surface (card) ─────────────────────────────── */
.paper {
  background: var(--parchment);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
  padding: 16px;
  margin: 0 20px;
}
.paper--raised {
  box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 4px 8px rgba(0,0,0,.06);
}
.paper--floating {
  box-shadow: 0 4px 8px rgba(0,0,0,.10), 0 8px 16px rgba(0,0,0,.06);
}
.paper + .paper { margin-top: 12px; }

/* ── Bottom nav (paper tabs) ─────────────────────────── */
.vol-bottom-nav {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  background: var(--parchment);
  border-top: 1px solid rgba(107,101,96,.2);
  padding: 8px 4px 12px 4px;
  flex: 0 0 auto;
}
.vol-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 8px 2px 6px 2px;
  font-family: var(--font-serif);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--warm-grey);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  text-align: center;
  line-height: 1.2;
}
.vol-tab.active {
  color: var(--rich-black);
  font-weight: 700;
}
.vol-tab.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 16px;
  height: 1.5px;
  background: var(--burgundy);
}

/* ── Buttons ─────────────────────────────────────────── */
.vol-btn-primary {
  background: var(--burgundy);
  color: var(--parchment);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border: none;
  border-radius: 6px;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
  transition: transform 80ms cubic-bezier(.4,0,.2,1), background 150ms cubic-bezier(.4,0,.2,1);
}
.vol-btn-primary:active { transform: scale(.98); background: #6f0000;}
.vol-btn-secondary {
  background: transparent;
  color: var(--rich-black);
  border: 1.5px solid var(--warm-grey);
  border-radius: 6px;
  padding: 11px 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .02em;
}
.vol-btn-text {
  background: none; border: none; cursor: pointer;
  color: var(--burgundy); font-family: var(--font-sans);
  font-size: 14px; font-weight: 600; padding: 8px 12px;
}

/* ── List rows ───────────────────────────────────────── */
.vol-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(107,101,96,.16);
  background: transparent;
  cursor: pointer;
}
.vol-row:last-child { border-bottom: none; }
.vol-row .lead { width: 56px; height: 76px; flex: 0 0 auto; background: var(--pale-cream); border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.08); display:flex; align-items:center; justify-content:center; font-family: var(--font-serif); font-style: italic; color: var(--warm-grey); font-size: 11px; padding: 6px; text-align: center; line-height: 1.2;}
.vol-row .body { flex: 1; min-width: 0; }
.vol-row .body .title { font-family: var(--font-serif); font-size: 15px; color: var(--rich-black); line-height: 1.25; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.vol-row .body .meta { font-family: var(--font-sans); font-size: 12px; color: var(--warm-grey); display: flex; gap: 8px; align-items: center;}
.vol-row .body .progress-line { height: 2px; background: rgba(107,101,96,.18); border-radius: 2px; margin-top: 8px;}
.vol-row .body .progress-line > i { display:block; height:100%; background: var(--burgundy); border-radius: 2px;}
.vol-row .trail { font-family: var(--font-sans); font-size: 12px; color: var(--warm-grey); font-variant-numeric: tabular-nums;}

.vol-divider { height: 1px; background: rgba(107,101,96,.18); margin: 0 20px;}

/* ── Tabular numerals ─────────────────────────────────── */
.tab-num { font-variant-numeric: tabular-nums; }

/* ── FAB ─────────────────────────────────────────────── */
.vol-fab {
  position: absolute;
  right: 20px;
  bottom: 16px;
  width: 56px; height: 56px;
  background: var(--parchment);
  color: var(--rich-black);
  border: 1px solid rgba(107,101,96,.2);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,.10), 0 8px 16px rgba(0,0,0,.06);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
}

/* ── Phone shell ─────────────────────────────────────── */
.phone-shell {
  width: 390px;
  height: 800px;
  background: #1a1a1a;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(0,0,0,.18), 0 12px 24px rgba(0,0,0,.12);
  position: relative;
}
.phone-screen {
  width: 100%; height: 100%;
  background: var(--ivory);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
}
.phone-status {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 24px 0 24px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--rich-black);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}

/* ── Reading mode (full-bleed monochrome) ────────────── */
.reader-bleed {
  position: absolute;
  inset: 0;
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.reader-word {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-reading-serif);
  font-size: 56px;
  color: var(--pure-black);
  letter-spacing: 0;
  text-align: center;
}
.reader-word .orp { color: var(--burgundy); }
.reader-controls {
  padding: 24px 32px 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.reader-progress { height: 1px; background: rgba(0,0,0,.18); margin: 0 32px;}
.reader-progress > i { display: block; height: 1px; background: #000;}
.reader-meta {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--warm-grey);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px 0 0 0;
}
.reader-icon-btn {
  background: none; border: none; cursor: pointer;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  color: var(--rich-black);
}
.reader-icon-btn .material-symbols-outlined { font-size: 28px; }
