/* ===== Bible “paper” style ===== */
body{
  background: #d9c8a6;
}

.container{
  max-width: 820px;
  margin: 0 auto;
  padding: 14px 12px 34px;
}

.chapter-title{
  font-family: "Noto Sans Armenian", sans-serif;
  font-size: 26px;
  line-height: 1.25;
  margin: 10px 0 14px;
  color: #111;
}

.bible-paper{
  background: #e8d7b2;
  border-radius: 10px;
  padding: 14px 12px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

/* ✅ հիմա սա հղում է, ու պետք է հստակ clickable լինի */
.verse-row{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 2px;

  text-decoration: none;   /* հղման գիծ չերևա */
  color: inherit;
  cursor: pointer;

  position: relative;
  z-index: 1;              /* եթե որևէ բան վերևից ծածկում է՝ սա օգնում է */
}

/* hover effect՝ որ զգացվի, որ ակտիվ է */
.verse-row:hover{
  background: rgba(255,255,255,0.18);
  border-radius: 8px;
}

.verse-num{
  flex: 0 0 32px;
  text-align: right;
  font-family: "Noto Sans Armenian", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #7a6a4a;
  line-height: 1.7;
  user-select: none;
}

.verse-body{
  font-family: "Noto Serif Armenian", serif;
  font-size: 20px;
  line-height: 1.75;
  color: #1b1b1b;
}

.verse-row + .verse-row{
  border-top: 1px solid rgba(0,0,0,0.04);
}

@media (max-width: 600px){
  .container{ max-width: 100%; }
  .chapter-title{ font-size: 24px; }
  .verse-body{ font-size: 19px; }
  .verse-num{ flex-basis: 28px; font-size: 13px; }
}


/* ✅ Stronger "read" state (clear difference) */
.verse-row.read{
  background: rgba(255,255,255,0.45);  /* ավելի տեսանելի բաց ֆոն */
  border: 1px solid rgba(0,0,0,0.10);  /* նուրբ շրջանակ */
  border-radius: 10px;
  padding: 8px 6px;                     /* քիչ ավելի “քարտիկ” զգացում */
}

/* կանաչ համար + ✓ */
.verse-row.read .verse-num{
  color: #1b5e20;
  font-weight: 900;
}

.verse-row.read .verse-num::after{
  content: " ✓";
  color: #1b5e20;
  font-weight: 900;
}

/* տեքստը քիչ ավելի խիտ/մուգ */
.verse-row.read .verse-body{
  color: #111;
  opacity: 1;
}

/* hover-ը թող նույնը, բայց read-ի վրա էլ աշխատի */
.verse-row:hover{
  background: rgba(255,255,255,0.25);
  border-radius: 10px;
}


/* ✅ Gospel page: make chapter items bigger */
.chapters-page ul.chapters-list{
  font-size: 28px;
  line-height: 1.8;
}

.chapters-page ul.chapters-list li{
  margin: 10px 0;
}

.chapters-page ul.chapters-list a.chapter-link{
  font-size: 23px !important;
  font-weight: 700;
  color: #1b1b1b;
  text-decoration: none;
}

.chapters-page ul.chapters-list a.chapter-link:hover{
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

@media (max-width: 600px){
  .chapters-page ul.chapters-list,
  .chapters-page ul.chapters-list a.chapter-link{
    font-size: 26px !important;
  }
}


/* ✅ Chapters: stronger read highlight */
.chapters-page .chapter-link{
  display: block;                 /* որ ֆոնը ամբողջ տողին տրվի */
  padding: 10px 10px;
  border-radius: 10px;
}

/* read state */
.chapters-page .chapter-link.read{
  background: rgba(255, 255, 255, 0.393);   /* տեսանելի բաց ֆոն */
  border-left: 6px solid #1b5e20;       /* կանաչ շերտ */
  padding-left: 12px;                    /* border-ի կողքը գեղեցիկ */
  color: #111;
  opacity: 1;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.chapters-page .chapter-link.read::after{
  content: " ✓";
  color: #1b5e20;
  font-weight: 900;
}

/* hover */
.chapters-page .chapter-link:hover{
  background: rgba(255,255,255,0.22);
}

body{
  background: #D5B77A;   /* ավելի դեղին/ավազագույն */
}

.bible-paper{
  background: #EACD8A;   /* ավելի դեղին թղթային ֆոն */
}


.fab-back{
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 99999;

  display: inline-flex;
  align-items: center;

  padding: 10px 14px;
  border-radius: 999px;

  background: #111;
  color: #fff;
  text-decoration: none;

  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
  opacity: 0.92;
}

.fab-back:hover{ opacity: 1; }



.topbar{
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #fff;
  padding: 10px 0;
}


/* Back-ը թող ինչպես ունես */

/* ✅ Լողացող "մաքրել" կոճակ (Back-ի վերևում) */
.fab-clear{
  position: fixed;
  /* ✅ ներքևում՝ ձախ կողմում (mobile-friendly) */
  left: calc(14px + env(safe-area-inset-left));
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 99999;

  display: inline-flex;
  align-items: center;

  padding: 10px 14px;
  border-radius: 999px;

  background: #f3f3f3;
  color: #111;
  border: 1px solid #ddd;

  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
  opacity: 0.95;
  cursor: pointer;
}

.fab-clear:hover{ opacity: 1; }

/* explanation էջի ներքևի վերադարձը ձախ դասավորել */
.nav-links{
  text-align: left;
}
.nav-links a{
  display: inline-block;
}


/* ✅ միայն ԲԱՑԱՏՐՈՒԹՅԱՆ էջի լողացող վերադարձը՝ ձախ */
.fab-back-expl{
  position: fixed;
  /* ✅ explanation էջում՝ միշտ տեսանելի լինի հեռախոսով */
  left: calc(14px + env(safe-area-inset-left));
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 99999;

  display: inline-flex;
  align-items: center;

  padding: 10px 14px;
  border-radius: 999px;

  background: #111;
  color: #fff;
  text-decoration: none;

  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
  opacity: 0.92;
}

.fab-back-expl:hover{ opacity: 1; }


.fab-home-top{
  position: fixed;
  top: 12px;
  right: 14px;
  z-index: 99999;

  display: inline-flex;
  align-items: center;

  padding: 8px 12px;
  border-radius: 999px;

  background: #111;
  color: #fff;
  text-decoration: none;

  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
  opacity: 0.92;
}

.fab-home-top:hover{ opacity: 1; }


.floating-clear-bottom{
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 9999;
}


.floating-clear-top{
  position: fixed;
  right: 12px;
  top: 56px;   /* Home-ի տակ */
  z-index: 9999;
}

[hidden] { 
  display: none !important; 
}

/* ===========================
   ✅ NEW: Chapters page-ում "մաքրել"-ը դարձնել ստատիկ (միայն այստեղ)
   =========================== */

/* Եթե gospel.html-ում "մաքրել" կոճակը ունի class="fab-clear" */
.chapters-page .fab-clear{
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  z-index: auto !important;

  /* տեսքը նույնն է մնում, պարզապես տեղադրվում է էջի հոսքով */
  margin-top: 14px; /* որ list-ից հետո շնչի */
}

/* Եթե gospel.html-ում "մաքրել"-ը փաթաթված է floating-clear-* կոնտեյներով */
.chapters-page .floating-clear-bottom,
.chapters-page .floating-clear-top{
  position: static !important;
  right: auto !important;
  left: auto !important;
  top: auto !important;
  bottom: auto !important;
  z-index: auto !important;

  margin-top: 14px;
}