/* ==========================================================================
   BLUEPRINT-BUILD (app.blueprint-build.store) — BLINKIST + DEEPSTASH SYSTEM (v3.0.0)
   Themes: Light-First (Default) & Dark | Zero Emojis | 2.5D Book Covers | Segmented Reader
   ========================================================================== */

:root {
  /* Brand Core Tokens */
  --bg-canvas: #F7F7FB;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-subtle: #F3F4F8;
  --border-subtle: #E5E7EB;
  --border-hover: #D1D5DB;

  /* Primary Accent: Restrained Modern Violet */
  --c-accent: #6558D3;
  --c-accent-hover: #5345C5;
  --c-accent-light: #EEECFB;
  --c-accent-text: #4C3FB8;

  /* Blinkist Shamrock Green Accent (Free Daily Pick / Progress) */
  --c-emerald: #10B981;
  --c-emerald-hover: #059669;
  --c-emerald-light: #ECFDF5;
  --c-emerald-border: #A7F3D0;
  --c-emerald-text: #065F46;

  /* Ink & Typography Hierarchy */
  --c-ink: #20243A;
  --c-ink-heading: #121421;
  --c-slate: #6B7280;
  --c-muted: #9CA3AF;

  /* Functional Status */
  --c-warning: #D97706;
  --c-warning-light: #FFFBEB;

  /* Pastel Highlighters (Deepstash Highlight Marks) */
  --hl-yellow: #FEF7D6;
  --hl-yellow-text: #854D0E;
  --hl-mint: #DCFCE7;
  --hl-mint-text: #166534;
  --hl-lavender: #F3E8FF;
  --hl-lavender-text: #6B21A8;
  --hl-sky: #E0F2FE;
  --hl-sky-text: #075985;

  /* Typography Stacks */
  --font-bangla: 'Anek Bangla', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif-bangla: 'Noto Serif Bengali', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Reader Font Size Variables (Dynamically adjusted by user) */
  --reader-font-size: 17px;
  --reader-line-height: 1.75;

  /* Radius & Shadows */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-card: 16px;
  --radius-pill: 9999px;

  --shadow-subtle: 0 1px 3px rgba(32, 36, 58, 0.04), 0 1px 2px rgba(32, 36, 58, 0.02);
  --shadow-card: 0 4px 16px -2px rgba(32, 36, 58, 0.06), 0 2px 6px -1px rgba(32, 36, 58, 0.03);
  --shadow-elevated: 0 14px 30px -6px rgba(32, 36, 58, 0.12), 0 6px 12px -3px rgba(32, 36, 58, 0.06);
  --shadow-book: 2px 4px 12px rgba(18, 20, 33, 0.18), -1px 0 2px rgba(255, 255, 255, 0.2) inset;

  /* Layout */
  --header-height: 64px;
  --bottom-nav-height: 64px;
  --app-max-width: 760px;
}

[data-theme="dark"] {
  --bg-canvas: #0E1017;
  --bg-surface: #161922;
  --bg-surface-elevated: #1F2430;
  --bg-subtle: #1C202B;
  --border-subtle: #262B3A;
  --border-hover: #373E52;

  --c-accent: #8174EA;
  --c-accent-hover: #988DF0;
  --c-accent-light: rgba(101, 88, 211, 0.18);
  --c-accent-text: #C4BEFA;

  --c-emerald: #10B981;
  --c-emerald-hover: #34D399;
  --c-emerald-light: rgba(16, 185, 129, 0.16);
  --c-emerald-border: #065F46;
  --c-emerald-text: #6EE7B7;

  --c-ink: #F1F3F9;
  --c-ink-heading: #FFFFFF;
  --c-slate: #9CA3AF;
  --c-muted: #6B7280;

  --hl-yellow: rgba(254, 247, 214, 0.16);
  --hl-yellow-text: #FDE047;
  --hl-mint: rgba(220, 252, 231, 0.16);
  --hl-mint-text: #86EFAC;
  --hl-lavender: rgba(243, 232, 255, 0.16);
  --hl-lavender-text: #D8B4FE;
  --hl-sky: rgba(224, 242, 254, 0.16);
  --hl-sky-text: #7DD3FC;

  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 4px 16px -2px rgba(0, 0, 0, 0.5);
  --shadow-elevated: 0 16px 36px -6px rgba(0, 0, 0, 0.7);
  --shadow-book: 3px 6px 16px rgba(0, 0, 0, 0.6);
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-canvas);
  color: var(--c-ink);
  font-family: var(--font-bangla);
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-nav-height) + 24px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[lang="en"] body {
  font-family: var(--font-sans);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
}

