/* wm-bridge.css — production additions to the Warm Edition prototype.
   Keeps wm.css (the design handoff) pristine. */

/* ───────────────────────────────────────────────────────────
   Smart Card — context-aware hero (tasyriq, arafah, dhuha…)
   ─────────────────────────────────────────────────────────── */
.wm-app .wm-smart-card {
  position: relative;
  margin: 14px 18px 0;
  padding: 18px 18px 16px;
  border-radius: 20px;
  overflow: hidden;
  color: var(--ink, #2C2A22);
  background: var(--white, #FFFFFF);
  border: 1px solid var(--line, #ECE4D3);
  box-shadow: 0 8px 22px rgba(60,50,30,0.05);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.wm-app .wm-smart-card:active { transform: scale(0.985); }

.wm-app .wm-smart-card.tone-gold {
  background: linear-gradient(135deg, #F4EBD4 0%, #FBF7EF 60%);
  border-color: #E0CE9C;
}
.wm-app .wm-smart-card.tone-green {
  background: linear-gradient(135deg, #E7EFE7 0%, #FBF7EF 60%);
  border-color: #B6CFBC;
}
.wm-app .wm-smart-card.tone-deep {
  background: linear-gradient(135deg, #2E5642 0%, #3C6B54 100%);
  border-color: #2E5642;
  color: #FBF7EF;
}
.wm-app .wm-smart-card.tone-clay {
  background: linear-gradient(135deg, #F1E4D8 0%, #FBF7EF 60%);
  border-color: #D6B69A;
}

.wm-app .wm-sc-motif {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,255,255,0.35), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(176,138,69,0.08), transparent 50%);
  pointer-events: none;
}

.wm-app .wm-sc-eye {
  position: relative;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--goldD, #8E6E33);
  margin-bottom: 8px;
}
.wm-app .wm-smart-card.tone-deep .wm-sc-eye {
  color: #D4AF37;
}

.wm-app .wm-sc-ar {
  position: relative;
  font-family: 'Amiri', serif;
  font-size: 23px;
  line-height: 1.3;
  color: var(--gold, #B08A45);
  margin-bottom: 6px;
  direction: rtl;
}
.wm-app .wm-smart-card.tone-deep .wm-sc-ar {
  color: #D4AF37;
}

.wm-app .wm-sc-title {
  position: relative;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--ink, #2C2A22);
  line-height: 1.15;
  margin-bottom: 4px;
}
.wm-app .wm-smart-card.tone-deep .wm-sc-title {
  color: #FBF7EF;
}

.wm-app .wm-sc-sub {
  position: relative;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink2, #736E60);
  margin-bottom: 14px;
}
.wm-app .wm-smart-card.tone-deep .wm-sc-sub {
  color: rgba(251,247,239,0.85);
}

.wm-app .wm-sc-cta {
  position: relative;
  display: inline-block;
  padding: 8px 16px;
  background: var(--green, #3C6B54);
  color: #FBF7EF;
  border: none;
  border-radius: 14px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.wm-app .wm-smart-card.tone-gold .wm-sc-cta {
  background: var(--gold, #B08A45);
}
.wm-app .wm-smart-card.tone-deep .wm-sc-cta {
  background: #D4AF37;
  color: #1A1A2A;
}
.wm-app .wm-smart-card.tone-clay .wm-sc-cta {
  background: var(--clay, #A9724E);
}
.wm-app .wm-sc-cta:active { transform: scale(0.96); }

/* Ummah Berzikir now uses the standard .wm-entry pill (see wm.css) */

/* ───────────────────────────────────────────────────────────
   Musafir live status banner
   ─────────────────────────────────────────────────────────── */
.wm-app .wm-msf-live {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 18px 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #F4EBD4 0%, #FBF7EF 100%);
  border: 1px solid #E0CE9C;
}
.wm-app .wm-msf-live-mukim {
  background: linear-gradient(135deg, #E7EFE7 0%, #FBF7EF 100%);
  border-color: #B6CFBC;
}
.wm-app .wm-msf-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold, #B08A45);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(176,138,69,0.18);
  animation: wm-msf-pulse 2s ease-in-out infinite;
}
.wm-app .wm-msf-live-mukim .wm-msf-dot {
  background: var(--green, #3C6B54);
  box-shadow: 0 0 0 3px rgba(60,107,84,0.18);
}
@keyframes wm-msf-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.wm-app .wm-msf-live-body {
  flex: 1;
}
.wm-app .wm-msf-live-title {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  color: var(--ink, #2C2A22);
  margin-bottom: 2px;
}
.wm-app .wm-msf-live-sub {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  color: var(--ink2, #736E60);
  line-height: 1.4;
}
.wm-app .wm-msf-flag {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

/* ───────────────────────────────────────────────────────────
   Musafir smart-card — country-themed gradient + flag + stripe
   ─────────────────────────────────────────────────────────── */
.wm-app .wm-smart-card.wm-sc-musafir {
  padding-bottom: 22px;
  border-width: 0;
  box-shadow: 0 14px 32px rgba(0,0,0,0.22);
  color: #FBF7EF;
}
.wm-app .wm-sc-eye-musafir {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
}
.wm-app .wm-sc-flag {
  font-size: 18px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}
.wm-app .wm-sc-ar-musafir {
  color: rgba(255,255,255,0.92);
}
.wm-app .wm-sc-title-musafir {
  color: #FBF7EF;
}
.wm-app .wm-sc-sub-musafir {
  color: rgba(255,255,255,0.82);
}
.wm-app .wm-sc-musafir .wm-sc-cta {
  background: rgba(255,255,255,0.95);
  color: #1F1F2A;
}
.wm-app .wm-sc-accent {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  pointer-events: none;
}
