/* ============================================
   استایل ویژه برای متن تخفیف با فونت لالِزار
   Special Styles for Discount Text with Lalezar Font
   ============================================ */

/* 🎯 کلاس‌های اصلی برای متن تخفیف */
.discount-text,
.discount-badge .discount-text,
.special-offer-text {
    font-family: 'Lalezar', 'Estedad', sans-serif !important;
    font-weight: 400;
    font-size: 2.2rem !important;
    letter-spacing: 1px;
    line-height: 1.2;
    color: #FFD700;
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(255, 215, 0, 0.5),
        0 0 25px rgba(255, 215, 0, 0.3);
    position: relative;
    display: inline-block;
    animation: 
        discountBounce 2s ease-in-out infinite,
        discountGlowPulse 3s ease-in-out infinite;
}

/* افکت درخشش طلایی */
.discount-text strong,
.discount-badge strong {
    font-family: 'Lalezar', sans-serif !important;
    font-size: 2.8rem !important;
    color: #FFD700;
    background: linear-gradient(
        45deg,
        #FFD700 0%,
        #FFF8DC 25%,
        #FFD700 50%,
        #FFF8DC 75%,
        #FFD700 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShine 3s linear infinite;
    text-shadow: none;
}

/* انیمیشن درخشش طلایی */
@keyframes goldShine {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* انیمیشن پرش ملایم */
@keyframes discountBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-5px) scale(1.02);
    }
    50% {
        transform: translateY(0) scale(1);
    }
    75% {
        transform: translateY(-3px) scale(1.01);
    }
}

/* انیمیشن درخشش دایره‌ای */
@keyframes discountGlowPulse {
    0%, 100% {
        text-shadow: 
            2px 2px 0px rgba(0, 0, 0, 0.3),
            0 0 10px rgba(255, 215, 0, 0.4),
            0 0 20px rgba(255, 215, 0, 0.2);
    }
    50% {
        text-shadow: 
            2px 2px 0px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(255, 215, 0, 0.7),
            0 0 30px rgba(255, 215, 0, 0.5),
            0 0 40px rgba(255, 215, 0, 0.3);
    }
}

/* 🎨 استایل ویژه برای بج تخفیف */
.discount-badge {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.15) 100%
    );
    backdrop-filter: blur(15px);
    border: 3px solid rgba(255, 215, 0, 0.6);
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.4),
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    animation: badgePulse 2s ease-in-out infinite;
    position: relative;
    overflow: visible;
}

/* افکت چشمک زن دور بج */
.discount-badge::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: inherit;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 215, 0, 0.3),
        transparent
    );
    animation: borderRotate 3s linear infinite;
    z-index: -1;
}

/* افکت ستاره‌های اطراف */
.discount-badge::after {
    content: '✨';
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 1.5rem;
    animation: starTwinkle 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 0 20px rgba(255, 215, 0, 0.4),
            0 8px 32px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 0.6),
            0 12px 40px rgba(0, 0, 0, 0.4);
    }
}

@keyframes borderRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.3) rotate(180deg);
    }
}

/* 🎯 درصد تخفیف با استایل ویژه */
.discount-percent {
    font-family: 'Lalezar', sans-serif !important;
    font-size: 1.8rem !important;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 400;
    letter-spacing: 1px;
    animation: percentZoom 2s ease-in-out infinite;
}

@keyframes percentZoom {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* 📱 بهینه‌سازی موبایل */
@media (max-width: 768px) {
    .discount-text {
        font-size: 1.6rem !important;
    }
    
    .discount-text strong {
        font-size: 2rem !important;
    }
    
    .discount-percent {
        font-size: 1.4rem !important;
    }
    
    .discount-badge::after {
        font-size: 1.2rem;
        top: -10px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .discount-text {
        font-size: 1.3rem !important;
    }
    
    .discount-text strong {
        font-size: 1.6rem !important;
    }
    
    .discount-percent {
        font-size: 1.2rem !important;
    }
}

/* 🌟 کلاس‌های کمکی */
.discount-mega {
    font-size: 3rem !important;
    font-family: 'Lalezar', sans-serif !important;
}

.discount-flash {
    animation: flashEffect 1s ease-in-out infinite !important;
}

@keyframes flashEffect {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.7;
    }
}

/* حذف انیمیشن برای کاربران حساس به حرکت */
@media (prefers-reduced-motion: reduce) {
    .discount-text,
    .discount-badge,
    .discount-percent {
        animation: none !important;
    }
}

