/* ===========================================
MODNIX — DONATE PAGE
استایل دقیقاً مشابه صفحه Explore
=========================================== */

/* ===========================================
بک‌گراند تمام‌صفحه (دقیقاً مثل explore)
=========================================== */
.donate-bg {
    position: fixed;
    inset: 0;
    background-image: url('/assets/images/donate/donate.jpg');
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
    z-index: -2;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.donate-bg__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15,15,16,0.65) 0%, rgba(15,15,16,0.5) 50%, rgba(15,15,16,0.75) 100%);
    animation: donateFadeIn 1s ease-out;
}

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

/* ===========================================
هدر (دقیقاً مثل explore)
=========================================== */
.donate-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    z-index: 1;
}

.donate-hero__content {
    text-align: center;
    padding: 100px 20px;
    will-change: transform, opacity;
}

.donate-hero__title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
    animation: donateTitleIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) ease-out;
    transform: translate3d(0, 0, 0);
}

@keyframes donateTitleIn {
    from { opacity: 0; transform: translate3d(0, -30px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.donate-hero__subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.95);
    margin: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 12px rgba(0,0,0,0.8);
    animation: donateSubtitleIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) ease-out 0.1s backwards;
    transform: translate3d(0, 0, 0);
}

@keyframes donateSubtitleIn {
    from { opacity: 0; transform: translate3d(0, -20px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* ذرات (دقیقاً مثل explore) */
.donate-hero__particles {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 60% 70%, rgba(16, 185, 129, 0.4), transparent),
        radial-gradient(2px 2px at 80% 20%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 40% 60%, rgba(102, 126, 234, 0.35), transparent),
        radial-gradient(2px 2px at 90% 80%, rgba(255, 255, 255, 0.5), transparent);
    background-size: 300px 300px;
    animation: donateParticlesMove 50s linear infinite;
    pointer-events: none;
    opacity: 0.5;
    will-change: background-position;
}

@keyframes donateParticlesMove {
    0% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
    100% { background-position: 300px 0, 300px 0, 300px 0, 300px 0, 300px 0; }
}

/* ===========================================
بخش‌های عمومی (مثل explore-grid)
=========================================== */
.donate-section {
    padding: 80px 20px;
    position: relative;
    z-index: 2;
}

.donate-section__title {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin: 0 0 40px 0;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.donate-section__subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    text-align: center;
    margin: 0 0 60px 0;
}

/* ===========================================
گرید کارت‌ها (مثل explore-grid)
=========================================== */
.donate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================================
کارت‌های Impact (مثل explore-card)
=========================================== */
.donate-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(42, 42, 46, 0.5);
    background: rgba(26, 26, 28, 0.75);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    transform-origin: center bottom;
    animation: donateCardIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.donate-card:nth-child(1) { animation-delay: 0.1s; }
.donate-card:nth-child(2) { animation-delay: 0.15s; }
.donate-card:nth-child(3) { animation-delay: 0.2s; }
.donate-card:nth-child(4) { animation-delay: 0.25s; }

@keyframes donateCardIn {
    from { opacity: 0; transform: translate3d(0, 40px, 0) scale(0.95); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.donate-card:hover {
    transform: translate3d(0, -8px, 0) scale(1.015);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 60px rgba(16, 185, 129, 0.15);
    border-color: var(--card-border-color, #10b981);
}

.donate-card__bg {
    position: absolute;
    inset: 0;
    background: var(--card-gradient, linear-gradient(135deg, #1a1a2e 0%, #16213e 100%));
    opacity: 0.18;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translate3d(0, 0, 0) scale(1);
    will-change: transform, opacity;
}

.donate-card:hover .donate-card__bg {
    opacity: 0.3;
    transform: translate3d(0, 0, 0) scale(1.06) rotate(1deg);
}

.donate-card__content {
    position: relative;
    z-index: 2;
    padding: 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-end;
    gap: 12px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.donate-card:hover .donate-card__content {
    transform: translate3d(0, -4px, 0);
}

.donate-card__icon {
    width: 60px;
    height: 60px;
    background: var(--card-icon-bg, rgba(16, 185, 129, 0.25));
    border: 2px solid var(--card-border-color, rgba(16, 185, 129, 0.5));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--card-icon-color, #10b981);
    margin-bottom: 10px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    will-change: transform, box-shadow;
    transform: translate3d(0, 0, 0);
}

.donate-card:hover .donate-card__icon {
    transform: translate3d(0, 0, 0) scale(1.1) rotate(-2deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 30px var(--card-icon-color);
}

.donate-card__icon i {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translate3d(0, 0, 0);
}

.donate-card:hover .donate-card__icon i {
    transform: translate3d(0, 0, 0) scale(1.12);
}

.donate-card__title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), text-shadow 0.3s ease;
}

.donate-card:hover .donate-card__title {
    transform: translate3d(5px, 0, 0);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.3);
}

.donate-card__desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.donate-card:hover .donate-card__desc {
    color: rgba(255, 255, 255, 0.92);
    transform: translate3d(3px, 0, 0);
}

/* ===========================================
کارت‌های Donate Tiers
=========================================== */
.donate-tier-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(42, 42, 46, 0.5);
    background: rgba(26, 26, 28, 0.75);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    animation: donateCardIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.donate-tier-card:nth-child(1) { animation-delay: 0.1s; }
.donate-tier-card:nth-child(2) { animation-delay: 0.15s; }
.donate-tier-card:nth-child(3) { animation-delay: 0.2s; }

.donate-tier-card:hover {
    transform: translate3d(0, -8px, 0) scale(1.015);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 60px rgba(16, 185, 129, 0.15);
    border-color: #10b981;
}

.donate-tier-card--featured {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    transform: scale(1.04);
}

.donate-tier-card--featured:hover {
    transform: scale(1.06) translate3d(0, -8px, 0);
}

.donate-tier-card__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    z-index: 3;
}

.donate-tier-card__content {
    position: relative;
    z-index: 2;
    padding: 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 16px;
}

.donate-tier-card__header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.donate-tier-card__icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    background: rgba(16, 185, 129, 0.2);
    border: 2px solid rgba(16, 185, 129, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #10b981;
}

.donate-tier-card--featured .donate-tier-card__icon {
    background: linear-gradient(135deg, #10b981, #ec4899);
    color: #fff;
    border-color: transparent;
}

.donate-tier-card__amount {
    font-size: 42px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
}

.donate-tier-card__currency {
    font-size: 16px;
    color: #10b981;
    font-weight: 700;
}

.donate-tier-card__name {
    font-size: 18px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    margin-top: 8px;
}

.donate-tier-card__features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.donate-tier-card__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.donate-tier-card__features li:last-child {
    border-bottom: none;
}

.donate-tier-card__features li i {
    color: #10b981;
    font-size: 12px;
}

.donate-tier-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.donate-tier-card__btn:hover {
    background: #10b981;
    border-color: #10b981;
    transform: translateY(-2px);
}

.donate-tier-card--featured .donate-tier-card__btn {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: transparent;
}

/* ===========================================
کارت‌های Donor (مثل explore-card)
=========================================== */
.donor-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(42, 42, 46, 0.5);
    background: rgba(26, 26, 28, 0.75);
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    animation: donateCardIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.donor-card:hover {
    transform: translate3d(0, -8px, 0) scale(1.015);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 60px rgba(16, 185, 129, 0.15);
    border-color: #10b981;
}

.donor-card--rank-1 {
    border-color: rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(26, 26, 28, 0.75));
    grid-column: 1 / -1;
}

.donor-card--rank-2 {
    border-color: rgba(203, 213, 225, 0.4);
    background: linear-gradient(135deg, rgba(203, 213, 225, 0.06), rgba(26, 26, 28, 0.75));
}

.donor-card--rank-3 {
    border-color: rgba(217, 119, 6, 0.4);
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.06), rgba(26, 26, 28, 0.75));
}

.donor-card__rank {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    flex-shrink: 0;
}

.donor-card--rank-1 .donor-card__rank {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    width: 60px;
    height: 60px;
    font-size: 24px;
}

.donor-card--rank-2 .donor-card__rank {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    color: #0f172a;
}

.donor-card--rank-3 .donor-card__rank {
    background: linear-gradient(135deg, #d97706, #92400e);
}

.donor-card__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    flex-shrink: 0;
}

.donor-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.donor-card__info {
    flex: 1;
    min-width: 0;
}

.donor-card__name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.donor-card__amount {
    font-size: 14px;
    color: #10b981;
    font-weight: 700;
}

.donor-card__medal {
    font-size: 28px;
    flex-shrink: 0;
}

.donor-card__medal--1 { color: #f59e0b; }
.donor-card__medal--2 { color: #cbd5e1; }
.donor-card__medal--3 { color: #d97706; }

/* ===========================================
کارت‌های Supporter
=========================================== */
.supporter-card {
    position: relative;
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid rgba(42, 42, 46, 0.5);
    background: rgba(26, 26, 28, 0.75);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px 10px 10px;
    animation: donateCardIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.supporter-card:hover {
    transform: translate3d(0, -4px, 0) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3), 0 0 40px rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.supporter-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    flex-shrink: 0;
}

.supporter-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.supporter-card__name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

/* ===========================================
FAQ (مثل explore-card)
=========================================== */
.faq-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(42, 42, 46, 0.5);
    background: rgba(26, 26, 28, 0.75);
    margin-bottom: 16px;
    animation: donateCardIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    border-color: #10b981;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.faq-item[open] {
    border-color: #10b981;
}

.faq-item summary {
    padding: 24px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 24px;
    color: #10b981;
    transition: transform 0.3s ease;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0 24px 24px;
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin: 0;
}

/* ===========================================
مبلغ دلخواه
=========================================== */
.donate-custom {
    max-width: 600px;
    margin: 60px auto 0;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(42, 42, 46, 0.5);
    background: rgba(26, 26, 28, 0.75);
    text-align: center;
    animation: donateCardIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards 0.3s;
}

.donate-custom__text {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin: 0 0 24px 0;
}

.donate-custom__form {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.donate-custom__input-wrap {
    display: flex;
    align-items: center;
    background: rgba(15,15,16,0.5);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 0 20px;
    height: 56px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.donate-custom__input-wrap:focus-within {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.donate-custom__input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    width: 160px;
    outline: none;
}

.donate-custom__input::placeholder {
    color: rgba(255,255,255,0.4);
}

.donate-custom__currency {
    font-size: 16px;
    font-weight: 700;
    color: #10b981;
    margin-right: 12px;
}

.donate-custom__btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.donate-custom__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.donate-custom__note {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin: 16px 0 0;
}

/* ===========================================
Responsive
=========================================== */
@media (max-width: 768px) {
    .donate-hero {
        min-height: 400px;
    }
    
    .donate-hero__title {
        font-size: 36px;
    }
    
    .donate-hero__subtitle {
        font-size: 16px;
    }
    
    .donate-hero__particles {
        display: none;
    }
    
    .donate-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    
    .donate-section__title {
        font-size: 26px;
    }
    
    .donate-card,
    .donate-tier-card,
    .donor-card {
        min-height: auto;
    }
    
    .donate-tier-card--featured {
        transform: none;
    }
    
    .donate-tier-card--featured:hover {
        transform: translate3d(0, -8px, 0);
    }
    
    .donor-card--rank-1 {
        grid-column: auto;
    }
    
    .donate-custom__form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .donate-hero {
        min-height: 350px;
    }
    
    .donate-hero__title {
        font-size: 28px;
    }
    
    .donate-hero__subtitle {
        font-size: 14px;
    }
    
    .donate-card__title {
        font-size: 20px;
    }
    
    .donate-tier-card__amount {
        font-size: 34px;
    }
}