/* ==========================================================
   دیجی‌لند کیت - استایل‌های اختصاصی تایمر شمارش معکوس شگفت‌انگیز
   نسخه فوق‌العاده مدرن با کارت‌های دیجیتال، پالس نوری و چیدمان RTL
   ========================================================== */

:root {
    --dlct-primary: #e60067;
    --dlct-primary-hover: #c50058;
    --dlct-primary-soft: rgba(230, 0, 103, 0.08);
    --dlct-accent: #ea1d42;
    --dlct-bg: #fff5f7;
    --dlct-border: #fecdd3;
    --dlct-card-bg: #ffffff;
    --dlct-text-dark: #0f172a;
    --dlct-text-muted: #64748b;
    --dlct-radius: 16px;
    --dlct-shadow: 0 4px 20px -2px rgba(230, 0, 103, 0.12);
}

.digiland-countdown-box {
    width: 100%;
    background: var(--dlct-bg);
    border: 1.5px solid var(--dlct-border);
    border-radius: var(--dlct-radius);
    padding: 16px 20px;
    box-sizing: border-box;
    direction: rtl;
    text-align: right;
    box-shadow: var(--dlct-shadow);
    position: relative;
    overflow: hidden;
    margin: 14px 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.digiland-countdown-box::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3.5px;
    background: linear-gradient(90deg, #e60067, #ff3366, #ff758c);
}

.digiland-countdown-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* هدر و تایتل باکس تایمر */
.digiland-countdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.digiland-countdown-pulse {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffe4e6;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.digiland-countdown-pulse svg {
    width: 20px;
    height: 20px;
    color: var(--dlct-primary);
    stroke: currentColor;
    animation: dlPulseRotate 3s infinite linear;
}

.digiland-countdown-pulse::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--dlct-primary);
    opacity: 0.6;
    animation: dlPulseRing 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes dlPulseRing {
    0% { transform: scale(0.9); opacity: 0.8; }
    70% { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(1.4); opacity: 0; }
}

@keyframes dlPulseRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.digiland-countdown-titles {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.digiland-countdown-title {
    margin: 0;
    font-size: 15px;
    font-weight: 900;
    color: var(--dlct-text-dark);
    line-height: 1.4;
}

.digiland-countdown-subtitle {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--dlct-text-muted);
}

/* بلوک‌های تایمر زنده به صورت کارت‌های مدرن LTR */
.digiland-countdown-clock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    direction: ltr; /* ارقام زمان‌سنج استاندارد چپ به راست */
}

.dl-clock-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 52px;
}

.dl-clock-card {
    background: var(--dlct-card-bg);
    border: 1px solid var(--dlct-border);
    border-radius: 10px;
    min-width: 48px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.dl-clock-card::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.04);
}

.dl-clock-val {
    font-size: 18px;
    font-weight: 900;
    color: var(--dlct-primary);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}

.dl-clock-label {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--dlct-text-muted);
}

.dl-clock-sep {
    font-size: 20px;
    font-weight: 900;
    color: var(--dlct-primary);
    margin-top: -14px;
    line-height: 1;
    animation: dlBlink 1s infinite;
}

@keyframes dlBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* پیام اتمام زمان */
.digiland-countdown-expired {
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 800;
    color: #ef4444;
}

.digiland-countdown-box.is-expired .digiland-countdown-clock {
    display: none !important;
}

.digiland-countdown-box.is-expired .digiland-countdown-expired {
    display: inline-flex !important;
}

/* استایل حالت بدون تخفیف یا مخفی در فرانت */
.digiland-countdown-box.is-hidden {
    display: none !important;
}

/* ریسپانسیو */
@media (max-width: 600px) {
    .digiland-countdown-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .digiland-countdown-header {
        flex-direction: column;
        text-align: center;
    }

    .dl-clock-card {
        min-width: 42px;
        height: 38px;
    }

    .dl-clock-val {
        font-size: 16px;
    }

    .dl-clock-segment {
        min-width: 44px;
    }
}