/* -----------------------------------------------------------
   Ayeneh | Download Page Styles (Complete Redesign)
   File: download.css
   تمام بخش‌های صفحه دانلود با طراحی یکپارچه
   ----------------------------------------------------------- */

/* =========================================
   1. Hero Section (بخش اول با تیتر و تصویر)
   ========================================= */

/* کانتینر اصلی Hero */
.elementor-element-ddd5700.glass-box {
    padding: 60px 40px !important;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
}

/* افکت نور پس‌زمینه */
.elementor-element-ddd5700.glass-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        var(--color-secondary-rgba, rgba(67, 194, 220, 0.15)) 0%,
        transparent 70%
    );
    transform: translateX(-50%);
    pointer-events: none;
    animation: hero-glow 8s ease-in-out infinite alternate;
}

@keyframes hero-glow {
    0% { opacity: 0.3; transform: translateX(-50%) scale(1); }
    100% { opacity: 0.6; transform: translateX(-50%) scale(1.2); }
}

/* تیتر اصلی Hero */
.elementor-element-ddd5700 .elementor-heading-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    background: linear-gradient(
        135deg,
        var(--color-heading) 0%,
        var(--color-secondary) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}

/* متن توضیحات Hero */
.elementor-element-ddd5700 .elementor-text-editor p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

/* تصویر Hero */
.elementor-element-ddd5700 .elementor-widget-image img {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    transition: transform 0.5s ease;
    position: relative;
    z-index: 2;
}

.elementor-element-ddd5700 .elementor-widget-image:hover img {
    transform: translateY(-10px) scale(1.02);
}


/* =========================================
   2. Download Cards Section (کارت‌های دانلود)
   ========================================= */

/* Wrapper اصلی کارت‌ها */
.download-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* تک کارت دانلود */
.download-card-item {
    position: relative;
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    min-height: 280px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08)) !important;
    cursor: pointer;
    overflow: hidden;
}

/* افکت Shine هنگام هاور */
.download-card-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.download-card-item:hover::before {
    opacity: 1;
    animation: shine 1.5s ease-in-out infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* هاور روی کارت */
.download-card-item:hover {
    transform: translateY(-12px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px var(--color-secondary);
    border-color: var(--color-secondary) !important;
    background: var(--glass-bg-hover);
}

/* آیکون کارت */
.download-card-item i {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
    background: linear-gradient(
        135deg,
        var(--color-secondary) 0%,
        var(--color-accent, #D4AF37) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.download-card-item:hover i {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 8px 16px var(--color-secondary-rgba, rgba(67, 194, 220, 0.4)));
}

/* تیتر کارت */
.download-card-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 25px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-fa-heading);
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

/* دکمه دانلود */
.download-card-item .elementor-button,
.download-card-item a.elementor-button {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-fa-body);
    text-decoration: none;
    display: inline-block;
    border-radius: 12px;
    border: none;
    position: relative;
    z-index: 2;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--color-secondary) 0%,
        var(--color-accent, #43C2DC) 100%
    );
    color: #fff !important;
    transition: all 0.3s ease;
}

.download-card-item .elementor-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--color-accent, #D4AF37) 0%,
        var(--color-secondary) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.download-card-item .elementor-button:hover::before {
    opacity: 1;
}

.download-card-item .elementor-button span {
    position: relative;
    z-index: 2;
}

.download-card-item:hover .elementor-button {
    transform: scale(1.03);
    box-shadow: 0 8px 20px var(--color-shadow-rgba, rgba(67, 194, 220, 0.4));
}

/* --- کارت پیشنهادی (Highlighted) --- */
.download-card-item.is-highlighted {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 2px var(--color-secondary);
    border-color: var(--color-secondary) !important;
    background: var(--glass-bg-hover);
}

.download-card-item .download-badge {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(
        135deg,
        var(--color-secondary) 0%,
        var(--color-accent, #43C2DC) 100%
    );
    color: #fff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-fa-body);
    box-shadow: 0 4px 12px var(--color-shadow-rgba, rgba(67, 194, 220, 0.5));
    z-index: 10;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.download-card-item.is-highlighted:hover {
    transform: translateY(-15px) scale(1.05);
}


/* =========================================
   3. Installation Guide Section (راهنمای نصب)
   ========================================= */

/* تیتر بخش راهنما */
.elementor-element-3bd4953 .elementor-heading-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: var(--color-heading);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

/* خط زیر تیتر */
.elementor-element-3bd4953 .elementor-heading-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--color-secondary) 50%,
        transparent 100%
    );
    border-radius: 2px;
}

