/* ==================== استایل‌های اصلی فوتر (دسکتاپ و موبایل) ==================== */
.site-footer {
  background: rgba(243, 210, 80, 0.2);
  color: #2d2d2d;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  font-family: "B Nazanin", "Poppins", "Nunito", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  user-select: none;
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(243, 210, 80, 0.6);
  border-radius: 50px 50px 25px 25px;
  box-shadow: 0 -6px 32px rgba(0,0,0,0.15);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 210, 80, 0.8), transparent);
}

/* ==================== چیدمان ۴ ستونهٔ فوتر ==================== */
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  text-align: right;
}

.footer-column {
  flex: 1 1 220px;
  min-width: 180px;
}

.footer-column h4 {
  color: #a77f20;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid rgba(243, 210, 80, 0.5);
  padding-bottom: 0.5rem;
  text-align: right;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 0.7rem;
}

.footer-column ul li a {
  color: #2d2d2d;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.footer-column ul li a:hover {
  color: #a77f20;
  text-shadow: 0 0 10px rgba(243, 210, 80, 0.4);
  padding-right: 5px;
}

/* ==================== بخش شبکه‌های اجتماعی ==================== */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  font-size: 2.6rem;
  margin: 0.5rem 0 2rem 0;
}

.footer-social a {
  color: #a77f20;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0.4rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(167, 127, 32, 0.2);
}

.footer-social a:hover {
  color: #fff9c4;
  background: rgba(243, 210, 80, 0.2);
  box-shadow: 0 8px 25px rgba(243, 210, 80, 0.4);
  transform: translateY(-4px) scale(1.1);
  text-shadow: 0 0 20px rgba(243, 210, 80, 1), 0 0 35px rgba(243, 210, 80, 0.9);
}

/* ==================== بخش تغییر زبان ==================== */
.footer-lang-switcher {
  display: flex;
  gap: 1rem;
  direction: ltr;
  justify-content: center;
  align-items: center;
  margin: 0.5rem 0 1.5rem 0;
  flex-wrap: wrap;
}

.footer-lang-switcher button {
  background: linear-gradient(135deg, #f3d250, #f2c12e);
  border: none;
  border-radius: 25px;
  color: #1a1a1a;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.7rem 1.8rem;
  min-width: 4rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(243, 210, 80, 0.4);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.footer-lang-switcher button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s;
}

.footer-lang-switcher button:hover::before {
  left: 100%;
}

.footer-lang-switcher button:hover,
.footer-lang-switcher button:focus-visible {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 10px 30px rgba(243, 210, 80, 0.6);
}

.footer-lang-switcher button.active {
  background: linear-gradient(135deg, #f2c12e, #f3d250);
  box-shadow: 0 0 0 3px rgba(243, 210, 80, 0.3), 0 8px 25px rgba(243, 210, 80, 0.5);
}

/* ==================== بخش کپی‌رایت ==================== */
.footer-bottom {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: center;
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(243, 210, 80, 0.3);
  font-size: 0.88rem;
  color: rgba(45, 45, 45, 0.9);
  width: 100%;
}

.footer-copy {
  font-size: 0.85rem;
  font-weight: 500;
  color: #5a4e1e;
  margin-top: 0.5rem;
}

.footer-bottom a {
  color: #a77f20;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.footer-bottom a:hover {
  color: #fff;
  text-shadow: 0 0 15px rgba(243, 210, 80, 0.8);
}

/* ==================== دکمه‌های شناور (آیکون‌های اجتماعی) ==================== */
.floating-icons {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-btn img {
  width: 24px;
  height: 24px;
}

.icon-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ==================== دکمهٔ دارک مود ==================== */
.dark-toggle-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: transform 0.3s ease, background 0.3s ease;
}

.dark-toggle-btn:hover {
  transform: scale(1.1);
  background: rgba(243, 210, 80, 0.15);
}

/* ==================== حالت دارک مود ==================== */
body.dark-mode .site-footer {
  background: rgba(218, 237, 175, 0.25);
  color: #f0f0f0;
  border-color: rgba(218, 237, 175, 0.4);
}

body.dark-mode .footer-column h4 {
  color: #d4b44c;
  border-bottom-color: rgba(218, 237, 175, 0.5);
}

body.dark-mode .footer-column ul li a {
  color: #f0f0f0;
}

body.dark-mode .footer-social a {
  color: #d4b44c;
}

body.dark-mode .footer-social a:hover {
  color: #fff9c4;
  background: rgba(218, 237, 175, 0.2);
}

body.dark-mode .footer-bottom {
  border-top-color: rgba(218, 237, 175, 0.3);
  color: rgba(255, 255, 255, 0.9);
}

/* ==================== نسخهٔ موبایل ==================== */
@media (max-width: 768px) {
  .site-footer {
    padding: 1.5rem 1rem;
    border-radius: 30px 30px 15px 15px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-column {
    text-align: center;
  }

  .footer-column h4 {
    text-align: center;
  }

  .footer-social {
    gap: 1.2rem;
    font-size: 2.2rem;
  }

  .footer-lang-switcher {
    gap: 0.8rem;
  }

  .footer-lang-switcher button {
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
  }

  .floating-icons {
    bottom: 10px;
    left: 10px;
    gap: 8px;
  }

  .dark-toggle-btn {
    bottom: 10px;
    right: 10px;
  }
}