/* ==========================================================
   modules/footer/footer.css
   استایل فوتر حرفه‌ای کهکشان سافت
   ========================================================== */

   .site-footer {
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
    color: #cbd5e1;
    position: relative;
    margin-top: 80px;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.footer-container {
    width: min(95%, var(--container));
    margin: auto;
    padding: 70px 0 35px;
    position: relative;
    z-index: 1;
}

/* ---------- گرید اصلی ---------- */
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 45px;
}

/* ---------- لوگو ---------- */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-icon {
    font-size: 32px;
}

.footer-logo h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    margin: 0;
}

.footer-description {
    color: #94a3b8;
    line-height: 2;
    font-size: 14px;
    margin-bottom: 24px;
}

/* ---------- شبکه‌های اجتماعی ---------- */
.footer-social {
    display: flex;
    gap: 14px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37,99,235,0.3);
}

/* ---------- عناوین ستون‌ها ---------- */
.footer-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 4px;
}

/* ---------- لینک‌ها ---------- */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links li {
    list-style: none;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(-6px);
}

/* ---------- اطلاعات تماس ---------- */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 28px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 14px;
    line-height: 1.8;
}

.footer-contact-item span:first-child {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-item small {
    color: #64748b;
    font-size: 12px;
}

/* ---------- خبرنامه ---------- */
.footer-newsletter h5 {
    color: #fff;
    margin-bottom: 14px;
    font-size: 15px;
}

.footer-newsletter-form {
    display: flex;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.footer-newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
}

.footer-newsletter-form input::placeholder {
    color: #64748b;
}

.footer-newsletter-form input:focus {
    outline: none;
    background: rgba(255,255,255,0.08);
}

.footer-newsletter-form button {
    padding: 12px 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: background 0.3s;
}

.footer-newsletter-form button:hover {
    background: var(--primary-dark);
}

/* ---------- نوار پایینی ---------- */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 50px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-copy {
    color: #64748b;
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.25s;
}

.footer-bottom-links a:hover {
    color: #fff;
}

/* ---------- واکنش‌گرایی ---------- */
@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }
    .footer-bottom-links {
        justify-content: center;
    }
    .footer-title::after {
        right: 50%;
        transform: translateX(50%);
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 50px 0 25px;
    }
    .footer-logo h3 {
        font-size: 20px;
    }
}