/* کانتینر دو ستونه راهنما */
.elementor-element-6b5d109.glass-box {
    padding: 40px 35px !important;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

/* تیترهای Android و iOS */
.elementor-element-6b5d109 .elementor-heading-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

/* .elementor-element-6b5d109 .elementor-heading-title::before {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 60px;
    height: 2px;
    background: var(--color-secondary);
} */

/* لیست مراحل نصب */
.elementor-element-6b5d109 .elementor-icon-list-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.elementor-element-6b5d109 .elementor-icon-list-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.elementor-element-6b5d109 .elementor-icon-list-item:last-child {
    border-bottom: none;
}

.elementor-element-6b5d109 .elementor-icon-list-item:hover {
    padding-right: 8px;
    background: var(--color-shadow-rgba);
    border-radius: 8px;
}

/* آیکون‌های مراحل */
.elementor-element-6b5d109 .elementor-icon-list-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.elementor-element-6b5d109 .elementor-icon-list-item:hover .elementor-icon-list-icon {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 4px 12px var(--color-shadow-rgba, rgba(67, 194, 220, 0.4));
}

.elementor-element-6b5d109 .elementor-icon-list-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--color-secondary);
    transition: fill 0.3s ease;
}

.elementor-element-6b5d109 .elementor-icon-list-item:hover .elementor-icon-list-icon svg {
    fill: #fff;
}

/* متن مراحل */
.elementor-element-6b5d109 .elementor-icon-list-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text);
    font-family: var(--font-fa-body);
}


/* =========================================
   4. Responsive Design
   ========================================= */

/* تبلت (زیر 992px) */
@media (max-width: 992px) {
    .elementor-element-ddd5700.glass-box {
        padding: 40px 30px !important;
        margin-bottom: 60px;
    }

    .download-cards-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }

    .download-card-item {
        min-height: 260px;
        padding: 30px 20px;
    }

    .elementor-element-6b5d109.glass-box {
        padding: 30px 25px !important;
        gap: 35px;
    }
}

/* موبایل (زیر 768px) */
@media (max-width: 768px) {
    .elementor-element-ddd5700.glass-box {
        padding: 30px 20px !important;
        margin-bottom: 50px;
    }

    .elementor-element-ddd5700 .elementor-heading-title {
        font-size: 1.6rem;
    }

    .elementor-element-ddd5700 .elementor-text-editor p {
        font-size: 1rem;
    }

    .download-cards-wrapper {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 15px;
    }

    .download-card-item {
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }

    .elementor-element-6b5d109.glass-box {
        grid-template-columns: 1fr;
        padding: 25px 20px !important;
        gap: 30px;
    }

    .elementor-element-3bd4953 .elementor-heading-title {
        font-size: 1.5rem;
        margin-bottom: 35px;
    }
}

/* موبایل کوچک (زیر 480px) */
@media (max-width: 480px) {
    .download-card-item i {
        font-size: 3rem;
    }

    .download-card-item h3 {
        font-size: 1rem;
        min-height: 40px;
    }

    .download-card-item .elementor-button {
        padding: 12px 18px;
        font-size: 0.9rem;
    }

    .elementor-element-6b5d109 .elementor-icon-list-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .elementor-element-6b5d109 .elementor-icon-list-text {
        font-size: 0.9rem;
    }
}


/* =========================================
   5. Loading & Animation States
   ========================================= */

/* انیمیشن ورود کارت‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* جدا کردن animation-fill-mode از hover transition */
.download-card-item {

    /* transition نرم برای بازگشت از hover */
    transition: 
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.4s ease,
        background 0.4s ease !important;
}

.download-card-item:nth-child(1) { animation-delay: 0.1s; }
.download-card-item:nth-child(2) { animation-delay: 0.2s; }
.download-card-item:nth-child(3) { animation-delay: 0.3s; }
.download-card-item:nth-child(4) { animation-delay: 0.4s; }

/* --- حالت highlighted: animation جدا، transform اولیه ثابت --- */
.download-card-item.is-highlighted {
    /* transform پایه‌ای برای حالت بدون hover */
    transform: translateY(-12px) scale(1.03);
    transition: 
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.4s ease !important;
}

.download-card-item.is-highlighted:hover {
    transform: translateY(-15px) scale(1.05);
}