@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');

/* =========================================
   Modern Footer Styles (Scoped)
   ========================================= */

/* تنظیمات پایه فقط مخصوص فوتر */
.modern-footer {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    box-sizing: border-box;
    direction: rtl;
    text-align: right;
    
    /* استایل کلی کانتینر */
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    backdrop-filter: blur(20px);
    border-top: 2px solid rgba(48, 213, 200, 0.15);
    padding: 60px 0 20px;
    position: relative;
    width: 100%;
    margin-top: auto; /* برای چسبیدن به پایین در فلکس باکس */
}

/* جلوگیری از تاثیر روی بقیه سایت */
.modern-footer * {
    box-sizing: border-box;
}

.modern-footer a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.modern-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* کانتینر داخلی */
.modern-footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

/* بخش برند و توضیحات */
.modern-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modern-footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modern-footer-logo img {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 2px solid rgba(48, 213, 200, 0.2);
    box-shadow: 0 4px 12px rgba(48, 213, 200, 0.1);
}

.modern-footer-title {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #30d5c8, #2bb8ad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.modern-footer-desc {
    font-size: 14px;
    line-height: 1.8;
    color: #64748b;
    max-width: 300px;
}

/* ستون‌های لینک */
.modern-footer-col h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

.modern-footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 24px;
    height: 3px;
    background: linear-gradient(90deg, #30d5c8, #2bb8ad);
    border-radius: 2px;
}

.modern-footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modern-footer-link {
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modern-footer-link:hover {
    color: #30d5c8;
    transform: translateX(-4px);
}

.modern-footer-link i, 
.modern-footer-link svg {
    font-size: 12px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.modern-footer-link:hover i,
.modern-footer-link:hover svg {
    opacity: 1;
    color: #30d5c8;
}

/* شبکه‌های اجتماعی */
.modern-footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.modern-footer-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(48, 213, 200, 0.1);
    color: #30d5c8;
    border: 1px solid rgba(48, 213, 200, 0.2);
    transition: all 0.3s ease;
}

.modern-footer-social-btn:hover {
    background: linear-gradient(135deg, #30d5c8, #2bb8ad);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(48, 213, 200, 0.3);
}

/* کپی‌رایت پایین */
.modern-footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(48, 213, 200, 0.15);
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

/* افکت نوری پس‌زمینه (مثل هدر) */
.modern-footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(48, 213, 200, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 90% 90%, rgba(56, 189, 248, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* واکنش‌گرایی (Responsive) */
@media (max-width: 1024px) {
    .modern-footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .modern-footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .modern-footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .modern-footer-brand {
        align-items: center;
        grid-column: span 1;
    }

    .modern-footer-desc {
        text-align: center;
    }

    .modern-footer-col h3::after {
        right: 50%;
        transform: translateX(50%);
    }

    .modern-footer-link {
        justify-content: center;
    }

    .modern-footer-link:hover {
        transform: translateX(0) scale(1.05);
    }
}