/* SVG Icon Base */
.bb-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.bb-icon-sm {
  width: 16px;
  height: 16px;
}

.bb-icon-xs {
  width: 14px;
  height: 14px;
}

.bb-icon-lg {
  width: 24px;
  height: 24px;
}

/* App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner {
  max-width: var(--app-max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-wrap {
  display: flex;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-badge {
  background-color: var(--c-accent);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--c-ink-heading);
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.brand-tagline {
  font-size: 11px;
  color: var(--c-slate);
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Language and Theme Toggle Pills */
.lang-toggle {
  display: inline-flex;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 2px;
}

.lang-btn {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  color: var(--c-slate);
  transition: all 0.15s ease;
}

.lang-btn.active {
  background-color: var(--bg-surface);
  color: var(--c-ink-heading);
  box-shadow: var(--shadow-subtle);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-slate);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  transition: all 0.15s ease;
}

.icon-btn:hover {
  color: var(--c-accent);
  border-color: var(--c-accent);
}

.site-link-btn {
  display: none;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--c-slate);
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  transition: all 0.15s ease;
}

.site-link-btn:hover {
  color: var(--c-accent);
  border-color: var(--c-accent);
}

/* Screens Layout */
.app-container {
  max-width: var(--app-max-width);
  margin: 0 auto;
  padding: 16px 16px 32px 16px;
}

.app-screen {
  display: none;
}

.app-screen.active {
  display: block;
  animation: screenFadeIn 0.2s ease-out;
}

@keyframes screenFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   2.5D REALISTIC BOOK JACKET COMPONENT
   ========================================================================== */
.book-cover {
  position: relative;
  border-radius: 4px 8px 8px 4px;
  box-shadow: var(--shadow-book);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 10px;
  color: #FFFFFF;
  user-select: none;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-cover::before {
  /* Book Spine crease effect */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 8px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
}

.book-cover::after {
  /* Subtle glossy paper sheen */
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 100%);
  pointer-events: none;
}

.book-cover:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 4px 8px 20px rgba(18, 20, 33, 0.24);
}

/* Book Cover Sizes */
.book-cover-sm {
  width: 74px;
  height: 104px;
  padding: 8px 6px 8px 12px;
}

.book-cover-sm .book-title-spine {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-cover-sm .book-author-spine {
  font-size: 9px;
  opacity: 0.85;
}

.book-cover-md {
  width: 104px;
  height: 146px;
  padding: 12px 10px 12px 16px;
}

.book-cover-md .book-title-spine {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-cover-md .book-author-spine {
  font-size: 10px;
  opacity: 0.9;
}

.book-cover-lg {
  width: 140px;
  height: 196px;
  padding: 16px 14px 16px 20px;
}

.book-cover-lg .book-title-spine {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.book-cover-lg .book-author-spine {
  font-size: 12px;
  opacity: 0.9;
}

.book-cover-badge {
  align-self: flex-start;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

/* ==========================================================================
   SCREEN A: HOME / FOR YOU (DISCOVERY FEED)
   ========================================================================== */

/* Search bar on Home */
.home-search-bar {
  margin-bottom: 20px;
  position: relative;
}

.home-search-input {
  width: 100%;
  height: 48px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0 44px 0 44px;
  font-size: 14px;
  color: var(--c-ink);
  transition: all 0.15s ease;
  box-shadow: var(--shadow-subtle);
}

.home-search-input:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-light);
}

.search-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-muted);
  pointer-events: none;
}

