/* ==========================================================================
   SUPER MUSLIM V6 — HUBS 05 (PRAYER), 06 (RAMADAN/HAJJ/MOON) & 08 (MEET)
   Owned exclusively by WS4 (`sm3/v6-hubs.css` + `sm3/hubs-2.js`)
   ========================================================================== */

/* 1. Consistent Golden Hover/Open Border + Light-Red/White-Inside × Circle (`fb5-12`, `fb5-15`) */
.sm3-plus-bar,
.sm3-card .sm3-plus-bar {
  transition: border-color 0.2s ease, box-shadow 0.22s ease, background-color 0.18s ease;
}

.sm3-plus-bar:hover,
.sm3-card .sm3-plus-bar:hover,
.sm3-plus-bar > summary:hover {
  border-color: rgba(212, 157, 46, 0.78) !important;
}

.sm3-plus-bar:hover,
.sm3-card .sm3-plus-bar:hover {
  box-shadow:
    0 0 0 1px rgba(242, 209, 120, 0.56),
    0 6px 18px rgba(212, 157, 46, 0.14) !important;
}

.sm3-plus-bar[open],
.sm3-card .sm3-plus-bar[open],
.sm3-plus-bar[open]:hover,
.sm3-card .sm3-plus-bar[open]:hover {
  border-color: #D49D2E !important;
  box-shadow:
    0 0 0 1.5px rgba(242, 209, 120, 0.80),
    0 8px 22px rgba(212, 157, 46, 0.17) !important;
}

.sm3-plus-bar[open] > summary .sm3-plus-icon,
.sm3-card .sm3-plus-bar[open] > summary .sm3-plus-icon,
.sm3-sunnah-details[open] > summary .sm3-plus-icon {
  background: #FFF5F7 !important;
  border: 1.5px solid rgba(189, 18, 47, 0.44) !important;
  color: #BD122F !important;
  transform: rotate(45deg);
}

/* Open circle toggle buttons on Hajj steps & Ramadan days (`+` -> light-red/white-inside `×`) */
.sm3-v6-circle-toggle {
  width: 26px;
  height: 26px;
  min-width: 26px;
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-grid !important;
  place-items: center;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1;
  background: #FAF8F7 !important;
  border: 1.2px solid rgba(17, 17, 17, 0.14) !important;
  color: #111111 !important;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.sm3-v6-circle-toggle:hover {
  border-color: rgba(212, 157, 46, 0.82) !important;
}

.sm3-v6-circle-toggle.is-open {
  background: #FFF5F7 !important;
  border: 1.5px solid rgba(189, 18, 47, 0.44) !important;
  color: #BD122F !important;
}

.sm3-v6-open-card {
  border-color: #D49D2E !important;
  box-shadow:
    0 0 0 1.5px rgba(242, 209, 120, 0.78),
    0 8px 20px rgba(212, 157, 46, 0.15) !important;
}

/* 2. Prayer Hub Start-Time-First Tile Polish */
.sm3-pr-hub-tile-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}

/* 3. Zakat al-Fitr Inline `Done` Checkbox Bar (`fb6-16`, `fb6-17`) */
.sm3-zakat-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sm3-zakat-summary-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.sm3-zakat-done-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1.2px solid rgba(17, 17, 17, 0.18);
  background: #FFFFFF;
  color: #111111;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sm3-zakat-done-pill:hover {
  border-color: #D49D2E;
}

.sm3-zakat-done-pill.is-done {
  background: #E9F7F1;
  border-color: rgba(13, 122, 78, 0.45);
  color: #0D7A4E;
}

.sm3-zakat-done-pill input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #0D7A4E;
  cursor: pointer;
}

/* 4. Moon & Hijri Celestial Moon-Disc Day Pills (`fb6-10`, `fb6-11`) */
.sm3-moon-grid14 {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}

.sm3-moon-day-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 3px 6px;
  border-radius: 18px;
  border: 1.4px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(175deg, #171A29 0%, #24213A 100%);
  color: #FFFFFF;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  min-width: 0;
}

.sm3-moon-day-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 157, 46, 0.85);
  box-shadow: 0 6px 14px rgba(17, 17, 17, 0.22);
}

.sm3-moon-day-pill.is-white-day {
  border-color: rgba(212, 157, 46, 0.78);
  background: linear-gradient(175deg, #212238 0%, #312B4A 100%);
}

.sm3-moon-day-pill.is-selected {
  border: 1.8px solid #D49D2E;
  box-shadow:
    0 0 0 2px rgba(242, 209, 120, 0.76),
    0 8px 18px rgba(212, 157, 46, 0.30);
  transform: translateY(-1px);
}

.sm3-moon-disc-svg {
  display: block;
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.42));
}

.sm3-moon-day-greg {
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.05;
  color: #FFFFFF;
}

.sm3-moon-day-hijri {
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.05;
  color: #F2D893;
}

