/* TAKVIMI.NET — Dhikri, Zgjedhja e parë */
:root{
  color-scheme:light;
  --paper:#f5f1e8;
  --paper-2:#ebe4d5;
  --card:#fffdf8;
  --ink:#18332c;
  --muted:#74827c;
  --forest:#174e40;
  --forest-2:#0f3a30;
  --sage:#b8c7a8;
  --gold:#d8a94c;
  --gold-soft:#f2e4bd;
  --line:#ded8ca;
  --active:#edf0e7;
  --shadow:0 18px 55px rgba(32,50,43,.09);
  --shadow-soft:0 10px 28px rgba(32,50,43,.07);
  --sans:"DM Sans",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --serif:"Fraunces",Georgia,serif;
  --header-h:76px;
}

@media (prefers-color-scheme:dark){
  :root{
    color-scheme:dark;
    --paper:#071d18;
    --paper-2:#0a2821;
    --card:#0e3028;
    --ink:#f5f1e8;
    --muted:#aebbb5;
    --forest:#d8a94c;
    --forest-2:#f0ca75;
    --sage:#769083;
    --gold:#e6b952;
    --gold-soft:#3c3522;
    --line:#24483f;
    --active:#173a31;
    --shadow:0 20px 60px rgba(0,0,0,.24);
    --shadow-soft:0 10px 30px rgba(0,0,0,.18);
  }
  body{background-image:radial-gradient(rgba(245,241,232,.06) .7px,transparent .7px)}
  .site-header{background:rgba(7,29,24,.9);border-bottom-color:var(--line)}
  .brand-logo{background:var(--ink)}
  .btnx.primary{color:#071d18}
}

html[data-theme="dark"]{
  color-scheme:dark;
  --paper:#071d18;
  --paper-2:#0a2821;
  --card:#0e3028;
  --ink:#f5f1e8;
  --muted:#aebbb5;
  --forest:#d8a94c;
  --forest-2:#f0ca75;
  --sage:#769083;
  --gold:#e6b952;
  --gold-soft:#3c3522;
  --line:#24483f;
  --active:#173a31;
  --shadow:0 20px 60px rgba(0,0,0,.24);
  --shadow-soft:0 10px 30px rgba(0,0,0,.18);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{
  min-height:100vh;
  margin:0;
  color:var(--ink);
  font-family:var(--sans);
  background-color:var(--paper);
  background-image:radial-gradient(rgba(24,51,44,.075) .7px,transparent .7px);
  background-size:16px 16px;
}
html[data-theme="dark"] body{background-image:radial-gradient(rgba(245,241,232,.06) .7px,transparent .7px)}
button,a{-webkit-tap-highlight-color:transparent}
button{font:inherit}
[hidden]{display:none!important}
.d-inline-flex{display:inline-flex}
.align-items-center{align-items:center}
.d-none{display:none}
.ms-1{margin-left:.25rem}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:2000;
  width:100%;
  min-height:var(--header-h);
  border-bottom:1px solid rgba(222,216,202,.82);
  background:rgba(245,241,232,.92);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  transition:min-height .2s ease,box-shadow .2s ease;
}
html[data-theme="dark"] .site-header{background:rgba(7,29,24,.9);border-bottom-color:var(--line)}
body.scrolled{--header-h:64px}
body.scrolled .site-header{box-shadow:0 10px 28px rgba(24,51,44,.08)}
.site-header-inner{
  width:min(1180px,100%);
  min-height:var(--header-h);
  margin:0 auto;
  padding:10px 24px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:16px;
  transition:min-height .2s ease,padding .2s ease;
}
.site-header-inner>a{justify-self:center}
.hdr-right{justify-self:end;display:flex;align-items:center}
.menu-btn,.theme-toggle,.menu-close{
  min-width:44px;
  min-height:44px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--card);
  color:var(--ink);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:9px 13px;
  cursor:pointer;
  box-shadow:0 5px 16px rgba(24,51,44,.04);
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
.menu-btn:hover,.theme-toggle:hover,.menu-close:hover{transform:translateY(-1px);border-color:var(--gold);background:var(--gold-soft)}
.menu-btn .bi{font-size:1.25rem}
.sys-ico{width:18px;height:18px;display:block}
.brand-logo{
  display:block;
  width:clamp(154px,18vw,210px);
  height:42px;
  background:var(--forest-2);
  -webkit-mask:url('../../assets/logo.svg') no-repeat center/contain;
  mask:url('../../assets/logo.svg') no-repeat center/contain;
}
html[data-theme="dark"] .brand-logo{background:var(--ink)}

/* Side menu */
.menu-overlay{
  position:fixed;
  inset:var(--header-h) 0 0;
  z-index:1700;
  background:rgba(4,20,16,.48);
  opacity:0;
  transition:opacity .2s ease;
}
.menu-overlay.open{opacity:1}
.side-menu{
  position:fixed;
  top:var(--header-h);
  bottom:0;
  left:0;
  z-index:1800;
  width:min(380px,90vw);
  padding:18px;
  overflow:auto;
  border-right:1px solid var(--line);
  background:var(--paper);
  box-shadow:24px 0 60px rgba(7,29,24,.16);
  transform:translateX(-102%);
  transition:transform .22s ease;
}
.side-menu.open{transform:translateX(0)}
.side-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:3px 1px 18px;border-bottom:1px solid var(--line)}
.side-title{display:flex;align-items:center;gap:11px;color:var(--ink);text-decoration:none;font-family:var(--serif);font-size:1.12rem;font-weight:700}
.side-title small{display:block;margin-top:2px;color:var(--muted);font-family:var(--sans);font-size:.68rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.side-mark{width:43px;height:43px;border:1px solid var(--line);border-radius:50% 50% 48% 48% / 55% 55% 45% 45%;display:grid;place-items:center;color:var(--gold);background:var(--card)}
.side-section{padding:18px 0 2px}
.side-label{display:block;margin:0 7px 9px;color:var(--muted);font-size:.7rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.side-location-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.side-item{min-height:44px;padding:11px 12px;border:1px solid transparent;border-radius:12px;display:flex;align-items:center;gap:9px;color:var(--ink);font-size:.9rem;font-weight:600;text-decoration:none;transition:background .17s ease,border-color .17s ease}
.side-item:hover,.side-item.active{background:var(--active);border-color:var(--line)}
.side-item.active{color:var(--forest-2)}
.side-item .bi{color:var(--gold)}
.side-item.dhikr-link{margin-bottom:5px;background:var(--card);border-color:var(--line)}
.side-item.dhikr-link .bi-chevron-right{margin-left:auto;color:var(--muted);font-size:.76rem}
.side-foot{margin-top:18px;padding:15px 4px 3px;border-top:1px solid var(--line);color:var(--muted);font-size:.72rem;text-align:center}

/* Page */
.wrap{width:min(1120px,calc(100% - 36px));margin:0 auto;padding:48px 0 56px}
.card-wrap{position:relative}
.page-title{
  position:relative;
  margin:0 0 30px;
  padding:39px 0 27px 78px;
  border-bottom:1px solid var(--line);
  color:var(--ink);
  font-family:var(--serif);
  font-size:clamp(2.35rem,6vw,5.2rem);
  font-weight:600;
  line-height:.98;
  letter-spacing:-.045em;
}
.page-title::before{
  content:"☾";
  position:absolute;
  left:0;
  top:50%;
  width:55px;
  height:55px;
  border:1px solid var(--line);
  border-radius:50% 50% 48% 48% / 55% 55% 45% 45%;
  display:grid;
  place-items:center;
  color:var(--gold);
  background:var(--card);
  font-family:Georgia,serif;
  font-size:1.8rem;
  box-shadow:var(--shadow-soft);
  transform:translateY(-18%);
}
.page-title::after{
  content:"DHIKRI  •  TAKVIMI.NET";
  position:absolute;
  top:4px;
  left:80px;
  color:var(--gold);
  font-family:var(--sans);
  font-size:.68rem;
  font-weight:700;
  letter-spacing:.18em;
}
.dua-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:16px;width:100%}
.dua-card{
  position:relative;
  width:100%;
  max-width:none;
  overflow:hidden;
  padding:23px;
  border:1px solid var(--line);
  border-radius:19px;
  background:var(--card);
  box-shadow:var(--shadow-soft);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.dua-card::before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:var(--gold);opacity:.8}
.dua-card:hover{transform:translateY(-2px);border-color:var(--sage);box-shadow:var(--shadow)}
.dua-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:17px}
.dua-no{
  min-width:42px;
  height:38px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:50% 50% 45% 45% / 58% 58% 42% 42%;
  display:inline-grid;
  place-items:center;
  color:var(--forest-2);
  background:var(--paper);
  font-family:var(--serif);
  font-size:1rem;
  font-weight:700;
}
.dua-font{display:inline-flex;gap:7px}
.btn-font{
  min-width:40px;
  min-height:36px;
  padding:7px 9px;
  border:1px solid var(--line);
  border-radius:10px;
  background:transparent;
  color:var(--muted);
  font-size:.78rem;
  font-weight:700;
  cursor:pointer;
}
.btn-font:hover{color:var(--ink);border-color:var(--gold);background:var(--gold-soft)}
.dua-body{--tr:18px;--ct:16px}
.transliteration{margin:0 0 13px;color:var(--ink);font-size:var(--tr);font-weight:700;line-height:1.6;overflow-wrap:anywhere}
.content{margin:0;color:var(--ink);font-family:var(--serif);font-size:var(--ct);font-weight:600;line-height:1.75;overflow-wrap:anywhere}
.hadith{margin:17px 0 0;padding:14px 16px;border-left:3px solid var(--gold);border-radius:0 12px 12px 0;background:var(--paper);color:var(--muted);font-size:.9rem;font-style:italic;line-height:1.6}
.reference{margin:13px 0 0;color:var(--muted);font-size:.75rem;font-weight:600;line-height:1.5}

