/* SmartMuslim Qur'an reader footer navigation — 2026-09-20 */

.quran-reader-footer-nav{
  display:grid;
  grid-template-columns:minmax(0,.82fr) minmax(0,1.55fr);
  gap:10px;
  align-items:stretch;
  margin:18px 0 4px;
}

.quran-reader-footer-nav.is-last-surah{
  grid-template-columns:minmax(0,1fr);
}

.quran-reader-footer-action{
  min-width:0;
  min-height:58px;
  border:1px solid color-mix(in srgb,var(--primary) 24%,var(--border-color));
  border-radius:18px;
  background:color-mix(in srgb,var(--bg-light) 94%,#fff);
  color:var(--primary);
  box-shadow:0 7px 18px rgba(48,61,53,.06);
  font:inherit;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}

.quran-reader-footer-top{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 12px;
}

.quran-reader-footer-top>span{
  font-size:1.12rem;
  font-weight:900;
  line-height:1;
}

.quran-reader-footer-top strong{
  font-size:.82rem;
  font-weight:800;
}

.quran-reader-footer-next{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:9px 13px 9px 15px;
  text-align:left;
  background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 97%,#fff),color-mix(in srgb,var(--primary) 88%,#0a6f55));
  border-color:color-mix(in srgb,var(--primary) 72%,var(--border-color));
  color:#fffdf8;
}

.quran-reader-footer-next[hidden]{
  display:none!important;
}

.quran-reader-footer-copy{
  display:block;
  min-width:0;
}

.quran-reader-footer-copy small{
  display:block;
  margin-bottom:3px;
  color:rgba(255,253,248,.72);
  font-size:.63rem;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.quran-reader-footer-copy strong{
  display:block;
  overflow:hidden;
  color:#fffdf8;
  font-family:var(--font-display,Georgia,serif);
  font-size:.88rem;
  line-height:1.08;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.quran-reader-footer-arrow{
  flex:0 0 auto;
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border:1px solid rgba(255,253,248,.38);
  border-radius:50%;
  font-size:1.05rem;
  font-weight:900;
}

.quran-reader-footer-action:active{
  transform:translateY(1px);
}

@media(max-width:400px){
  .quran-reader-footer-nav{
    gap:8px;
  }

  .quran-reader-footer-action{
    min-height:54px;
    border-radius:16px;
  }

  .quran-reader-footer-top strong{
    font-size:.76rem;
  }

  .quran-reader-footer-next{
    padding:8px 10px 8px 12px;
  }

  .quran-reader-footer-copy strong{
    font-size:.80rem;
  }

  .quran-reader-footer-arrow{
    width:29px;
    height:29px;
  }
}