/* Blinkist "Free Daily Pick" Hero Spotlight */
.daily-pick-spotlight {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-subtle) 100%);
  border: 1.5px solid var(--c-emerald-border);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 18px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.daily-pick-spotlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  bottom: 0;
  background-color: var(--c-emerald);
}

.daily-pick-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.daily-pick-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--c-emerald-light);
  color: var(--c-emerald-text);
  border: 1px solid var(--c-emerald-border);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  width: fit-content;
}

.daily-pick-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--c-ink-heading);
  line-height: 1.25;
}

.daily-pick-author {
  font-size: 13px;
  color: var(--c-slate);
  display: flex;
  align-items: center;
  gap: 8px;
}

.daily-pick-promise {
  font-size: 13.5px;
  color: var(--c-ink);
  line-height: 1.45;
  margin: 4px 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.daily-pick-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.btn-emerald-primary {
  background-color: var(--c-emerald);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.btn-emerald-primary:hover {
  background-color: var(--c-emerald-hover);
  transform: translateY(-1px);
}

/* Horizontal Book Rails / Carousels */
.rail-section {
  margin-bottom: 28px;
}

.rail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.rail-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--c-ink-heading);
  display: flex;
  align-items: center;
  gap: 8px;
}

.rail-see-all {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--c-accent);
  transition: color 0.15s ease;
}

.rail-see-all:hover {
  color: var(--c-accent-hover);
}

.book-rail-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.book-rail-carousel::-webkit-scrollbar {
  display: none;
}

.rail-book-card {
  flex: 0 0 148px;
  scroll-snap-align: start;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.rail-book-card:hover {
  border-color: var(--c-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.rail-book-card .book-cover {
  align-self: center;
}

.rail-book-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rail-book-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--c-ink-heading);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rail-book-author {
  font-size: 11px;
  color: var(--c-slate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rail-book-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--c-muted);
  margin-top: auto;
}

/* Deepstash Atomic Idea Stream */
.ideas-stream-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-badge-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  background-color: var(--c-accent-light);
  color: var(--c-accent-text);
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   DEEPSTASH ATOMIC IDEA CARD ANATOMY
   ========================================================================== */
.idea-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.15s ease;
}

.idea-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-elevated);
}

.idea-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.idea-source-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-slate);
}

.idea-source-name {
  color: var(--c-ink);
  font-weight: 700;
}

.idea-read-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.idea-card-headline {
  font-size: 18px;
  font-weight: 800;
  color: var(--c-ink-heading);
  line-height: 1.35;
}

/* Deepstash Pastel Highlight Pull-Quote Box */
.idea-highlight-box {
  background-color: var(--hl-yellow);
  color: var(--hl-yellow-text);
  border-left: 3.5px solid var(--c-warning);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
  position: relative;
}

.idea-card-body {
  font-size: 14.5px;
  color: var(--c-ink);
  line-height: 1.6;
}

/* Local Bangladesh Application Box */
.idea-local-box {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  color: var(--c-slate);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.idea-local-tag {
  font-weight: 700;
  color: var(--c-accent);
  white-space: nowrap;
}

/* Idea Card Footer & Action Bar */
.idea-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 8px;
}

.idea-actions-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-card-action {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-slate);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-card-action:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.btn-card-action.active {
  background-color: var(--c-accent-light);
  border-color: var(--c-accent);
  color: var(--c-accent-text);
}

.btn-card-primary {
  background-color: var(--c-accent);
  color: #FFFFFF;
  border-color: var(--c-accent);
}

.btn-card-primary:hover {
  background-color: var(--c-accent-hover);
  color: #FFFFFF;
}

/* ==========================================================================
   SCREEN C: BOOK / CASE STUDY DETAIL HUB
   ========================================================================== */