/* Dhikr actions */
.dua-actions{margin-top:20px;padding-top:16px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}
.primary-wrap,.secondary-wrap{display:flex;align-items:center;gap:8px}
.btnx{
  min-width:43px;
  min-height:43px;
  padding:10px 13px;
  border:1px solid var(--line);
  border-radius:999px;
  background:transparent;
  color:var(--ink);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-size:.86rem;
  font-weight:700;
  cursor:pointer;
  transition:transform .16s ease,background .16s ease,border-color .16s ease;
}
.btnx:hover{transform:translateY(-1px);border-color:var(--gold);background:var(--gold-soft)}
.btnx.primary{min-width:116px;border-color:var(--forest-2);background:var(--forest-2);color:#fffdf8}
html[data-theme="dark"] .btnx.primary{color:#071d18}
.btnx.primary:not(.count-btn):not(.done) .btn-label::before{content:"Lexova"}
.btnx.primary.done{border-color:var(--sage);background:var(--active);color:var(--forest-2)}
.btnx.primary.done .bi{display:none}
.btnx.reload{display:none;min-width:43px;padding:10px}
.btnx.reload.show{display:inline-flex}

/* Footer */
.site-footer{margin-top:40px;padding:25px 0 8px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:24px;color:var(--muted)}
.footer-brand-row{display:flex;align-items:center;gap:12px}
.footer-brand-row p{margin:0;font-family:var(--serif);font-size:.98rem;font-weight:600;color:var(--ink)}
.brand-footer{width:43px;height:28px;display:block;background:var(--forest-2);-webkit-mask:url('../../assets/logo.svg') no-repeat left center/contain;mask:url('../../assets/logo.svg') no-repeat left center/contain}
.footer-actions{display:flex;align-items:center;gap:13px;font-size:.75rem}
.footer-actions a{color:var(--muted);text-decoration:none}
.footer-actions a:hover{color:var(--ink)}
.footer-share{min-height:38px;padding:8px 13px;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--ink);display:inline-flex;align-items:center;gap:8px;font-weight:700;cursor:pointer}
.footer-share .bi{color:var(--gold)}
.footer-share.copied{border-color:var(--sage);background:var(--active)}

@media (max-width:840px){
  .dua-list{grid-template-columns:1fr}
  .wrap{padding-top:32px}
  .page-title{font-size:clamp(2.4rem,9.5vw,4.6rem)}
}

@media (min-width:576px){.d-sm-inline{display:inline}}

@media (max-width:620px){
  :root{--header-h:66px}
  body.scrolled{--header-h:60px}
  .site-header-inner{padding:8px 14px;gap:8px}
  .brand-logo{width:142px;height:34px}
  .theme-toggle{padding:8px 10px}
  .wrap{width:min(100% - 24px,1120px);padding:25px 0 38px}
  .page-title{margin-bottom:18px;padding:43px 0 22px 58px;font-size:clamp(2.1rem,11.7vw,3.45rem);line-height:1.02}
  .page-title::before{left:0;width:45px;height:45px;font-size:1.45rem;transform:translateY(-10%)}
  .page-title::after{left:60px;font-size:.6rem;letter-spacing:.13em}
  .dua-card{padding:19px 17px;border-radius:16px}
  .dua-actions{align-items:stretch;flex-direction:column}
  .primary-wrap,.secondary-wrap{width:100%}
  .btnx.primary{flex:1}
  .secondary-wrap .btnx{flex:1}
  .site-footer{align-items:flex-start;flex-direction:column;gap:18px}
  .footer-actions{width:100%;justify-content:space-between;flex-wrap:wrap}
  .side-location-grid{grid-template-columns:1fr 1fr}
}

@media (max-width:380px){
  .brand-logo{width:122px}
  .page-title{padding-left:0;padding-top:75px}
  .page-title::after{left:0}
  .page-title::before{top:22px;transform:none}
  .side-location-grid{grid-template-columns:1fr}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important}
}

