/* ============================================================
   سایت بازار — فوتر سینمایی تمام‌صفحه (Cinematic Fullscreen Motion Footer)
   دقیقاً منطبق بر طراحی مرجع: نوار متحرک مورب، گرید سه‌بعدی، متن متالیک،
   کپسول‌های شیشه‌ای مغناطیسی و پوشش کامل صفحه (100vh)
   ============================================================ */

:root {
  --footer-bg: #060608;
  --footer-pill-bg-1: rgba(255, 255, 255, 0.035);
  --footer-pill-bg-2: rgba(255, 255, 255, 0.012);
  --footer-pill-border: rgba(255, 255, 255, 0.09);
  --footer-pill-shadow: rgba(0, 0, 0, 0.55);
  --footer-pill-highlight: rgba(255, 255, 255, 0.12);
  --footer-pill-hover-border: rgba(255, 255, 255, 0.22);
}

@keyframes footerBreathe {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.55; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.95; }
}

@keyframes footerScrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes footerHeartbeat {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.5)); }
  15%, 45% { transform: scale(1.22); filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.85)); }
  30% { transform: scale(1); }
}

/* ساختار فوتر تمام‌صفحه لایه رویی (Full-Screen Overlay Layer) */
.cinematic-footer-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  min-height: 100vh;
  background: var(--footer-bg);
  overflow: clip;
  overflow-x: clip;
  contain: paint;
  z-index: 50;
  box-shadow: 0 -30px 90px rgba(0, 0, 0, 0.98), 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.cinematic-footer {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: clip;
  overflow-x: clip;
  contain: paint;
  background-color: var(--footer-bg);
  color: #f8fafc;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
}

/* ۱. نور محیطی زنده (Theme-Adaptive Aurora Glow) */
.footer-aurora {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 80vw;
  height: 60vh;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle at 50% 50%,
    rgba(246, 180, 10, 0.12) 0%,
    rgba(147, 51, 234, 0.08) 40%,
    transparent 70%
  );
  animation: footerBreathe 8s ease-in-out infinite alternate;
  border-radius: 50%;
  filter: blur(85px);
  pointer-events: none;
  z-index: 0;
}

/* ۲. شبکه گریدی دقیق و تمیز (Theme-Adaptive Grid Background) */
.footer-bg-grid {
  position: absolute;
  inset: 0;
  background-size: 60px 60px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.038) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.038) 1px, transparent 1px);
  mask-image: radial-gradient(circle at center, black 45%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at center, black 45%, transparent 85%);
  pointer-events: none;
  z-index: 0;
}

/* ۳. نوشته غول‌پیکر پس‌زمینه (Giant Background Watermark Text) */
.footer-giant-bg-text {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(60px, 16vw, 240px);
  line-height: 0.75;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.045);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  -webkit-background-clip: text;
  background-clip: text;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transition: transform 0.15s ease-out;
}

/* ۴. نوار متحرک مورب بالایی شبیه رفرنس (Diagonal Sleek Marquee) */
.footer-marquee-clipper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: 120px;
  overflow: clip;
  overflow-x: clip;
  contain: paint;
  pointer-events: none;
  z-index: 15;
}

.footer-marquee-strip {
  position: absolute;
  top: 32px;
  left: -8%;
  width: 116%;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 10, 0.76);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 15px 0;
  transform: rotate(-1.8deg);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55);
  direction: ltr;
  pointer-events: auto;
}

.footer-marquee-track {
  display: flex;
  width: max-content;
  animation: footerScrollMarquee 36s linear infinite;
  white-space: nowrap;
  direction: ltr;
}

.footer-marquee-strip:hover .footer-marquee-track {
  animation-play-state: paused;
}

.footer-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding-inline: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(11px, 0.85vw, 13px);
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.footer-marquee-star {
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  display: inline-block;
}

/* ۵. محتوای مرکزی اصلی (Main Center Content) */
.footer-main-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 85px 24px 15px;
  max-width: 900px;
  margin: auto;
  width: 100%;
  box-sizing: border-box;
}

/* تیتر فلزی درخشان با افکت گرادیانت نقره‌ای/سفید به خاکستری تیره */
.footer-heading {
  font-family: var(--display, "Vazirmatn"), "Vazirmatn", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-align: center;
  direction: rtl;
  max-width: 820px;
}

.footer-text-glow {
  background: linear-gradient(180deg, #ffffff 32%, #cbd5e1 75%, #64748b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 35px rgba(255, 255, 255, 0.18));
}

.footer-subheading {
  font-size: clamp(14px, 1.2vw, 17px);
  color: rgba(255, 255, 255, 0.65);
  max-width: 680px;
  line-height: 1.8;
  margin-bottom: 34px;
  font-weight: 500;
  box-sizing: border-box;
  text-align: center;
}

/* چیدمان کپسول‌های تعاملی شیشه‌ای (Interactive Magnetic Glass Pills) */
.footer-actions-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 100%;
}

.footer-pills-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