.book-hub-hero {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 22px;
  flex-direction: column;
}

@media (min-width: 600px) {
  .book-hub-hero {
    flex-direction: row;
    align-items: flex-start;
  }
}

.book-hub-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.book-hub-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.book-hub-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--c-ink-heading);
  line-height: 1.25;
}

.book-hub-subtitle {
  font-size: 14.5px;
  color: var(--c-slate);
  line-height: 1.45;
}

.book-hub-author {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-ink);
  margin-top: 4px;
}

.book-hub-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--c-muted);
  margin: 6px 0;
}

.book-hub-promise {
  background-color: var(--bg-canvas);
  border-left: 3px solid var(--c-accent);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13.5px;
  color: var(--c-ink);
  line-height: 1.5;
  margin: 6px 0 12px 0;
}

.btn-start-reading {
  background-color: var(--c-accent);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  width: fit-content;
  box-shadow: 0 4px 12px rgba(101, 88, 211, 0.3);
}

.btn-start-reading:hover {
  background-color: var(--c-accent-hover);
  transform: translateY(-1px);
}

/* Blink Outline List */
.blinks-outline-container {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-bottom: 24px;
}

.outline-heading {
  font-size: 16px;
  font-weight: 800;
  color: var(--c-ink-heading);
  margin-bottom: 14px;
}

.blink-outline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.15s ease;
}

.blink-outline-item:last-child {
  border-bottom: none;
}

.blink-outline-item:hover {
  padding-left: 6px;
}

.blink-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blink-number-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--c-accent-light);
  color: var(--c-accent-text);
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.blink-item-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--c-ink);
}

/* ==========================================================================
   SCREEN D: THE SEGMENTED "BLINK" READER ENGINE
   ========================================================================== */
.reader-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

/* Distraction-Free Reader Header */
.reader-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.reader-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-slate);
}

.reader-back-btn:hover {
  color: var(--c-accent);
}

.reader-controls-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.font-size-btn {
  font-size: 13px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  color: var(--c-slate);
}

/* Blinkist Segmented Progress Bar */
.segmented-progress-bar {
  display: flex;
  gap: 6px;
  width: 100%;
  margin-bottom: 22px;
}

.progress-segment {
  height: 4px;
  flex: 1;
  background-color: var(--border-subtle);
  border-radius: 2px;
  transition: background-color 0.25s ease;
}

.progress-segment.completed {
  background-color: var(--c-emerald);
}

.progress-segment.active {
  background-color: var(--c-accent);
}

/* Reader Card */
.reader-content-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.reader-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.reader-blink-counter {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reader-heading {
  font-size: 22px;
  font-weight: 800;
  color: var(--c-ink-heading);
  line-height: 1.3;
  margin-bottom: 18px;
}

.reader-pullquote {
  background-color: var(--hl-yellow);
  color: var(--hl-yellow-text);
  border-left: 4px solid var(--c-warning);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 20px;
  font-family: var(--font-serif-bangla);
}

.reader-body-copy {
  font-family: var(--font-serif-bangla);
  font-size: var(--reader-font-size);
  line-height: var(--reader-line-height);
  color: var(--c-ink);
  margin-bottom: 20px;
}

.reader-body-copy p {
  margin-bottom: 14px;
}

.reader-local-callout {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 22px;
  font-size: 14px;
  line-height: 1.5;
}

.reader-local-header {
  font-size: 12px;
  font-weight: 800;
  color: var(--c-accent);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.reader-takeaways-box {
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  margin-bottom: 20px;
}

.takeaways-heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-slate);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.takeaway-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--c-ink);
  margin-bottom: 8px;
  line-height: 1.45;
}

.takeaway-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--c-emerald);
  margin-top: 7px;
  flex-shrink: 0;
}

/* Reader Sticky Bottom Navigation Bar */
.reader-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 12px 16px;
  box-shadow: var(--shadow-card);
  position: sticky;
  bottom: 80px;
  z-index: 50;
}

