/* Alaa Beauty Studio — compact single-line prayer widget at the top of the page.
   Sits between the topbar and <header>. Full-width responsive band; horizontal flex
   on desktop and tablet, stacked column on small mobile. */

.prayer-band {
  padding: 6px 0;
  background: linear-gradient(180deg, #fff7f3, #fff1ec);
}

#prayerWidget {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 8px 16px;
  background: #fff0f2;
  border: 2px solid #d65a72;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

#prayerWidget .prayer-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

/* Each segment within the row */
#prayerWidget .prayer-meta,
#prayerWidget .prayer-block {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  white-space: nowrap;
  flex: 0 1 auto;
  min-width: 0;
}

#prayerWidget .prayer-meta {
  background: transparent;
  border: 0;
  padding: 0;
}

#prayerWidget .prayer-block {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #f3c5c0;
  border-radius: 12px;
}

#prayerWidget .prayer-meta > *,
#prayerWidget .prayer-block > * {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#prayerWidget .prayer-date {
  font-family: Georgia, serif;
  color: #321716;
  font-size: 13px;
  font-weight: 700;
}

#prayerWidget .prayer-clock {
  color: #b9445b;
  font-size: 16px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}

#prayerWidget .prayer-location {
  color: #76534f;
  font-size: 11px;
  font-weight: 700;
}

#prayerWidget .prayer-pill {
  background: linear-gradient(135deg, #d65a72, #b9445b);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}

#prayerWidget .prayer-pill.light {
  background: #fff;
  color: #b9445b;
  border: 1px solid #f3c5c0;
}

#prayerWidget .prayer-name {
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 800;
  color: #321716;
}

#prayerWidget .prayer-time,
#prayerWidget .prayer-countdown,
#prayerWidget .prayer-passed {
  font-size: 12px;
  font-weight: 700;
  color: #76534f;
  font-variant-numeric: tabular-nums;
}

#prayerWidget .prayer-countdown {
  color: #b9445b;
  font-weight: 900;
}

#prayerWidget .prayer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(214, 90, 114, 0.18);
  flex-wrap: wrap;
}

#prayerWidget .prayer-toggle {
  appearance: none;
  background: transparent;
  border: 1px solid #f3c5c0;
  color: #b9445b;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}
#prayerWidget .prayer-toggle:hover { background: #fff7f3; }

#prayerWidget .prayer-privacy {
  font-size: 10px;
  color: #76534f;
  font-weight: 600;
  flex: 1 1 auto;
  text-align: right;
}

/* Location bar (Use my location / city input / Change location) */
#prayerWidget .prayer-location-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(214, 90, 114, 0.18);
}

#prayerWidget .prayer-location-bar [hidden] { display: none !important; }

#prayerWidget .prayer-btn {
  appearance: none;
  border: 1px solid #d65a72;
  background: #fff;
  color: #b9445b;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
#prayerWidget .prayer-btn:hover { background: #fff0f2; }
#prayerWidget .prayer-btn:disabled { opacity: 0.6; cursor: progress; }

#prayerWidget .prayer-btn-primary {
  background: linear-gradient(135deg, #d65a72, #b9445b);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(214, 90, 114, 0.25);
}
#prayerWidget .prayer-btn-primary:hover { filter: brightness(1.05); background: linear-gradient(135deg, #d65a72, #b9445b); }

#prayerWidget .prayer-btn-ghost {
  background: transparent;
  color: #76534f;
  border-color: #f3c5c0;
}

#prayerWidget .prayer-city-form {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 320px;
  min-width: 0;
}

#prayerWidget .prayer-city-label {
  font-size: 11px;
  font-weight: 700;
  color: #76534f;
  white-space: nowrap;
}

#prayerWidget #prayerCityInput {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid #f3c5c0;
  border-radius: 999px;
  background: #fff;
  color: #321716;
}
#prayerWidget #prayerCityInput:focus {
  outline: none;
  border-color: #d65a72;
  box-shadow: 0 0 0 3px rgba(214, 90, 114, 0.18);
}

#prayerWidget .prayer-status {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #76534f;
  min-height: 14px;
}
#prayerWidget .prayer-status.is-info { color: #b9445b; }
#prayerWidget .prayer-status.is-error { color: #b00020; }

@media (max-width: 720px) {
  #prayerWidget .prayer-location-bar {
    flex-direction: column;
    align-items: stretch;
  }
  #prayerWidget .prayer-city-form { flex: 1 1 auto; flex-wrap: wrap; }
  #prayerWidget .prayer-city-label { width: 100%; white-space: normal; }
  #prayerWidget #prayerCityInput { flex: 1 1 100%; }
  #prayerWidget .prayer-btn { width: 100%; text-align: center; }
  #prayerWidget .prayer-foot { flex-direction: column; align-items: stretch; }
  #prayerWidget .prayer-privacy { text-align: left; }
}

