.footer-advanced {
  background: linear-gradient(135deg, #1a1a2e, #2a2a3a);
  padding: 60px 20px 20px;
  border-top: 1px solid rgba(168, 85, 247, 0.3);
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  direction: rtl;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto; /* لوگو | منو | شبکه اجتماعی */
  gap: 30px;
  align-items: start;
}

.footer-logo {
  justify-self: start; /* سمت راست RTL */
}

.footer-logo p {
  font-size: 14px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-menu {
  justify-self: center; /* وسط منو */
}

.footer-menu h3 {
  font-size: 18px;
  background: linear-gradient(45deg, #a855f7, #ec4899);
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 20px;
}

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

.footer-menu ul li {
  margin-bottom: 10px;
}

.footer-menu ul li a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-menu ul li a:hover {
  color: #a855f7;
}

.footer-social {
  justify-self: end; /* سمت چپ RTL */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer-social h3 {
  font-size: 18px;
  background: linear-gradient(45deg, #a855f7, #ec4899);
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-end;
}

.social-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  height: 40px;
  border-radius: 20px;
  background: rgba(168, 85, 247, 0.15);
  padding: 0 10px;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
}

.social-icon img {
  width: 24px;
  height: 24px;
  filter: invert(49%) sepia(99%) saturate(1873%) hue-rotate(245deg) brightness(95%) contrast(95%);
  transition: all 0.3s ease-in-out;
}

.social-icon span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  transition: color 0.3s ease-in-out;
}

.social-icon:hover {
  transform: translateY(-3px);
  background: rgba(147, 51, 234, 0.3);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-icon:hover img {
  filter: invert(63%) sepia(99%) saturate(1352%) hue-rotate(225deg) brightness(100%) contrast(95%);
}

.social-icon:hover span {
  color: #a855f7;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid rgba(168, 85, 247, 0.2);
  padding-top: 20px;
  font-size: 14px;
}

.footer-bottom a {
  color: #a855f7;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #ec4899;
}

/* لینک‌های فوتر - کلاس مستقل */
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; /* لینک‌ها زیر هم */
    gap: 6px; /* فاصله بین آیتم‌ها */
}

.footer-links ul li {
    margin: 0; /* حذف فاصله اضافی */
}

.footer-links ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    padding: 2px 0; /* فاصله داخلی بالا و پایین */
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #a855f7;
    text-decoration: underline;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .footer-links ul {
        gap: 6px; /* فاصله ثابت برای موبایل */
    }
}

/* Responsive */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    text-align: center;
  }
  .footer-logo, .footer-menu, .footer-social {
    justify-self: center;
    align-items: center;
  }
  .social-icons {
    align-items: center;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-logo, .footer-menu, .footer-social {
    justify-self: center;
    align-items: center;
  }
  .social-icons {
    gap: 12px;
  }
}
