/* 
 * استایل ویجت نمایش تخفیف محصول
 * Woolements Discount Widget Styles
 */

.woolements-discount-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    margin: 20px 0;
    transition: all 0.3s ease;
    direction: rtl;
}

.woolements-discount-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}


/* استایل نشان تخفیف */

.woolements-discount-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    flex-wrap: wrap;
    position: relative;
    overflow: visible;
    backdrop-filter: none;
    transition: all 0.3s ease;
}


/* استایل متن قبل از تخفیف (prefix) */

.woolements-discount-prefix {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}


/* استایل مقدار تخفیف (value) */

.woolements-discount-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 20px 30px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 700;
    position: relative;
    overflow: hidden;
}


/* افکت شایین (Shine effect) */

.woolements-discount-value::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient( 45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}


/* نوع: درصد (Percentage) */

.woolements-discount-value.type-percentage {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5f 100%);
    color: #ffffff;
    min-width: 120px;
    cursor: default;
}

.woolements-discount-value.type-percentage:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.woolements-discount-value.type-percentage .discount-amount-main {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
}

.woolements-discount-value.type-percentage .discount-value {
    font-size: 48px;
    line-height: 1;
    font-weight: 900;
    display: flex;
    align-items: flex-start;
}

.woolements-discount-value.type-percentage .discount-symbol {
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    opacity: 0.95;
}

.woolements-discount-value.type-percentage .discount-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-top: 2px;
}


/* نوع: مبلغ (Amount) */

.woolements-discount-value.type-amount {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #ffffff;
    min-width: 140px;
    cursor: default;
}

.woolements-discount-value.type-amount:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.woolements-discount-value.type-amount .discount-amount-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.woolements-discount-value.type-amount .discount-value {
    font-size: 36px;
    line-height: 1;
    font-weight: 900;
}

.woolements-discount-value.type-amount .discount-currency {
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    opacity: 0.95;
}

.woolements-discount-value.type-amount .discount-space {
    width: 6px;
    height: 1px;
}

.woolements-discount-value.type-amount .discount-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-top: 2px;
}


/* نوع: هر دو (Both) */

.woolements-discount-value.type-both {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: #ffffff;
    min-width: 180px;
    cursor: default;
}

.woolements-discount-value.type-both:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.3);
}

.woolements-discount-value.type-both .discount-both-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    direction: rtl;
}

.woolements-discount-value.type-both .discount-percentage {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
}

.woolements-discount-value.type-both .discount-percentage .discount-value {
    font-size: 36px;
    line-height: 1;
    font-weight: 900;
}

.woolements-discount-value.type-both .discount-percentage .discount-symbol {
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
    opacity: 0.95;
}

.woolements-discount-value.type-both .discount-separator {
    font-size: 18px;
    font-weight: 700;
    opacity: 0.7;
}

.woolements-discount-value.type-both .discount-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.woolements-discount-value.type-both .discount-amount .discount-value {
    font-size: 32px;
    line-height: 1;
    font-weight: 900;
}

.woolements-discount-value.type-both .discount-amount .discount-currency {
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    opacity: 0.95;
}

.woolements-discount-value.type-both .discount-amount .discount-space {
    width: 4px;
    height: 1px;
}

.woolements-discount-value.type-both .discount-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.85;
    width: 100%;
    text-align: center;
    margin-top: 3px;
}


/* استایل متن بعد از تخفیف (suffix) */

.woolements-discount-suffix {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}


/* استایل تایمر شمارش معکوس */

.woolements-discount-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
    margin-top: 10px;
}

.woolements-timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 65px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.woolements-timer-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}


/* ثانیه با رنگ متفاوت */

.woolements-timer-item.seconds-item {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5f 100%);
    border-color: rgba(255, 107, 107, 0.5);
}

.woolements-timer-item.seconds-item:hover {
    background: linear-gradient(135deg, #ff7777 0%, #ee6a6f 100%);
    border-color: rgba(255, 107, 107, 0.8);
}

.woolements-timer-number {
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    display: block;
    direction: ltr;
}

.woolements-timer-label {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}


/* انیمیشن‌ها */

@keyframes pulse-animation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes flip-animation {
    0% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(90deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}

@keyframes zoom-animation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bounce-animation {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotate-animation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes shake-animation {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

@keyframes slide-animation {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.woolements-timer-item.pulse-animation {
    animation: pulse-animation 0.4s ease-in-out;
}

.woolements-timer-item.flip-animation {
    animation: flip-animation 0.5s ease-in-out;
}

.woolements-timer-item.zoom-animation {
    animation: zoom-animation 0.4s ease-in-out;
}

.woolements-timer-item.bounce-animation {
    animation: bounce-animation 0.6s ease-in-out;
}

.woolements-timer-item.rotate-animation {
    animation: rotate-animation 0.6s linear;
}

.woolements-timer-item.shake-animation {
    animation: shake-animation 0.5s ease-in-out;
}

.woolements-timer-item.slide-animation {
    animation: slide-animation 0.4s ease-out;
}


/* پیام انقضا */

.woolements-timer-expired {
    text-align: center;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}


/* Responsive */

@media (max-width: 768px) {
    .woolements-discount-container {
        padding: 20px;
    }
    .woolements-discount-badge {
        padding: 15px 20px;
    }
    .woolements-discount-value {
        padding: 15px 20px;
        min-width: auto;
    }
    .woolements-discount-value.type-percentage .discount-value {
        font-size: 36px;
    }
    .woolements-discount-value.type-percentage .discount-symbol {
        font-size: 20px;
    }
    .woolements-discount-value.type-amount .discount-value {
        font-size: 28px;
    }
    .woolements-discount-value.type-amount .discount-currency {
        font-size: 14px;
    }
    .woolements-discount-timer {
        gap: 10px;
        padding: 15px 20px;
    }
    .woolements-timer-item {
        min-width: 55px;
        width: 55px;
        height: 55px;
    }
    .woolements-timer-number {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .woolements-discount-value {
        padding: 12px 16px;
    }
    .woolements-discount-value.type-percentage .discount-value {
        font-size: 28px;
    }
    .woolements-discount-value.type-both .discount-percentage .discount-value {
        font-size: 24px;
    }
    .woolements-discount-value.type-both .discount-amount .discount-value {
        font-size: 20px;
    }
    .woolements-discount-timer {
        gap: 8px;
        padding: 12px 15px;
    }
    .woolements-timer-item {
        min-width: 50px;
        width: 50px;
        height: 50px;
    }
    .woolements-timer-number {
        font-size: 18px;
    }
    .woolements-timer-label {
        font-size: 9px;
        margin-top: 3px;
    }
}