/*
VERSIONING NOTE
Format: major.minor.patch.build

major = big redesign, breaking change, architecture shift
minor = new feature or visible enhancement
patch = bug fix, polish, small non-breaking tweak
build = small iteration within same release line

Keep this version aligned with the HTML release when both files change together.

File: prayer-timetable.css
Version: 1.3.1.11
Purpose: Styles for Home Prayer Timetable
*/
:root{
  --bg:#eef3f8;
  --ink:#0f172a;
  --muted:#64748b;
  --line:#d8e0eb;
  --card:#ffffff;
  --cardBorder:rgba(15,23,42,.10);

  --shadowCard:0 18px 36px rgba(15,23,42,.10), 0 5px 12px rgba(15,23,42,.05);
  --shadowMoon:0 18px 38px rgba(15,23,42,.11), 0 5px 12px rgba(15,23,42,.05);

  --fajr:#2f67d8;
  --fajr-soft:#edf3ff;

  --dhuhr:#c89112;
  --dhuhr-soft:#fff5da;

  --asr:#6f9445;
  --asr-soft:#eff8e2;

  --mughrib:#bf6a36;
  --mughrib-soft:#fdebe2;

  --isha:#3559a8;
  --isha-soft:#ebf1ff;

  --ring-track:rgba(15,23,42,.10);
  --ring-fill:#3b82f6;
}

html, body{ height:100%; }

body{
  margin:0;
  font-family:ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:var(--bg);
  color:var(--ink);
}

.wrap{
  min-height:100dvh;
  padding:
    env(safe-area-inset-top)
    env(safe-area-inset-right)
    env(safe-area-inset-bottom)
    env(safe-area-inset-left);
}