/* استایل کپسول‌های شیشه‌ای شبیه رفرنس */
.footer-glass-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 34px;
  background: linear-gradient(145deg, var(--footer-pill-bg-1) 0%, var(--footer-pill-bg-2) 100%);
  border: 1px solid var(--footer-pill-border);
  border-radius: 9999px;
  color: #f1f5f9;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 
    0 10px 30px -10px var(--footer-pill-shadow),
    inset 0 1px 1px var(--footer-pill-highlight);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
}

.footer-glass-pill:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: var(--footer-pill-hover-border);
  color: #ffffff;
  box-shadow: 
    0 16px 36px -10px rgba(0, 0, 0, 0.75),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* دکمه‌های اصلی اقدام */
.footer-glass-pill--primary {
  background: linear-gradient(145deg, rgba(246, 180, 10, 0.16) 0%, rgba(246, 180, 10, 0.05) 100%);
  border-color: rgba(246, 180, 10, 0.4);
  color: #ffffff !important;
}

.footer-glass-pill--primary:hover {
  background: linear-gradient(145deg, #f6b40a 0%, #d99b03 100%);
  border-color: #ffd269;
  color: #0b0b0d !important;
  box-shadow: 0 12px 36px rgba(246, 180, 10, 0.45);
}

.footer-glass-pill--primary svg {
  stroke: #f6b40a;
  transition: stroke 0.25s ease;
}

.footer-glass-pill--primary:hover svg {
  stroke: #0b0b0d;
}

/* آیکون داخل کپسول */
.footer-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.footer-pill-icon svg {
  width: 18px;
  height: 18px;
}

/* ردیف دوم کپسول‌ها (لینک‌های ثانویه) */
.footer-pills-row--secondary {
  gap: 12px;
  margin-top: 4px;
}

.footer-pills-row--secondary .footer-glass-pill {
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
}

.footer-pills-row--secondary .footer-glass-pill:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* نشان شیشه‌ای اینماد */
.footer-enamad-pill {
  padding: 6px 16px;
}

.footer-enamad-pill img {
  height: 24px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* ۶. نوار پایین و کپی‌رایت شبیه رفرنس (Bottom Bar / Credits) */
.footer-bottom-bar {
  direction: ltr;
  position: relative;
  z-index: 20;
  width: 100%;
  box-sizing: border-box;
  padding: 16px 48px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-copyright {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  order: 1;
}

.footer-copyright a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-copyright a:hover {
  color: #ffffff;
}

/* نشان ساخته شده با عشق */
.footer-crafted-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  cursor: default;
  order: 2;
  border-radius: 9999px;
  width: auto !important;
}

.footer-heart {
  display: inline-block;
  color: #ef4444;
  font-size: 14px;
  animation: footerHeartbeat 2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.footer-crafted-brand {
  color: #ffffff;
  font-weight: 900;
  margin-right: 2px;
}

/* دکمه دایره‌ای مغناطیسی بازگشت به بالا */
.footer-back-to-top {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  color: rgba(255, 255, 255, 0.65);
  order: 3;
}

.footer-back-to-top:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.footer-back-to-top svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.footer-back-to-top:hover svg {
  transform: translateY(-3px);
}

/* فیزیک دکمه‌های مغناطیسی */
.footer-magnetic {
  will-change: transform;
  transform-style: preserve-3d;
}

/* ============================================================
   واکنش‌گرایی (Responsive Breakpoints)
   ============================================================ */
@media (max-width: 900px) {
  .footer-marquee-strip {
    top: 20px;
    padding: 11px 0;
  }
  .footer-main-content {
    padding: 80px 20px 20px;
  }
  .footer-bottom-bar {
    flex-direction: column-reverse;
    text-align: center;
    padding: 16px 20px 90px;
    gap: 14px;
  }
  .footer-copyright {
    order: 1;
  }
  .footer-back-to-top {
    order: 2;
  }
}

@media (max-width: 600px) {
  .cinematic-footer-wrapper {
    height: auto;
    min-height: 100vh;
    max-width: 100vw;
    overflow: hidden;
  }
  .cinematic-footer {
    min-height: 100vh;
    max-width: 100vw;
    overflow: hidden;
  }
  .footer-marquee-strip {
    top: 14px;
    padding: 9px 0;
  }
  .footer-marquee-item {
    font-size: 11px;
    gap: 20px;
    padding-inline: 16px;
  }
  .footer-main-content {
    padding: 70px 16px 15px;
    width: 100%;
    max-width: 100%;
  }
  .footer-heading {
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.4;
    margin-bottom: 14px;
  }
  .footer-subheading {
    font-size: 13px;
    margin-bottom: 22px;
    padding: 0 4px;
  }
  .footer-pills-row {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .footer-pills-row .footer-glass-pill {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    padding: 12px 18px;
    font-size: 13px;
  }
  .footer-pills-row--secondary {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .footer-pills-row--secondary .footer-glass-pill {
    width: auto !important;
    padding: 7px 14px;
    font-size: 11.5px;
  }
  .footer-giant-bg-text {
    font-size: clamp(32px, 9.5vw, 48px);
    bottom: 2vh;
  }
}
