/*
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.7.4.0
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;
  width:min(100%, 860px);
  margin:0 auto;
}

@media (min-width: 1100px){
  .hero{
    width:min(100%, 820px);
  }
}

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;
}

.hLine4{
  margin-top:9px;
  padding-top:8px;
  border-top:1px solid rgba(255,255,255,.15);
  font-weight:800;
  font-size:13.5px;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  opacity:.95;
  letter-spacing:0.01em;
}

@keyframes makkahFlash{
  0%, 100%{ opacity:1; }
  50%{ opacity:0.12; }
}

.makkahFlash{
  display:inline-block;
  animation:makkahFlash 1.4s ease-in-out infinite;
}

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

/* Portrait lock fallback — hide UI and show rotate prompt in landscape */
@media screen and (orientation: landscape) and (max-height: 500px){
  .wrap{ display:none; }
  body::after{
    content:"🔄 Please rotate your device to portrait mode";
    display:flex;
    align-items:center;
    justify-content:center;
    height:100vh;
    font-size:18px;
    color:#64748b;
    text-align:center;
    padding:24px;
  }
}

