/* ==========================================================================
   WooCommerce Price Date Display - Frontend Styles
   ========================================================================== */

/* استایل پایه جعبه نمایش تاریخ */
.wc-price-date-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    direction: rtl;
    font-family: IRANSans, Tahoma, Arial, sans-serif;
}

/* آیکون */
.wc-pdd-icon {
    font-size: 1.2em;
    line-height: 1;
    flex-shrink: 0;
}

/* متن */
.wc-pdd-text {
    line-height: 1.6;
}

/* انیمیشن محو شدن */
.wc-pdd-animate-fade-in {
    animation: wcPddFadeIn 0.6s ease-out;
}

@keyframes wcPddFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* انیمیشن لغزش از پایین */
.wc-pdd-animate-slide-up {
    animation: wcPddSlideUp 0.6s ease-out;
}

@keyframes wcPddSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* انیمیشن لغزش از بالا */
.wc-pdd-animate-slide-down {
    animation: wcPddSlideDown 0.6s ease-out;
}

@keyframes wcPddSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* انیمیشن بزرگ‌نمایی */
.wc-pdd-animate-zoom-in {
    animation: wcPddZoomIn 0.5s ease-out;
}

@keyframes wcPddZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* انیمیشن پرش */
.wc-pdd-animate-bounce {
    animation: wcPddBounce 0.8s ease-out;
}

@keyframes wcPddBounce {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    50% {
        opacity: 1;
        transform: translateY(10px);
    }
    70% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

/* افکت hover */
.wc-price-date-display:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
}

/* ریسپانسیو - تبلت */
@media (max-width: 768px) {
    .wc-price-date-display {
        font-size: 0.95em;
        padding: 10px !important;
        gap: 6px;
    }
    
    .wc-pdd-icon {
        font-size: 1.1em;
    }
    
    .wc-pdd-text {
        font-size: 0.95em;
    }
}

/* ریسپانسیو - موبایل */
@media (max-width: 480px) {
    .wc-price-date-display {
        font-size: 0.9em;
        padding: 8px !important;
        gap: 5px;
        flex-direction: column;
        text-align: center;
    }
    
    .wc-pdd-icon {
        font-size: 1.3em;
        margin-bottom: 3px;
    }
    
    .wc-pdd-text {
        font-size: 0.9em;
        line-height: 1.5;
    }
}

/* RTL Support */
[dir="rtl"] .wc-price-date-display {
    direction: rtl;
}

[dir="ltr"] .wc-price-date-display {
    direction: ltr;
}

/* سازگاری با تم‌های مختلف */
.woocommerce div.product .wc-price-date-display {
    clear: both;
    display: flex;
}

.woocommerce-page .wc-price-date-display {
    max-width: 100%;
}

/* افکت لرزش برای جلب توجه (اختیاری) */
@keyframes wcPddPulse {
    0%, 100% {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    }
}

.wc-price-date-display.wc-pdd-pulse {
    animation: wcPddPulse 2s ease-in-out infinite;
}

/* Print Styles */
@media print {
    .wc-price-date-display {
        page-break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}
