/* فوتر اصلی */
.footer-minimal {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-family: system-ui, sans-serif;
  background: linear-gradient(to top, rgba(255, 215, 0, 0.12), rgba(255, 215, 0, 0.05));
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px);
  color: #444;
  z-index: 1000;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-sizing: border-box;
}

.footer-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  width: 100%;
  padding: 0.5rem 1rem;
  box-sizing: border-box;
  margin: 0;
  max-width: none;
}

.footer-icon-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.07);
  transition: transform 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.footer-icon-link:hover {
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.15);
}

.footer-icon-link svg,
.footer-icon-link img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.25));
}

body {
  padding-bottom: 100px;
}

/* برای دستگاه‌های کوچکتر از 280px */
@media (max-width: 280px) {
  .footer-minimal {
    font-size: 0.75rem; /* اندازه فونت کوچک‌تر */
    padding: 0.5rem 0.75rem; /* کاهش padding */
  }

  .footer-icon-link {
    width: 36px;  /* کاهش اندازه آیکن */
    height: 36px; /* کاهش اندازه آیکن */
  }

  .footer-icon-link svg,
  .footer-icon-link img {
    width: 20px;  /* کاهش اندازه آیکن‌های داخل */
    height: 20px; /* کاهش اندازه آیکن‌های داخل */
  }

  .footer-icons {
    gap: 0.5rem;  /* کاهش فاصله بین آیکن‌ها */
  }
}

/* پشتیبانی از حالت رنگ تیره */
@media (prefers-color-scheme: dark) {
  .footer-minimal {
    background: linear-gradient(to top, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.05));
    color: #eee;
  }

  .footer-icon-link svg,
  .footer-icon-link img {
    filter: brightness(0.95) drop-shadow(0 0 2px rgba(255, 255, 255, 0.1));
  }
}