.reader-nav-btn {
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.reader-nav-btn.prev {
  color: var(--c-slate);
  border: 1px solid var(--border-subtle);
}

.reader-nav-btn.prev:hover {
  border-color: var(--c-ink);
  color: var(--c-ink);
}

.reader-nav-btn.next {
  background-color: var(--c-accent);
  color: #FFFFFF;
}

.reader-nav-btn.next:hover {
  background-color: var(--c-accent-hover);
}

.reader-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.reader-nav-center-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   SCREEN E: ACTION BLUEPRINT (CHECKLIST SPRINT)
   ========================================================================== */
.blueprint-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.blueprint-header-box {
  margin-bottom: 20px;
}

.blueprint-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.blueprint-outcome-box {
  background-color: var(--c-emerald-light);
  border: 1px solid var(--c-emerald-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.blueprint-outcome-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--c-emerald-text);
  margin-bottom: 4px;
}

.blueprint-outcome-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-ink-heading);
  line-height: 1.4;
}

.checklist-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}

.checklist-item:hover {
  border-color: var(--c-accent);
}

.checklist-item.checked {
  background-color: var(--bg-surface);
  border-color: var(--c-emerald-border);
}

.checklist-item.checked .checklist-text {
  text-decoration: line-through;
  color: var(--c-muted);
}

.custom-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.15s ease;
}

.checklist-item.checked .custom-checkbox {
  background-color: var(--c-emerald);
  border-color: var(--c-emerald);
  color: #FFFFFF;
}

.checklist-text {
  font-size: 14.5px;
  color: var(--c-ink);
  line-height: 1.45;
  flex: 1;
}

/* ==========================================================================
   SHAREABLE QUOTE MODAL & TOAST
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(18, 20, 33, 0.65);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.quote-modal-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-card);
  max-width: 520px;
  width: 100%;
  padding: 24px;
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quote-preview-box {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  font-family: var(--font-serif-bangla);
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-ink);
  white-space: pre-line;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* Sleek Toast */
.toast-msg {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--c-ink-heading);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-elevated);
  z-index: 300;
  display: none;
  pointer-events: none;
}

.toast-msg.show {
  display: block;
  animation: toastFade 2.5s forwards ease;
}

@keyframes toastFade {
  0% { opacity: 0; transform: translate(-50%, 10px); }
  15% { opacity: 1; transform: translate(-50%, 0); }
  80% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -10px); }
}

/* ==========================================================================
   BOTTOM NAVIGATION BAR (MOBILE) & DESKTOP NAV
   ========================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  height: var(--bottom-nav-height);
  z-index: 90;
  display: flex;
  align-items: center;
}

.bottom-nav-inner {
  max-width: var(--app-max-width);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--c-slate);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  min-width: 54px;
}

.nav-item:hover, .nav-item.active {
  color: var(--c-accent);
}

.nav-item.active svg {
  stroke-width: 2.4;
}

.desktop-nav-links {
  display: none;
  align-items: center;
  gap: 16px;
}

.desktop-nav-item {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-slate);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.desktop-nav-item:hover, .desktop-nav-item.active {
  color: var(--c-accent);
  background-color: var(--c-accent-light);
}

.nav-badge-pill {
  font-size: 10.5px;
  font-weight: 800;
  background-color: var(--c-accent-light);
  color: var(--c-accent-text);
  border-radius: var(--radius-pill);
  padding: 2px 6px;
  margin-left: 4px;
}

.flagship-quick-pill {
  display: inline-flex;
  align-items: center;
  background-color: var(--c-accent-light);
  color: var(--c-accent-text);
  border: 1px solid var(--c-accent);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 32px;
  }
  .bottom-nav {
    display: none;
  }
  .desktop-nav-links {
    display: flex;
  }
  .site-link-btn {
    display: inline-flex;
  }
  .reader-bottom-nav {
    bottom: 24px;
  }
}
