/* ==========================================================================
   clock-weather-live.css — نسخه‌ی دوم (روشن، هم‌رنگِ خودِ سایت)
   نسخه‌ی اول (پس‌زمینه‌ی تیره‌ی فارستی) بازخوردِ منفی گرفت: ناهمگون با بقیه‌ی
   کارت‌های روشنِ سایت، کنتراستِ ضعیف. این نسخه کاملاً روی paper-card سفید
   می‌مونه، دقیقاً هم‌خانواده با poll-results.css (که قبلاً تأیید شده).
   الهام: https://21st.dev/@ddoemonn/components/poll-results (سایه‌ی درونیِ لطیف)
         + الگوی «کارتِ شیشه‌ای روشن» رایج در کتابخانه‌های Uiverse/Aceternity —
           فقط تکنیکِ بصری (سایه‌ی نرم + بردرِ ظریف + گرادیانِ خیلی کم‌رنگ)،
           بدونِ کدِ کپی‌شده. متحرک‌سازی با ShnoMotion (همون کتابخانه‌ای که
           poll-results.js استفاده می‌کنه؛ vendor/motion/motion-poll.js).
   منطقِ ساعت/آب‌وهوا (clock.js, weather.js) این‌بار اصلاً دست زده نشد —
   همه‌چیز فقط از بیرون (این CSS + یک اسکریپتِ کاملاً جدا) اضافه شده.
   بازگشت: حذفِ این فایل + خطِ <link>/<script>های clock-weather-* در home.html.
   ========================================================================== */

.clock-weather-row .card-block.widget-clock,
.clock-weather-row .card-block.widget-weather {
    position: relative;
    background: var(--paper-card);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(28,25,23,.05), 0 3px 14px -8px rgba(18,41,30,.18);
    border-top: 3px solid var(--gold);
}
.clock-weather-row .card-block.widget-clock::after,
.clock-weather-row .card-block.widget-weather::after {
    content: "";
    position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(140px 90px at 100% 0%, rgba(217, 164, 65, .09), transparent 70%);
}

/* ── بجِ «زنده» ── */
.cw-live-badge {
    position: absolute; top: 18px; inset-inline-start: 22px;
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 10.5px; font-weight: 700; letter-spacing: .03em;
    color: var(--gold-text, #846022); z-index: 2;
}
.cw-live-dot { position: relative; width: 7px; height: 7px; flex: none; }
.cw-live-dot-core { position: absolute; inset: 0; border-radius: 50%; background: var(--gold-deep, #B5842E); }
.cw-live-dot-ring { position: absolute; inset: 0; border-radius: 50%; animation: cwLiveRipple 2.4s ease-out infinite; }
@keyframes cwLiveRipple {
    0%   { box-shadow: 0 0 0 0 rgba(181, 132, 46, .45); }
    70%  { box-shadow: 0 0 0 7px rgba(181, 132, 46, 0); }
    100% { box-shadow: 0 0 0 0 rgba(181, 132, 46, 0); }
}

/* ── کارتِ ساعت ── */
.widget-clock { text-align: center; padding-top: 30px; }
.live-clock {
    display: inline-block;
    font-size: 34px; font-weight: 800; color: var(--forest-900);
    direction: ltr; font-family: "Vazirmatn"; letter-spacing: .02em;
    text-shadow: 0 1px 0 rgba(255,255,255,.6);
}
.jalali-date { color: var(--ink); font-weight: 600; margin-top: 6px; }
.alt-calendars { color: var(--muted); }
.day-occasions { border-top-color: var(--line); }

/* ── کارتِ آب‌وهوا: پیل‌های جزئیات ── */
.widget-weather { padding-top: 30px; }
.widget-weather .weather-current-main {
    display: flex; align-items: center; gap: 10px; font-size: 17px;
}
.widget-weather .weather-current-main strong { font-size: 26px; color: var(--forest-900); margin-inline-start: auto; }
.widget-weather .weather-details {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 8px; margin-top: 10px;
}
.widget-weather .weather-details span {
    background: rgba(217, 164, 65, .07);
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
    border-radius: 8px; padding: 6px 8px; text-align: center; font-size: 12px; color: var(--ink);
}
.widget-weather .weather-details-extra { grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); }
.widget-weather .weather-day-full:hover { background: rgba(217, 164, 65, .08); }

/* ── ورودِ ملایمِ کارت‌ها هنگامِ دیده‌شدن (ShnoMotion) ── */
.cw-reveal { opacity: 0; transform: translateY(10px); }
.cw-reveal.cw-in { opacity: 1; transform: translateY(0); }

@media (max-width: 480px) {
    .live-clock { font-size: 27px; }
}

/* دسترس‌پذیری */
html.a11y-motion-off .cw-live-dot-ring { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .cw-live-dot-ring { animation: none !important; } }
html.a11y-motion-off .cw-reveal, .cw-reveal { }
html.a11y-motion-off .cw-reveal { opacity: 1 !important; transform: none !important; }
html.a11y-contrast .clock-weather-row .card-block.widget-clock::after,
html.a11y-contrast .clock-weather-row .card-block.widget-weather::after { display: none; }
@media print { .cw-live-badge { display: none; } }
