.main-footer {
    background: var(--card-bg);
    color: var(--text);
    border-top: 1px solid var(--border);
    padding-top: 3rem;
    transition: background 0.3s ease, color 0.3s ease;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding: 0 2rem 2rem;
}

.footer-section {
    text-align: center;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.footer-section p,
.footer-section ul li {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--muted);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: var(--accent);
}

/* شبکه‌های اجتماعی */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 0.8rem;
}

.social-icons a img {
    width: 30px;
    height: 30px;
    filter: brightness(0.6);
    transition: filter 0.3s ease, transform 0.2s ease;
}

.social-icons a:hover img {
    filter: brightness(1) saturate(1.4);
    transform: scale(1.15);
}

/* پایین فوتر */
.footer-bottom {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 1rem;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.03);
}

/* حالت دارک */
[data-theme="dark"] .main-footer {
    background: #141414;
    border-top: 1px solid #2b2b2b;
}

[data-theme="dark"] .footer-bottom {
    background: #0f0f0f;
}

[data-theme="dark"] .footer-section h3 {
    color: var(--gold);
}

/* واکنش‌گرا */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}