@media (max-width: 520px) {
  .sm3-moon-grid14 {
    gap: 4px;
  }
  .sm3-moon-day-pill {
    padding: 5px 2px 4px;
    border-radius: 13px;
    gap: 3px;
  }
  .sm3-moon-disc-svg {
    width: 26px;
    height: 26px;
  }
  .sm3-moon-day-greg {
    font-size: 10.5px;
  }
  .sm3-moon-day-hijri {
    font-size: 8.8px;
  }
}

/* 5. Hajj Verbatim Two-Box Dedication (`fb7-01`, `fb7-02`, `fb - hu1.png`) */
.sm3-hajj-dua-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 460px;
  min-width: 0;
}

@media (max-width: 720px) {
  .sm3-hajj-dua-stack {
    flex-basis: 100%;
    width: 100%;
  }
}

.sm3-hajj-box-mint {
  background: #DDF2EC;
  border: 1px solid rgba(38, 138, 114, 0.24);
  border-radius: 16px;
  padding: 13px 16px;
  color: #102B24;
  font-size: 13.5px;
  line-height: 1.58;
  font-weight: 500;
  text-align: center;
}

.sm3-hajj-box-cream {
  background: #FCF7EC;
  border: 1px solid rgba(212, 157, 46, 0.30);
  border-radius: 16px;
  padding: 13px 16px;
  color: #1F1B14;
  font-size: 13.5px;
  line-height: 1.58;
  font-weight: 500;
  text-align: center;
}

/* 6. Meet Super Muslims Two-Column Symmetry, Year Window & List Month Headers (`fb8-16`, `fb8-21`, `fb8-22`) */
.sm3-meet-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .sm3-meet-top-grid {
    grid-template-columns: 1fr;
  }
}

.sm3-meet-left-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.sm3-meet-disclaimer {
  margin: auto 0 2px;
  padding: 6px 10px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mocha-soft);
}

.sm3-ev-year-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.sm3-ev-year-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sm3-ev-list-groups {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sm3-ev-list-month-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sm3-ev-list-month-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--sand);
  border: 1px solid rgba(212, 157, 46, 0.34);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #111111;
}

/* 7. Organic Asymmetric Botanical Corner Florals (`Prayer`, `Sacred`, `Meet`) */
.sm3-v6-floral-card {
  position: relative;
  overflow: visible;
}

.sm3-v6-floral-card > :not(.sm3-v6-floral-accent) {
  position: relative;
  z-index: 1;
}

/* Keep the city-search header row & any open dropdown row strictly above sibling prayer tiles */
.sm3-v6-floral-card > .sm3-pr-city-hdr-row {
  z-index: 45 !important;
}

.sm3-v6-floral-card:has(.sm3-pr-city-dropdown-panel, .sm3-lang-picker.is-open, .sm3-bselect-wrap.is-open, .sm3-info-tip-wrap.is-open, .sm3-bp-popover:not([hidden])) {
  z-index: 165 !important;
  overflow: visible !important;
}

.sm3-v6-floral-card > :has(.sm3-pr-city-dropdown-panel, .sm3-lang-picker.is-open, .sm3-bselect-wrap.is-open, .sm3-info-tip-wrap.is-open, .sm3-bp-popover:not([hidden])) {
  z-index: 175 !important;
}

@media (max-width: 680px) {
  .sm3-v6-floral-accent.is-tr-sprig {
    top: 0 !important;
    right: 0 !important;
    width: 48px !important;
  }
  .sm3-v6-floral-accent.is-bl-petal {
    bottom: 0 !important;
    left: 0 !important;
    width: 42px !important;
  }
  .sm3-pr-city-dd-anchor {
    position: static !important;
  }
  .sm3-pr-city-dd-anchor + span {
    display: none !important;
  }
  .sm3-pr-city-dropdown-panel {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    z-index: 280 !important;
  }
  #prCitySearchInput {
    font-size: 16px !important;
  }
  .sm3-pr-city-search-results {
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

.sm3-v6-floral-accent {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  filter: drop-shadow(0 4px 10px rgba(45, 20, 10, 0.09));
}

.sm3-v6-floral-accent.is-tr-sprig {
  top: -6px;
  right: -6px;
  width: 58px;
  opacity: 0.36;
  transform: rotate(12deg);
}

.sm3-v6-floral-accent.is-bl-petal {
  bottom: 8px;
  left: 10px;
  width: 26px;
  opacity: 0.44;
  transform: rotate(-18deg);
}

.sm3-v6-floral-accent.is-br-petal {
  bottom: 8px;
  right: 12px;
  width: 26px;
  opacity: 0.42;
  transform: rotate(19deg);
}

.sm3-v6-floral-accent.is-tr-stem {
  top: -8px;
  right: -4px;
  width: 68px;
  opacity: 0.34;
  transform: rotate(14deg);
}

.sm3-v6-floral-accent.is-bl-sprig {
  bottom: -8px;
  left: -6px;
  width: 54px;
  opacity: 0.28;
  transform: rotate(-16deg);
}

@media (max-width: 680px) {
  .sm3-v6-floral-accent.is-tr-sprig,
  .sm3-v6-floral-accent.is-tr-stem,
  .sm3-v6-floral-accent.is-bl-sprig {
    width: 42px;
    opacity: 0.24;
  }
}