#prayerWidget .prayer-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #f3c5c0;
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

#prayerWidget .prayer-list[hidden] { display: none; }

#prayerWidget .prayer-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  background: #fff7f3;
  border: 1px solid #f3c5c0;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
}

#prayerWidget .prayer-list li b { color: #b9445b; margin-right: 4px; }

/* Tablet: still single line but smaller spacing */
@media (max-width: 1024px) {
  #prayerWidget .prayer-row { gap: 8px; }
  #prayerWidget .prayer-block { padding: 4px 8px; gap: 6px; }
  #prayerWidget .prayer-name { font-size: 12px; }
  #prayerWidget .prayer-time,
  #prayerWidget .prayer-countdown,
  #prayerWidget .prayer-passed { font-size: 11px; }
  #prayerWidget .prayer-clock { font-size: 14px; }
}

/* Mobile small: stack vertically */
@media (max-width: 720px) {
  #prayerWidget {
    padding: 8px 12px;
    border-radius: 12px;
  }
  #prayerWidget .prayer-row {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  #prayerWidget .prayer-meta,
  #prayerWidget .prayer-block {
    width: 100%;
    justify-content: space-between;
  }
  #prayerWidget .prayer-list { grid-template-columns: repeat(3, 1fr); }
}

/* Legacy next/previous blocks are superseded by the NOW PRAYING card below. */
#prayerWidget #nextPrayerBlock,
#prayerWidget #previousPrayerBlock { display: none !important; }

/* ---- NOW PRAYING card + per-prayer status bar ---- */
#prayerWidget .now-praying {
  margin: 12px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ecfdf3, #f4fff8);
  border: 2px solid #34c759;
  box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.12);
  animation: alaaNowPulse 2.4s ease-in-out infinite;
}
@keyframes alaaNowPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.12); }
  50%      { box-shadow: 0 0 0 7px rgba(52, 199, 89, 0.05); }
}
#prayerWidget .np-head {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 900; letter-spacing: 1.4px;
  color: #1e8449; text-transform: uppercase;
}
#prayerWidget .np-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #34c759;
  box-shadow: 0 0 0 0 rgba(52,199,89,.6); animation: alaaDot 1.6s infinite;
}
@keyframes alaaDot { 0%{box-shadow:0 0 0 0 rgba(52,199,89,.5)} 70%{box-shadow:0 0 0 7px rgba(52,199,89,0)} 100%{box-shadow:0 0 0 0 rgba(52,199,89,0)} }
#prayerWidget .np-name {
  font-family: Georgia, serif; font-size: 26px; font-weight: 900;
  color: #14532d; margin: 4px 0 6px; line-height: 1.1;
}
#prayerWidget .np-times { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #2f6b48; }
#prayerWidget .np-times b { color: #14532d; }
#prayerWidget .np-next {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed #b7e4c7; flex-wrap: wrap;
}
#prayerWidget .np-next-label { font-size: 13px; color: #2f6b48; }
#prayerWidget .np-next-label b { color: #14532d; }
#prayerWidget .np-countdown {
  font-variant-numeric: tabular-nums; font-weight: 900; font-size: 20px;
  color: #b9445b; letter-spacing: 0.5px;
}

#prayerWidget .prayer-statusbar {
  list-style: none; margin: 10px 0 0; padding: 0;
  display: flex; gap: 6px; flex-wrap: wrap;
}
#prayerWidget .prayer-statusbar li {
  flex: 1 1 auto; min-width: 64px; text-align: center;
  font-size: 11px; font-weight: 800; padding: 7px 6px; border-radius: 10px;
  border: 1px solid #efd2cc; background: #fff; color: #76534f;
  display: flex; flex-direction: column; gap: 2px; line-height: 1.2;
}
#prayerWidget .prayer-statusbar li .ps-time { font-weight: 700; font-size: 10px; opacity: .85; }
#prayerWidget .prayer-statusbar li.is-done    { background: #e8f7ee; border-color: #bfe6cd; color: #1e8449; }
#prayerWidget .prayer-statusbar li.is-current { background: #eaf1fe; border-color: #1a73e8; color: #1a5fd0; box-shadow: 0 0 0 3px rgba(26,115,232,.18); }
#prayerWidget .prayer-statusbar li.is-next    { background: #fff3e6; border-color: #f0a35a; color: #b9651b; box-shadow: 0 0 0 3px rgba(240,163,90,.18); }
@media (max-width: 560px) {
  #prayerWidget .prayer-statusbar li { min-width: calc(33.333% - 6px); }
  #prayerWidget .np-name { font-size: 22px; }
}