/* v3 — lexim horizontal, më i qetë për sy */
@media (min-width:681px){
  .wrap{width:min(1220px,calc(100% - 44px))}
  .dua-list{display:flex;flex-direction:column;align-items:stretch;gap:14px;width:100%}
  .dua-card{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:start;gap:0 22px;padding:26px 24px}
  .dua-head{margin:0;min-height:100%;padding-right:16px;border-right:1px solid var(--line);flex-direction:column;justify-content:flex-start;gap:14px}
  .dua-no{width:44px;min-width:44px;height:42px;padding:0}
  .dua-font{flex-direction:column;gap:7px}
  .btn-font{width:42px;min-width:42px}
  .dua-body{display:grid;grid-template-columns:minmax(0,1fr) 168px;grid-auto-rows:auto;align-items:start;gap:0 25px;min-width:0}
  .dua-body>.transliteration,.dua-body>.content,.dua-body>.hadith,.dua-body>.reference{grid-column:1;max-width:76ch}
  .dua-body>.transliteration{margin-top:0}
  .dua-actions{grid-column:2;grid-row:1/span 8;align-self:stretch;min-width:0;margin:0;padding:0 0 0 22px;border-top:0;border-left:1px solid var(--line);flex-direction:column;align-items:stretch;justify-content:center;gap:10px}
  .dua-actions .primary-wrap,.dua-actions .secondary-wrap{width:100%;flex-direction:column;align-items:stretch;gap:8px}
  .dua-actions .btnx{width:100%;min-height:44px}
  .dua-actions .secondary-wrap .btnx:first-child::after{content:"Kopjo"}
  .dua-actions .secondary-wrap .btnx:last-child::after{content:"Shpërndaje"}
}

