/*
|--------------------------------------------------------------------------
| A. تنظیمات پایه و Utility
|--------------------------------------------------------------------------
*/
html {
    scroll-behavior: smooth;
}
body {
    background-color: #f8f9fa;
    overflow-x: hidden;
    font-family: Vazirmatn, Tahoma, sans-serif !important;
}

/* رنگ‌های اصلی برند یواست (مرکزی برای استفاده در کل CSS) */
.text-yoast-green, .chart-snail { color: #38c172; } /* رنگ به‌روز شده یواست سبز */
.text-yoast-purple, .chart-rocket, .tier-3-color i, .woo-title-gift { color: #a4286a; }
.text-yoast-orange, .tier-1-color i { color: #ee7c1b; }
.text-yoast-red, .text-red-600 { color: #dc2626; }
.text-red-600 { color: #dc2626; } /* برای خطرات نال‌شده */
.text-yoast-blue { color: #0073aa; } /* برای AIO SEO */


/*
|--------------------------------------------------------------------------
| B. استایل‌های ناوبری (Navigation)
|--------------------------------------------------------------------------
*/

/* نویگیشن شیشه‌ای */
.glass-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(164, 40, 106, 0.1);
}

/* منوی باز شده در موبایل (استایل روشن و شیشه‌ای) */
/* این استایل‌ها فقط برای صفحاتی با عرض کمتر از 768 پیکسل (قبل از md) اعمال می‌شوند */
@media (max-width: 767px) {
    .mobile-menu-glass {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        border-bottom: 1px solid rgba(164, 40, 106, 0.2);
        color: #333;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    /* استایل لینک‌ها در منوی موبایل باز شده */
    .mobile-menu-glass a {
        color: #333 !important;
    }
    /* فقط تغییر رنگ در هاور موبایل (حذف پس‌زمینه) */
    .mobile-menu-glass a:hover {
        color: #a4286a !important;
        background-color: transparent !important; /* حذف پس‌زمینه */
    }
}


/* لینک‌های منو (استایل عمومی برای دسکتاپ و موبایل بسته) */
.nav-link {
    transition: color 0.3s;
}
/* فقط تغییر رنگ در هاور عمومی (دسکتاپ) */
.nav-link:hover {
    color: #a4286a;
}
/*
|--------------------------------------------------------------------------
| C. استایل‌های عمومی و افکت‌ها
|--------------------------------------------------------------------------
*/

/* افکت هاور کارت‌ها */
.card-hover {
    transition: all 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #a4286a;
}

/* دکمه زنده با افکت نور */
.btn-live {
    background: linear-gradient(45deg, #7ad03a, #5ea828);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-live::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
    z-index: -1;
}
.btn-live:hover::after {
    left: 100%;
    transition: 0.5s;
}

/* کارت‌های امکانات در بخش تیره */
.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s;
}
.feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}
.feature-card:hover i {
    transform: scale(1.1);
    transition: transform 0.3s;
}

/* کارت‌های هدایا */
.addon-card {
    background: white;
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.addon-card:hover {
    transform: translateY(-5px);
}

/* افکت‌های طنز برای متن‌های نمودار */
.text-shadow-light {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}
.text-shadow-dark {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}
/* --- استایل‌های بخش Hero Minimal (آپدیت شده) --- */

/* انیمیشن دقیق شناور شدن ذرات */
@keyframes particle-float {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-15px) translateX(10px) rotate(10deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(0) translateX(20px) rotate(0deg);
        opacity: 0.3;
    }
    75% {
        transform: translateY(15px) translateX(10px) rotate(-10deg);
        opacity: 0.6;
    }
}

.animate-particle-float {
    animation: particle-float 8s infinite ease-in-out;
    pointer-events: none;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

/* انیمیشن نورهای پس زمینه */
@keyframes aurora-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.05); }
}

.animate-aurora-float {
    animation: aurora-float 10s ease-in-out infinite;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* انیمیشن گرادینت برای عنوان اصلی */
@keyframes title-gradient-shift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; } /* حرکت ساده‌تر */
}
.animate-title-gradient {
    background-size: 200% auto;
    animation: title-gradient-shift 4s linear infinite;
}
/*
|--------------------------------------------------------------------------
| E. استایل‌های بخش Yoast Plus - طرح مینیمال (نهایی و پایدار)
|--------------------------------------------------------------------------
*/

/* رنگ‌های دقیق Yoast و پس‌زمینه */
:root {
    --yoast-purple: #a4286a;
    --yoast-green: #7ad03a;
    --yoast-orange: #ee7c1b;
}

/* 1. پس‌زمینه روشن و ثابت */
.yoast-plus-bg-glazed {
    position: relative;
    color: #333;
    overflow: hidden;
    background: none;
}

/* 2. استایل کارت شیشه‌ای (Glazed Card) - هسته مرکزی */
.ai-luxury-glazed {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    transform: none;
}

.ai-luxury-glazed:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* 3. استایل کارت‌های ویژگی نمایشگاهی (Display Feature Cards) */
.feature-card-display {
    padding: 1.5rem;
    border-radius: 12px;
    background: #FFFFFF;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-bottom: 3px solid transparent;
}

.feature-card-display:hover {
    background-color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

/* 4. تأکید بر آیکون‌های رنگی */
.icon-purple-accent {
    color: var(--yoast-purple);
    text-shadow: none;
}

.icon-orange-accent {
    color: var(--yoast-orange);
    text-shadow: none;
}

/* اصلاح رنگ متن در کارت‌های ویژگی */
.feature-card-display h4 { color: #333; }
.feature-card-display p { color: #666; }


/* 5. استایل عنوان و CTA */
.text-shadow-glaze {
    text-shadow: none;
    color: #333;
}

.text-brand-accent {
    color: var(--yoast-purple) !important;
    text-shadow: none;
}

.text-shadow-glaze .text-white\/70,
.text-shadow-glaze .text-white\/50 {
    color: #555 !important;
}

.cta-glaze-final {
    background-color: var(--yoast-green) !important;
    box-shadow: 0 5px 20px rgba(122, 208, 58, 0.5);
    color: #FFF !important;
    font-size: 1rem;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cta-glaze-final:hover {
    background-color: #66b533 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px) scale(1.01);
}


/*
|--------------------------------------------------------------------------
| F. استایل‌های بخش ووکامرس (WooCommerce Gift Seal)
|--------------------------------------------------------------------------
*/

/* کارت اصلی ووکامرس */
.woo-premium-box {
    width: 100%;
    margin-left: -1rem;
    margin-right: -1rem;
    background:
            repeating-linear-gradient(45deg, rgba(164, 40, 106, 0.02), rgba(164, 40, 106, 0.02) 4px, #fcfcfc 4px, #fcfcfc 8px),
            #f7f7f7;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
}

/* افکت هاور */
.woo-premium-box:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: perspective(1000px) scale(1.005) rotateX(1deg);
}

/* روبان‌های جشن متحرک (سمت چپ) */
.woo-streamers-left {
    z-index: 0;
    overflow: hidden;
    border-radius: 35px 0 0 35px;
}
.streamer {
    position: absolute;
    width: 5px;
    height: 100%;
    background: linear-gradient(0deg, #a4286a, #ee7c1b, #7ad03a);
    opacity: 0.7;
    animation: streamer-float 15s linear infinite;
}
.streamer-1 { left: 10%; transform: scaleY(0.6); animation-delay: -5s; }
.streamer-2 { left: 40%; transform: scaleY(0.9); animation-delay: -10s; }
.streamer-3 { left: 70%; transform: scaleY(0.7); animation-delay: -15s; }
@keyframes streamer-float {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* نوار نارنجی ثابت (سمت راست) */
.woo-seal-right {
    z-index: 0;
    overflow: hidden;
    border-radius: 0 35px 35px 0;
    background-color: #ee7c1b;
    opacity: 0.9;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 10px 100%;
}

/* باکس‌های ویژگی */
.woo-feature-pill {
    background-color: #fff;
    border: 2px solid #dcdcdc;
    color: #333;
    font-weight: 700;
    box-shadow: none;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.3s;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
}
.woo-feature-pill:hover {
    background-color: #fffaf7;
    color: #ee7c1b;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(238, 124, 27, 0.15);
}

/* دکمه CTA */
.woo-premium-box a {
    box-shadow: 0 8px 15px rgba(238, 124, 27, 0.4);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.woo-premium-box a:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(238, 124, 27, 0.6);
}

/* انیمیشن کوتاه ضربانی */
@keyframes pulse-short {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}
.animate-pulse-short {
    animation: pulse-short 1.5s infinite ease-in-out;
}


/*
|--------------------------------------------------------------------------
| G. استایل‌های بخش تخفیف پلاکانی (Tiered Discount)
|--------------------------------------------------------------------------
*/

/* استایل‌های کارت‌های وفاداری */
.loyalty-tier-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    text-align: center;
    max-width: 380px;
    width: 100%;
    z-index: 10;
}

/* رنگ‌های پس‌زمینه کارت‌ها */
.tier-1-color { border-top: 5px solid #ee7c1b; }
.tier-2-color { border-top: 5px solid #7ad03a; }
.tier-3-color { border-top: 5px solid #a4286a; }

/* نشان (Badge) */
.tier-badge {
    display: inline-block;
    background-color: #f7f7f7;
    font-weight: 900;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
    border: 1px solid #e9e9e9;
    color: #a4286a; /* اضافه شد */
}

/* باکس نمایش تخفیف */
.tier-discount-box {
    padding: 1rem;
    border-radius: 12px;
    background-color: #fcfcfc;
    border: 2px dashed #e0e0e0;
}

/* خطوط اتصال مراحل */
.tier-connector {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 1px;
    background: repeating-linear-gradient(to right, #dcdcdc, #dcdcdc 10px, transparent 10px, transparent 20px);
    z-index: 5;
}

/*
|--------------------------------------------------------------------------
| H. استایل‌های جدول مقایسه (Comparison Table)
|--------------------------------------------------------------------------
*/

/* استایل کلی جدول */
#comparison table {
    border-collapse: separate;
    border-spacing: 0;
}

/* استایل هدر ستون راست‌چین */
#comparison thead th:nth-child(2) {
    background-color: #a4286a;
    color: white;
    box-shadow: 0 5px 15px rgba(164, 40, 106, 0.2);
    transform: perspective(1000px) scale(1.05) translateY(-5px);
    transition: all 0.3s;
    border-radius: 0.5rem;
}

/* ردیف برجسته هوش مصنوعی */
.comparison-row-ai {
    background-color: #fcf4ff;
}
.comparison-row-ai td {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

/* ردیف برجسته اعتبار (فعلاً استفاده نشده، حفظ شد) */
.comparison-row-trust {
    background-color: #fffaf7;
}
.comparison-row-trust td {
    font-size: 1.05rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

/* ردیف طنز (فعلاً استفاده نشده، حفظ شد) */
.comparison-row-humor {
    background-color: #f7fff7;
}

/* استایل متن داخل سلول‌های رقیب */
#comparison tbody td:nth-child(3) {
    font-style: italic;
}

/* استایل سلول‌های یواست برای تاکید */
#comparison tbody td:nth-child(2) {
    background-color: #fff9ff;
}

/* آیکون های بله/خیر (کنتراست بیشتر) */
#comparison tbody td:nth-child(2) i {
    color: #a4286a;
}
#comparison tbody td:nth-child(3) {
    color: #888;
}

/* آیکون بله هوش مصنوعی (فعلاً استفاده نشده، حفظ شد) */
.comparison-row-ai td:nth-child(2) {
    color: #a4286a;
    font-size: 1.5rem;
}

/* استایل‌های مربوط به نال شده/خطر */
.bg-red-50 { background-color: #fef2f2; }
.border-red-300 { border-color: #fca5a5; }

/* انیمیشن خطر */
.fa-skull-crossbones {
    animation: pulse-danger 1s infinite;
}
@keyframes pulse-danger {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); color: #ff0000; }
}


/*
|--------------------------------------------------------------------------
| I. استایل‌های نمودار محبوبیت (Popularity Chart)
|--------------------------------------------------------------------------
*/

.bar-track {
    height: 30px;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bar-fill {
    height: 100%;
    display: block;
    width: 0;
    opacity: 0;
    animation: bar-expand 2s ease-out forwards;
}

/* رنگ‌های اختصاصی میله‌ها */
.yoast-bar-color {
    background: linear-gradient(90deg, #a4286a, #ee7c1b);
    box-shadow: 0 4px 15px rgba(164, 40, 106, 0.4);
}
.aiosp-bar-color {
    background-color: #0073aa;
}
.rankmath-bar-color {
    background-color: #38c172;
}

/* متن بیرون میله */
.bar-value-outside {
    font-size: 0.9rem;
    white-space: nowrap;
    display: block;
    font-weight: 700;
}

/* انیمیشن میله‌ها */
@keyframes bar-expand {
    0% { width: 0; opacity: 0; }
    100% { width: var(--final-width); opacity: 1; }
}

/* اعمال تأخیر برای حرکت نوبتی */
.chart-bar-item:nth-child(1) .bar-fill { animation-delay: 0.1s; }
.chart-bar-item:nth-child(2) .bar-fill { animation-delay: 0.8s; }
.chart-bar-item:nth-child(3) .bar-fill { animation-delay: 1.5s; }

/* انیمیشن جت و آیکون‌ها */
@keyframes rocket-shake {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(2deg); }
    90% { transform: rotate(-2deg); }
}
@keyframes rocket-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}
.chart-rocket { animation: rocket-shake 0.5s ease-in-out infinite, rocket-float 1.5s ease-in-out infinite; }
.chart-bike { color: #0073aa; } /* AIO SEO */


/*
|--------------------------------------------------------------------------
| J. استایل‌های اعتمادسازی (Trust Logos)
|--------------------------------------------------------------------------
*/

.logo-filter {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.5s ease-in-out;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* افکت جذاب Hover */
.logo-item:hover .logo-filter {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/*
|--------------------------------------------------------------------------
| L. استایل‌های بخش هماهنگی با صفحه‌سازها (Compatibility)
|--------------------------------------------------------------------------
*/

.compatibility-card {
    transition: all 0.3s ease-in-out;
}

/* رنگ‌های اختصاصی برای آیکون‌های صفحه‌سازها (برای استفاده در HTML) */
.text-blue-500 {
    color: #0080ff; /* المنتور */
}
.text-gray-700 {
    color: #2c3338; /* گوتنبرگ */
}
.text-yellow-600 {
    color: #ffb900; /* کلاسیک */
}
.text-purple-600 {
    color: #a766cc; /* ویژوال کامپوزر */
}

/* افکت هاور کارت برای برجسته شدن */
.compatibility-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}