/* ===================================================================
   bottom-nav.css — شريط التنقل السفلي (موبايل فقط، أقل من 769px)
   رئيسية • مصحف • أذكار • سبحة • رحلتي
=================================================================== */
.bnav{ display:none; }
@media (max-width: 768px){
  body.has-bnav{ padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .bnav{
    display:flex; align-items:stretch; gap:2px;
    position:fixed; left:0; right:0; bottom:0; z-index:8000; direction:rtl;
    padding:6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--surface, #121f3b) 93%, transparent);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top:1px solid color-mix(in srgb, var(--gold, #c9a24b) 42%, var(--border, rgba(201,162,75,.25)));
    box-shadow:0 -8px 26px rgba(0,0,0,.22);
    transition: transform .3s ease;
  }
  [data-theme="light"] .bnav{ box-shadow:0 -6px 20px rgba(0,0,0,.08); }
  .bnav.bnav-hide{ transform: translateY(115%); }
  .bnav a{
    position:relative; flex:1 1 0; min-width:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
    padding:4px 2px 3px; text-decoration:none; color: var(--text-dim, #a9b3c9);
    font-family:inherit; font-size:.66rem; font-weight:700; line-height:1.2;
    -webkit-tap-highlight-color: transparent; transition: color .2s ease;
  }
  .bnav .bn-ico{
    width:46px; height:28px; border-radius:99px; display:grid; place-items:center;
    transition: background .25s ease, transform .25s cubic-bezier(.34,1.56,.64,1);
  }
  .bnav svg{ width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
  .bnav a:active .bn-ico{ transform:scale(.9); }
  .bnav a.on{ color: var(--gold-bright, #e6c877); }
  [data-theme="light"] .bnav a.on{ color: color-mix(in srgb, var(--gold-bright, #fbbf24) 55%, #000); }
  .bnav a.on .bn-ico{ background: color-mix(in srgb, var(--gold, #c9a24b) 24%, transparent); transform:translateY(-1px); }
  .bnav a.bn-swipe{ color: var(--gold-bright, #e6c877); }
  [data-theme="light"] .bnav a.bn-swipe{ color: color-mix(in srgb, var(--gold-bright, #fbbf24) 55%, #000); }
  .bnav a.bn-swipe .bn-ico{ background: color-mix(in srgb, var(--gold, #c9a24b) 34%, transparent); transform:scale(1.14); }
  .bnav a.on::before{
    content:''; position:absolute; top:-7px; left:50%; width:28px; height:3px; border-radius:0 0 5px 5px;
    background: var(--gold, #c9a24b); transform:translateX(-50%);
  }
  .bnav .bn-dot{
    position:absolute; top:1px; left:calc(50% + 8px); width:9px; height:9px; border-radius:50%;
    background:#e0685a; box-shadow:0 0 0 2px var(--surface, #121f3b);
    animation: bnPulse 2.2s ease-in-out infinite;
  }
  @keyframes bnPulse{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.25); } }

  /* العناصر العائمة الثانية ترتفع فوق الشريط */
  body.has-bnav .toast{ bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  body.has-bnav .preview-confirm-bar{ bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
}
@media print{ .bnav{ display:none !important; } body.has-bnav{ padding-bottom:0 !important; } }
@media (prefers-reduced-motion:reduce){ .bnav, .bnav .bn-ico{ transition:none; } .bnav .bn-dot{ animation:none; } }
[data-reduce-motion="1"] .bnav, [data-reduce-motion="1"] .bnav .bn-ico{ transition:none; }
[data-reduce-motion="1"] .bnav .bn-dot{ animation:none; }
