/* ============================================================
   components/footer.css — فوتر مدرن مطابق طرح فروشگاه آنلاین
   ============================================================ */

:root {
  --footer-bg: #071433;
  --footer-bg-2: #0a1f4a;
  --footer-text: #a8b8d8;
  --footer-text-light: #d6e0f5;
  --footer-title: #ffffff;
  --footer-accent: #3b82f6;
  --footer-accent-2: #60a5fa;
  --footer-line: rgba(148, 163, 184, 0.18);
}

.site-footer {
  position: relative;
  background: linear-gradient(165deg, #0b1b3d 0%, #071433 45%, #0a2048 100%);
  color: var(--footer-text);
  margin-top: 48px;
  padding: 48px 0 0;
  overflow: hidden;
  border-top: none;
  direction: rtl;
}

/* موج‌های تزئینی */
.footer-wave {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}
.footer-wave--top {
  top: -2px;
  left: 0;
  right: 0;
  height: 72px;
  background:
    radial-gradient(ellipse 80% 100% at 10% -20%, rgba(59, 130, 246, 0.55), transparent 55%),
    radial-gradient(ellipse 60% 80% at 90% -30%, rgba(37, 99, 235, 0.45), transparent 50%);
}
.footer-wave--bottom {
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background:
    radial-gradient(ellipse 70% 120% at 95% 120%, rgba(59, 130, 246, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 100% at 5% 130%, rgba(37, 99, 235, 0.3), transparent 50%);
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 28px 36px;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 1fr 1.15fr;
  gap: 32px 28px;
  align-items: start;
}

/* ---- ستون برند ---- */
.footer-brand .footer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-logo-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #3b82f6, #6366f1 55%, #8b5cf6);
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
  flex-shrink: 0;
}
.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-site-name {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
}
.footer-tagline {
  color: var(--footer-accent-2);
  font-size: 0.82rem;
  font-weight: 600;
}
.footer-desc {
  color: var(--footer-text);
  font-size: 0.88rem;
  line-height: 1.85;
  margin: 0 0 16px;
  max-width: 320px;
}

.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 4px;
}
.footer-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 64px;
  font-size: 0.72rem;
  color: var(--footer-text-light);
  font-weight: 600;
  text-align: center;
}
.footer-trust-ico {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

/* ---- عناوین ستون ---- */
.site-footer .footer-col > h4 {
  color: var(--footer-title);
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 16px;
  padding: 0;
  position: relative;
}
.site-footer .footer-col > h4::after {
  content: none;
}

/* ---- لیست لینک‌ها ---- */
.site-footer .footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer .footer-list a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s, transform 0.2s;
}
.site-footer .footer-list a:hover {
  color: #fff;
  transform: translateX(-3px);
}
.site-footer .footer-list a i,
.site-footer .footer-list li > i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.footer-list--icons a span {
  /* در دسکتاپ مثل طرح می‌توان فقط آیکن نشان داد؛ متن برای دسترس‌پذیری نگه داشته می‌شود */
}
.footer-list--contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--footer-text);
  font-size: 0.88rem;
  line-height: 1.5;
}
.footer-list--contact li i {
  margin-top: 2px;
}

/* ---- دکمه کانال ---- */
.footer-channel-btn {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #3b82f6 50%, #6366f1);
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  line-height: 1.35;
}
.footer-channel-btn small {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  opacity: 0.9;
}
.footer-channel-btn > .fab,
.footer-channel-btn > .fas.fa-telegram-plane {
  font-size: 1.25rem;
}
.footer-channel-arrow {
  margin-right: auto;
  opacity: 0.85;
}
.footer-channel-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.45);
  color: #fff !important;
}

/* ---- خبرنامه ---- */
.footer-newsletter-wrap {
  display: flex;
  align-items: center;
  background: rgba(15, 30, 70, 0.65);
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0 16px;
  max-width: 320px;
}
.footer-newsletter-ico {
  padding: 0 4px 0 12px;
  color: #64748b;
  font-size: 0.9rem;
}
.footer-newsletter-wrap .form-control,
.footer-newsletter-wrap input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  color: #e2e8f0 !important;
  box-shadow: none !important;
  padding: 12px 8px !important;
  font-size: 0.88rem !important;
  min-width: 0;
  outline: none;
}
.footer-newsletter-wrap input::placeholder {
  color: #64748b;
}
.footer-newsletter-btn {
  width: 48px;
  height: 42px;
  border: none;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: filter 0.2s;
}
.footer-newsletter-btn:hover {
  filter: brightness(1.1);
}

/* ---- شبکه‌های اجتماعی ---- */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.footer-social a:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.footer-social a.fs-tg { background: #229ed9; }
.footer-social a.fs-ig { background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af); }
.footer-social a.fs-wa { background: #25d366; }
.footer-social a.fs-in { background: #0a66c2; }
.footer-social a.fs-x  { background: #111827; }
.footer-social a.fs-yt { background: #ff0000; }

/* ---- نوار پایین ---- */
.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--footer-line);
  margin-top: 8px;
  padding: 16px 28px 22px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
}
.footer-bottom-secure {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--footer-text-light);
  font-size: 0.82rem;
  font-weight: 600;
}
.footer-bottom-secure i {
  color: #60a5fa;
  font-size: 1.05rem;
}
.footer-bottom-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  justify-content: center;
}
.footer-bottom-nav a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0 8px;
  border-left: 1px solid rgba(148, 163, 184, 0.25);
  transition: color 0.2s;
}
.footer-bottom-nav a:last-child {
  border-left: none;
}
.footer-bottom-nav a:hover {
  color: #fff;
}
.footer-bottom-copy {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--footer-text);
  font-size: 0.8rem;
}
.footer-heart {
  font-size: 0.85rem;
}
.footer-enamad {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  order: 5;
  margin-top: 4px;
}
.footer-enamad img {
  max-height: 56px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

/* ---- واکنش‌گرا ---- */
@media (max-width: 1100px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }
}
@media (max-width: 640px) {
  .site-footer {
    padding-top: 36px;
    margin-top: 32px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    padding: 20px 16px 28px;
    gap: 28px;
  }
  .footer-desc {
    max-width: none;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 16px 16px 20px;
  }
  .footer-bottom-nav a {
    border-left: none;
    padding: 4px 8px;
  }
  .footer-newsletter-wrap {
    max-width: none;
  }
  .footer-channel-btn {
    justify-content: center;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-trust {
    justify-content: center;
  }
}