@media (min-width:681px) and (max-width:900px){
  .wrap{width:min(100% - 30px,900px)}
  .dua-card{grid-template-columns:55px minmax(0,1fr);gap:0 16px;padding:22px 18px}
  .dua-head{padding-right:12px}
  .dua-body{grid-template-columns:minmax(0,1fr) 138px;gap:0 16px}
  .dua-actions{padding-left:15px}
  .dua-actions .secondary-wrap .btnx::after{font-size:.75rem}
}

@media (max-width:680px){
  .dua-list{display:flex;flex-direction:column;align-items:stretch;gap:12px;width:100%}
  .dua-card{display:block;padding:18px 16px;border-radius:16px}
  .dua-head{margin-bottom:15px;flex-direction:row;justify-content:space-between}
  .dua-font{flex-direction:row}
  .dua-body{display:block}
  .dua-actions{margin-top:18px;padding:14px 0 0;border-top:1px solid var(--line);border-left:0;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px}
  .dua-actions .primary-wrap{width:auto;min-width:0;flex:1;flex-direction:row}
  .dua-actions .secondary-wrap{width:auto;flex:0 0 auto;flex-direction:row}
  .dua-actions .primary-wrap .btnx.primary{width:100%;min-width:0}
  .dua-actions .secondary-wrap .btnx{width:44px;min-width:44px;padding:10px}
  .dua-actions .secondary-wrap .btnx::after{content:none!important}
}

