/* ===================================================================
   fasting-card.css — كارت «تتبع الصيام» في الرئيسية
   حلقة تقدّم للهدف الجاي + آخر ٧ أيام (دوس على اليوم لتسجيله أو إلغائه) + تنبيه ذكي للأيام المستحبة.
   كل الألوان من متغيّرات الموقع فبيمشي مع الدارك/الفاتح/الجمعة.
=================================================================== */
.fast-card{
  --fc:#8a73e8;
  position:relative; overflow:hidden; text-align:center; max-width:100%;
  padding:18px 14px 18px; border-radius:var(--radius); box-shadow:var(--shadow);
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--fc) 20%, transparent), transparent 62%),
    radial-gradient(90% 70% at 0% 100%, color-mix(in srgb, var(--gold) 11%, transparent), transparent 62%),
    var(--surface);
  border:1px solid color-mix(in srgb, var(--fc) 34%, var(--border));
}
.fast-deco{ position:absolute; left:-18px; top:-18px; width:128px; height:128px; opacity:.17; pointer-events:none; }
.fast-deco .fd-moon, .fast-deco .fd-star{ fill:var(--gold-bright); }

.fast-hint{
  position:relative; display:inline-flex; align-items:center; justify-content:center; gap:6px; max-width:calc(100% - 104px);   /* مسافة للجرس يمين وللهلال شمال */
  padding:7px 14px; margin-bottom:16px; border-radius:999px; font-size:.8rem; line-height:1.5; font-weight:700; color:var(--text);
  background:color-mix(in srgb, var(--fc) 14%, var(--surface-2)); border:1px solid color-mix(in srgb, var(--fc) 34%, var(--border));
}
.fast-hint.good{ --fc:var(--gold); }
.fast-hint.done{ --fc:var(--gold-bright); }
.fast-hint.warn{ --fc:#e0805a; }

.fast-main{ position:relative; display:flex; align-items:center; justify-content:center; gap:18px; }
.fast-ring{ position:relative; width:118px; height:118px; flex:none; }
.fast-ring svg{ width:100%; height:100%; transform:rotate(-90deg); display:block; }
.fr-bg{ fill:none; stroke:color-mix(in srgb, var(--fc) 20%, transparent); stroke-width:9; }
.fr-fg{ fill:none; stroke:url(#fastGrad); stroke-width:9; stroke-linecap:round; stroke-dasharray:276.46; stroke-dashoffset:276.46; transition:stroke-dashoffset .9s cubic-bezier(.2,.8,.2,1); }
.fast-ring .fg-a{ stop-color:var(--fc); } .fast-ring .fg-b{ stop-color:var(--gold-bright); }
.fr-num{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; line-height:1; }
.fr-num b{ font-family:var(--font-display); font-size:2.1rem; font-weight:700; color:var(--gold-bright); }
.fr-num small{ margin-top:5px; font-size:.7rem; color:var(--text-dim); }

.fast-side{ flex:1; min-width:0; display:flex; flex-direction:column; gap:10px; text-align:right; }
.fast-next{ font-size:.82rem; line-height:1.6; color:var(--text-dim); }
.fast-next b{ color:var(--gold-bright); font-weight:800; }
.fast-mini{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.fm{ padding:8px 6px; text-align:center; border-radius:12px; background:color-mix(in srgb, var(--fc) 10%, var(--surface-2)); border:1px solid color-mix(in srgb, var(--fc) 24%, var(--border)); }
.fm b{ display:block; font-family:var(--font-display); font-size:1.2rem; line-height:1.2; color:var(--gold-bright); }
.fm small{ font-size:.68rem; color:var(--text-dim); }

.fast-week{ position:relative; display:grid; grid-template-columns:repeat(7, minmax(0,1fr)); gap:4px; margin:18px 0 4px; }
.fw-day{ border:0; background:none; color:inherit; font:inherit; padding:2px 0; display:flex; flex-direction:column; align-items:center; gap:6px; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.fw-dot{
  width:34px; height:34px; border-radius:50%; display:grid; place-items:center; font-size:.95rem; line-height:1;
  border:1.5px dashed color-mix(in srgb, var(--fc) 50%, var(--border)); color:transparent; transition:transform .15s ease, background .25s ease, box-shadow .25s ease;
}
.fw-day:active .fw-dot{ transform:scale(.9); }
.fw-day.on .fw-dot{ border:1.5px solid transparent; color:#fff; background:linear-gradient(135deg, var(--fc), color-mix(in srgb, var(--fc) 55%, #fff)); box-shadow:0 0 12px color-mix(in srgb, var(--fc) 55%, transparent); }
.fw-day.today .fw-dot{ outline:2px solid var(--gold); outline-offset:2px; }
.fw-lbl{ font-size:.66rem; line-height:1.2; color:var(--text-dim); white-space:nowrap; }
.fw-day.today .fw-lbl{ color:var(--gold-bright); font-weight:800; }
.fw-day.sunnah .fw-lbl::after{ content:' •'; color:var(--gold); }
.fast-tip{ position:relative; margin:8px 0 14px; font-size:.72rem; color:var(--text-dim); opacity:.9; }

.fast-btn{ position:relative; width:100%; max-width:340px; font-size:1rem; padding:13px 18px; }
.fast-btn.done{ background:transparent; background-image:none; color:var(--gold-bright); border:1.5px solid var(--gold); box-shadow:none; }
.fast-btn.done:hover{ background:color-mix(in srgb, var(--gold) 14%, transparent); color:var(--gold-bright); }

[data-theme="light"] .fr-num b, [data-theme="light"] .fm b, [data-theme="light"] .fast-next b,
[data-theme="light"] .fw-day.today .fw-lbl, [data-theme="light"] .fast-btn.done{ color:color-mix(in srgb, var(--gold-bright) 55%, #000); }
[data-theme="light"] .fast-deco{ opacity:.22; }
[data-theme="light"] .fast-deco .fd-moon, [data-theme="light"] .fast-deco .fd-star{ fill:var(--gold); }

@media (max-width:380px){
  .fast-main{ gap:12px; } .fast-ring{ width:104px; height:104px; } .fr-num b{ font-size:1.85rem; }
  .fw-dot{ width:30px; height:30px; } .fw-lbl{ font-size:.6rem; }
}
@media (prefers-reduced-motion: reduce){ .fr-fg{ transition:none; } }