.hero{
  min-height:100dvh;
  background:
    radial-gradient(1000px 240px at 50% -30%, rgba(37,99,235,.08), transparent 62%),
    radial-gradient(800px 220px at 10% 0%, rgba(30,64,175,.06), transparent 58%),
    radial-gradient(800px 220px at 90% 8%, rgba(184,135,18,.05), transparent 58%),
    linear-gradient(180deg, #ffffff, #f8fbff);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

header{
  padding:14px 14px 12px;
  color:#fff;
  text-align:center;
  border-bottom:1px solid rgba(255,255,255,.14);
  box-shadow:inset 0 -1px 0 rgba(255,255,255,.06);
}

header.theme-fajr{
  background:
    radial-gradient(900px 220px at 12% 12%, rgba(255,255,255,.14), transparent 60%),
    radial-gradient(900px 220px at 86% 16%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(180deg, #3973dd, #1c438d);
}

header.theme-dhuhr{
  background:
    radial-gradient(900px 220px at 12% 12%, rgba(255,255,255,.14), transparent 60%),
    radial-gradient(900px 220px at 86% 16%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(180deg, #d49e1d, #9b7007);
}

header.theme-asr{
  background:
    radial-gradient(900px 220px at 12% 12%, rgba(255,255,255,.14), transparent 60%),
    radial-gradient(900px 220px at 86% 16%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(180deg, #7aa24e, #496430);
}

header.theme-mughrib{
  background:
    radial-gradient(900px 220px at 12% 12%, rgba(255,255,255,.14), transparent 60%),
    radial-gradient(900px 220px at 86% 16%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(180deg, #c7753f, #87481f);
}

header.theme-isha{
  background:
    radial-gradient(900px 220px at 12% 12%, rgba(255,255,255,.12), transparent 60%),
    radial-gradient(900px 220px at 86% 16%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(180deg, #3a63bb, #183066);
}

.hLine1{
  font-weight:950;
  font-size:14px;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  opacity:.99;
}

.hLine2{
  margin-top:8px;
  font-weight:900;
  font-size:14px;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  opacity:.98;
}

.hLine3{
  margin-top:7px;
  font-weight:850;
  font-size:12.8px;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  opacity:.95;
}

.list{
  padding:12px 12px 12px;
  flex:1 1 auto;
}

.moonCard,
.weatherCard,
.pRow{
  position:relative;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--cardBorder);
}

.moonCard,
.weatherCard{
  box-shadow:var(--shadowMoon);
  background:
    radial-gradient(900px 160px at 15% 10%, rgba(99,102,241,.12), transparent 55%),
    radial-gradient(900px 160px at 85% 20%, rgba(37,99,235,.08), transparent 55%),
    linear-gradient(135deg, rgba(15,23,42,.03), rgba(255,255,255,.24));
  margin:10px 0 12px;
}

.moonInner,
.weatherInner{
  position:relative;
  z-index:2;
  padding:14px 14px;
}

.moonTop,
.weatherTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.moonLeft,
.weatherMain{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  flex:1 1 auto;
}

.moonBadge,
.weatherEmoji{
  width:46px;
  height:46px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.93);
  border:1px solid rgba(15,23,42,.10);
  box-shadow:0 10px 20px rgba(15,23,42,.08);
  font-size:21px;
  flex:0 0 auto;
}

.moonLabelWrap,
.weatherText{
  min-width:0;
}

.moonName{
  font-weight:950;
  letter-spacing:.2px;
  font-size:17px;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.moonSub,
.weatherSub{
  margin-top:4px;
  color:rgba(15,23,42,.68);
  font-size:12.8px;
  font-weight:850;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.weatherTitle{
  font-weight:950;
  letter-spacing:.2px;
  font-size:15px;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.weatherTemp{
  font-size:20px;
  font-weight:950;
  color:rgba(15,23,42,.86);
  white-space:nowrap;
  flex:0 0 auto;
}

.weatherMeta{
  margin-top:12px;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  font-size:13px;
  font-weight:900;
  color:rgba(15,23,42,.76);
}

.sectionDivider{
  height:1px;
  margin:14px 2px 14px;
  background:linear-gradient(90deg,
    rgba(15,23,42,0),
    rgba(15,23,42,.12),
    rgba(15,23,42,0));
}

.pRow{
  box-shadow:var(--shadowCard);
  background:var(--card);
  margin:10px 0;
}

.pBg{
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:9px;
  z-index:1;
}

.bg-fajr{ background:linear-gradient(180deg, var(--fajr), #224b9c); }
.bg-dhuhr{ background:linear-gradient(180deg, var(--dhuhr), #a97808); }
.bg-asr{ background:linear-gradient(180deg, var(--asr), #547032); }
.bg-mughrib{ background:linear-gradient(180deg, var(--mughrib), #9f5325); }
.bg-isha{ background:linear-gradient(180deg, var(--isha), #24427f); }

.pRow.active{
  box-shadow:0 20px 42px rgba(15,23,42,.12), 0 6px 14px rgba(15,23,42,.06);
}

.pInner{
  position:relative;
  z-index:2;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 12px 12px 18px;
  gap:12px;
}

.pLeft{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:150px;
}

.ico{
  width:64px;
  height:40px;
  border-radius:16px;
  display:grid;
  place-items:center;
  border:1px solid rgba(15,23,42,.10);
  box-shadow:0 10px 20px rgba(15,23,42,.08);
  user-select:none;
  font-size:18px;
  flex:0 0 auto;
  background:linear-gradient(180deg, #ffffff, #f8fafc);
}

.pName{
  font-weight:950;
  letter-spacing:.2px;
  font-size:18px;
}

.pTime{
  font-variant-numeric:tabular-nums;
  font-weight:950;
  letter-spacing:.2px;
  font-size:20px;
  white-space:nowrap;
}

.detail{
  position:relative;
  z-index:2;
  padding:10px 12px 16px 18px;
  display:none;
}

.active .detail{ display:block; }

.meta{
  margin-top:4px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  color:rgba(15,23,42,.72);
  font-size:13px;
  font-weight:850;
}

.metaCenter{
  justify-content:center;
}

.pill{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:0;
  border:none;
  background:transparent;
  box-shadow:none;
  font-weight:900;
}

.pillText{
  display:block;
  text-align:center;
  white-space:nowrap;
}

.ringPill{
  min-height:auto;
}

.ringPillText{
  font-size:11px;
  color:rgba(15,23,42,.75);
}

.ringWrap{
  position:relative;
  width:64px;
  height:42px;
  flex:0 0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
}

.ringSvg{
  width:64px;
  height:30px;
  overflow:visible;
  display:block;
}

.ringTrack{
  fill:none;
  stroke:var(--ring-track);
  stroke-linecap:round;
}

.ringFill{
  fill:none;
  stroke:var(--ring-fill);
  stroke-linecap:round;
  transition:stroke-dashoffset .6s ease;
}

.ringText{
  margin-top:2px;
  font-size:12px;
  font-weight:950;
  color:rgba(15,23,42,.82);
  letter-spacing:-.2px;
  line-height:1;
  text-align:center;
}

.ringPct{
  font-size:.7em;
  margin-left:1px;
}

.footer{
  padding:12px 14px 14px;
  border-top:1px solid rgba(15,23,42,.08);
  text-align:center;
  background:rgba(255,255,255,.78);
  box-shadow:0 -1px 0 rgba(255,255,255,.7);
}

.fTitle{
  font-weight:950;
  font-size:13px;
  letter-spacing:.15px;
  margin-bottom:0;
  color:rgba(30,41,59,.88);
}

#footerSrv{
  display:none !important;
  height:0 !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
}

.fStatusBtn{
  border:none;
  background:transparent;
  padding:0;
  margin:0;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}

.fStatus{
  font-weight:900;
  font-size:12.5px;
  color:rgba(15,23,42,.72);
}

.err{
  display:none;
  padding:12px 16px;
  margin:12px;
  border-radius:14px;
  white-space:pre-wrap;
  background:#fff1f2;
  color:#881337;
  border:1px solid #fecdd3;
  box-shadow:var(--shadowCard);
}

@media (max-width:390px){
  .moonName{ font-size:16px; }
  .pName{ font-size:17px; }
  .pTime{ font-size:18px; }
  .weatherTemp{ font-size:18px; }
}