/* v45 — footer transparent, pa kartë/background në desktop, tablet dhe smartphone */
.site-footer{
  position:relative;
  display:grid;
  grid-template-columns:1fr auto;
  grid-template-areas:"brand share" "meta meta";
  align-items:center;
  gap:10px 18px;
  min-height:0;
  margin:20px 0 max(10px,env(safe-area-inset-bottom));
  padding:16px 0 12px;
  overflow:visible;
  border:0;
  border-top:1px solid var(--line);
  border-radius:0;
  background:transparent;
  background-image:none;
  color:var(--muted);
  box-shadow:none
}
.site-footer::before,.site-footer::after{display:none!important;content:none!important}
.site-footer .footer-brand-row{grid-area:brand;justify-self:start}
.site-footer .brand-footer{width:126px;height:31px;background:var(--forest-2);-webkit-mask:url('../../assets/logo.svg') no-repeat left center/contain;mask:url('../../assets/logo.svg') no-repeat left center/contain}
.site-footer .footer-actions{display:contents}
.site-footer .footer-meta{grid-area:meta;justify-self:center;display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;color:var(--muted);font-size:.67rem;line-height:1.3;text-align:center;flex-wrap:wrap}
.site-footer .footer-meta small{font-size:inherit;white-space:nowrap}
.site-footer .footer-meta>span{color:var(--gold)}
.site-footer .footer-meta a{color:var(--ink);text-decoration:none;font-weight:700}
.site-footer .footer-share{grid-area:share;justify-self:end;width:44px;min-width:44px;height:44px;min-height:44px;margin:0!important;padding:0;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--ink);display:grid;place-items:center;font-size:1rem;cursor:pointer;box-shadow:none}
.site-footer .footer-share span{display:none}
.site-footer .footer-share:hover,.site-footer .footer-share.copied{border-color:var(--gold);background:var(--active);color:var(--forest)}
@media(max-width:1024px){
  .site-footer{grid-template-columns:1fr auto;grid-template-areas:"brand share" "meta meta";margin:16px 0 max(8px,env(safe-area-inset-bottom));padding:14px 0 10px;gap:9px 14px;border-radius:0;background:transparent;background-image:none;box-shadow:none}
  .site-footer .brand-footer{width:112px;height:28px}
  .site-footer .footer-meta{font-size:.66rem;gap:7px}
  .site-footer .footer-share{width:42px;min-width:42px;height:42px;min-height:42px}
}
@media(max-width:350px){.site-footer .brand-footer{width:104px}.site-footer .footer-meta{font-size:.61rem;gap:5px}}


/* v47 — të gjitha kartat e Dhikrit kanë gjithmonë të njëjtën gjerësi */
.dua-list{width:100%!important;align-items:stretch!important}
.dua-card{width:100%!important;max-width:none!important;justify-self:stretch!important;align-self:stretch!important}
@media (min-width:681px){.dua-list{display:flex!important;flex-direction:column!important;align-items:stretch!important}.dua-card{flex:0 0 auto!important}}
@media (max-width:680px){.dua-list{display:flex!important;flex-direction:column!important;align-items:stretch!important}.dua-card{flex:0 0 auto!important}}


/* v48 performance */
.dua-card{content-visibility:auto;contain-intrinsic-size:180px}
@media(max-width:768px){.dua-card{contain-intrinsic-size:220px}}
