/* -----------------------------------------------------------
   Ayeneh | Pricing Page Styles
   ----------------------------------------------------------- */

/* کانتینر اصلی */
.pricing-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* --- استایل سوییچر (دکمه‌های انتخاب زمان) --- */
.pricing-switcher-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    padding: 10px !important;
    border-radius: 50px !important;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.pricing-switcher {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 5px;
    user-select: none;
}

.pricing-switcher input[type="radio"] {
    display: none;
}

.pricing-switcher label {
    position: relative;
    z-index: 2;
    padding: 12px 25px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--color-heading);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* نشان تخفیف */
.pricing-switcher .badge {
    font-size: 0.7rem;
    background: var(--color-secondary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

/* اسلایدر متحرک پشت دکمه‌ها */
/* نکته: برای سادگی در CSS، استایل اکتیو را با کلاس جاوااسکریپت هندل می‌کنیم 
   یا صرفا به input:checked استایل می‌دهیم */
.pricing-switcher input:checked + label {
    color: #fff;
    background-color: var(--color-secondary); /* فال‌بک ساده */
    border-radius: 40px;
    box-shadow: 0 4px 15px var(--color-shadow-rgba);
}


/* --- استایل کارت‌های قیمت --- */
.pricing-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: stretch; /* هم‌اندازه شدن ارتفاع کارت‌ها */
}

.pricing-card {
    flex: 1;
    min-width: 300px;
    max-width: 360px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

/* پلن محبوب (وسطی) */
.pricing-card.popular-plan {
    border: 1px solid var(--color-secondary) !important;
    box-shadow: 0 0 30px var(--color-shadow-hover-rgba);
    transform: scale(1.05);
    z-index: 2;
}
.pricing-card.popular-plan:hover {
    transform: scale(1.05) translateY(-10px);
}

/* روبان "محبوب‌ترین" */
.pricing-card .ribbon {
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(50%) translateY(-50%);
    background: var(--color-secondary);
    color: #fff;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 5px 15px var(--color-shadow-rgba);
}

/* هدر کارت */
.card-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
}

.plan-name {
    font-size: 1.4rem;
    color: var(--color-heading);
    margin-bottom: 15px;
}

.plan-price {
    display: flex;
    justify-content: center;
    align-items: baseline;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.plan-price .amount {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-en); /* فونت اعداد */
}

.plan-price .currency {
    font-size: 1rem;
    margin-left: 5px;
}

.plan-price .period {
    font-size: 0.9rem;
    color: var(--color-text);
    opacity: 0.7;
    margin-right: 5px;
}

.plan-desc {
    font-size: 0.9rem;
    color: var(--color-text);
}

/* ویژگی‌ها */
.card-features {
    flex-grow: 1; /* پر کردن فضای خالی */
    margin-bottom: 30px;
}

.card-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-features li {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
}

.card-features li i {
    margin-left: 10px;
    color: var(--color-secondary);
    width: 20px;
    text-align: center;
}

.card-features li.disabled {
    opacity: 0.5;
    text-decoration: line-through;
    color: var(--alarm-icon);
}
.card-features li.disabled i {
    color: var(--alarm-icon);
}

/* دکمه‌ها */
.card-action .elementor-button {
    width: 100%;
    justify-content: center;
    padding: 12px;
    border-radius: 12px;
}
.btn-primary {
    background-color: var(--color-secondary);
    color: #fff;
}
.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--color-heading);
}
.btn-outline:hover {
    border-color: var(--color-accent);
    background: rgba(255,255,255,0.05);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .pricing-switcher-wrapper {
        width: 100%;
        overflow-x: auto;
    }
    .pricing-switcher {
        width: max-content;
    }
    .pricing-card.popular-plan {
        transform: scale(1);
    }
    .pricing-card.popular-plan:hover {
        transform: translateY(-10px);
    }
}
