
  /* ================= NO COPY ================= */
.no-copy {
  user-select: none;
  -webkit-user-select: none;
}


.icon{line-height:1}

/* =========================
   LANGUAGE SELECT
   ========================= */

.lang-select{
  appearance:none;
  padding:.55rem .9rem;
  border-radius:.75rem;
  border:1px solid #e5e7eb;
  background:#ffffff;
  color:#111827;
  box-shadow:0 1px 2px rgba(0,0,0,.05);
}




#section_id_
{
  font-size: 0.8rem;
  vertical-align: middle;
}

.dark .lang-select,
.dim .lang-select{
  background:#020617;
  border-color:#374151;
  color:#e5e7eb;
}

.translation-it { color: #ffe415a3; }

.lang-wrap{display:flex;gap:.5rem;align-items:center}
.lang-badge{font-size:.75rem;color:#6b7280}
.dark .lang-badge,.dim .lang-badge{color:#9ca3af}

/* =========================
   NAV THEMES
   ========================= */

body.dim .nav {
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0,0,0,.08);
  background-color: #1f29374b;
}

body.dark .nav {
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0,0,0,.08);
  background-color: #17202c4b;
}
/* =========================
   story ITEM (CARD) — SMOOTH HOVER
   ========================= */

.story-item {
  position: relative;
  padding: 1.1rem 1.3rem;
  border-radius: 1.1rem;
  background: #ffffff;
  box-shadow: 0 6px 22px rgba(0,0,0,0.06);

  /* 🔑 Smooth animation */
  transition:
    background-color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s ease;

  will-change: transform;
  scroll-margin-top: 120px;
}

/* Hover lift */
.story-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.12);
}

/* Dark / Dim */
body.dark .story-item,
body.dim .story-item {
  background: rgba(255,255,255,0.05);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

/* Dark / Dim hover */
body.dark .story-item:hover,
body.dim .story-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
}

/* =========================
   MARKED ITEM (NO JANK)
   ========================= */

.story-item.marked {
  background: rgba(59,130,246,0.09);
  border: 1px solid rgba(59,130,246,0.35);
}

/* Keep smooth hover even when marked */
.story-item.marked:hover {
  transform: translateY(-4px);
}

body.dark .story-item.marked,
body.dim .story-item.marked {
  background: rgba(59,130,246,0.14);
}


/* =========================
   BOOKMARK (DUA-STYLE)
   ========================= */

.story-bookmark {
  position: absolute;
  right: .6rem;
  top: 1.5rem;
  width: 26px;
  height: 26px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* DEFAULT — UNSELECTED */
.story-bookmark svg {
  width: 100%;
  height: 100%;
  fill: rgba(59,130,246,0.32);
  transition: fill 0.25s ease, filter 0.25s ease, transform 0.2s ease;
}

/* SELECTED — ONLY WHEN MARKED */
.story-item.marked .story-bookmark svg {
  fill: rgb(59,130,246);
  filter: drop-shadow(0 0 6px rgba(59,130,246,0.45));
}

/* PRESS FEEDBACK */
.story-bookmark:active svg {
  transform: scale(0.92);
}

/* =========================
   FLOATING BOOKMARK BUTTON
   ========================= */
#goToBookmarkBtn {
  position: fixed;
  right: 1.1rem;
  bottom: 6.8rem;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;

  display: none; /* hide by default */
  align-items: center;
  justify-content: center;

  background: rgba(59,130,246,0.14);
  box-shadow: 0 12px 28px rgba(59,130,246,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 999;
}

#goToBookmarkBtn:hover {
  transform: scale(1.08);
}

#goToBookmarkBtn svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: #ffffff;
  fill: none;
}

/* =========================
   HIGHLIGHTS
   ========================= */

.story-content mark {
  padding: 0.05em 0.2em;
  border-radius: 0.25em;
}

.story-content mark[data-color="yellow"] {
  background: rgba(253, 224, 71, 0.6);
}

.story-content mark[data-color="blue"] {
  background: rgba(59, 130, 246, 0.35);
}

body.dark .story-content mark[data-color="yellow"],
body.dim .story-content mark[data-color="yellow"] {
  background: rgba(253, 224, 71, 0.45);
}

body.dark .story-content mark[data-color="blue"],
body.dim .story-content mark[data-color="blue"] {
  background: rgba(59, 130, 246, 0.45);
}

/* =========================
   LAST READ
   ========================= */

.story-item.last-read {
  outline: 2px solid rgba(59,130,246,0.45);
  outline-offset: 2px;
}




/* storyhtml.css */





header {
  backdrop-filter: blur(14px);
  transition: background .3s ease, box-shadow .3s ease;
}





.section-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}






.example {
  color: #6b7280;
}
.translation {
  color: #10b981; /* green for English */
}
.translation-ur {
  color: #f97316; /* orange for Urdu */
}
.translation-it {
  color: #000000a3; /* orange for italy */
}

body.dim .translation-it
{
  color: #dedede
}
body.dark .translation-it
{
  color: #d3d3d3
}

.nav {
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0,0,0,.08);
}


/* --- New design ------- */
.card {
  border-radius: 1.25rem;
  padding: 1.6rem;
  margin-bottom: 1rem;
}




.story-content {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}


.translation {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.translation.hidden {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}


.story-bookmark {
  opacity: 0.6;
}

.story-item:hover .story-bookmark {
  opacity: 1;
}




.story-item audio {
  margin-top: 1rem;
}


/*---- apple book feeling ----*/


/* =========================
   READING FOUNDATION
   ========================= */

html {
  font-size: 16px;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}


.story-item {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}


.letter {
  font-size: 1.18rem;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.01em;
  color: #111827;
}


body.dark .letter,
body.dim .letter {
  color: #e5e7eb;
}


#section_id_ {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.5;
}

.icon {
  font-size: 2.1rem;
  margin-right: 0.25rem;
  opacity: 0.9;
}


.translation {
  font-size: 0.95rem;
  line-height: 1.6;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(0,0,0,0.08);
  opacity: 0.9;
}


.translation-en { color: #2563eb; }
.translation-ur { color: #f97316; }

body.dark .translation,
body.dim .translation {
  border-left-color: rgba(255,255,255,0.15);
}


.story-content > * + * {
  margin-top: 0.65rem;
}





body.dark .story-item {
  background: #0f172a;
}

body.dim .story-item {
  background: #161e2f;
}



.story-item audio {
  opacity: 0.85;
}

.story-item audio:hover {
  opacity: 1;
}


