/**
 * حسابات المجلة وحسابات سعد – أيقونات المنصات في الفوتر
 */
footer .footer-inner {
  flex-wrap: wrap;
}

.footer-social {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border, rgba(255,255,255,0.12));
}

.footer-social-block {
  margin-bottom: 18px;
}

.footer-social-block:last-child {
  margin-bottom: 0;
}

.footer-social-logo-wrap {
  margin-bottom: 10px;
}

.footer-social-logo-wrap img.footer-social-logo {
  display: block;
  height: auto;
  max-height: 44px;
  width: auto;
  object-fit: contain;
}

.footer-social-logo-magazine .logo-dark { display: none; }
.footer-social-logo-magazine .logo-light { display: block; }
html:not([data-theme="dark"]) .footer-social-logo-magazine .logo-light { display: none; }
html:not([data-theme="dark"]) .footer-social-logo-magazine .logo-dark { display: block; }

.footer-social-logo-saad .footer-social-logo {
  max-height: 48px;
  max-width: 120px;
}

.footer-social-block h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted, rgba(255,255,255,0.7));
  margin: 0 0 10px;
}

.footer-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.footer-social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  transition: background 0.2s, transform 0.2s;
}

.footer-social-icons a:hover {
  background: rgba(255,255,255,0.18);
  transform: scale(1.08);
}

.footer-social-icons a:focus {
  outline: 2px solid var(--accent, #c9a02e);
  outline-offset: 2px;
}

.footer-social-icons svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

html:not([data-theme="dark"]) .footer-social {
  border-top-color: rgba(0,0,0,0.1);
}

html:not([data-theme="dark"]) .footer-social-block h4 {
  color: var(--text-soft, #555);
}

html:not([data-theme="dark"]) .footer-social-icons a {
  background: rgba(0,0,0,0.06);
  color: #333;
}

html:not([data-theme="dark"]) .footer-social-icons a:hover {
  background: rgba(0,0,0,0.12);
}

@media (max-width: 640px) {
  .footer-social {
    margin-top: 16px;
    padding-top: 16px;
  }
  .footer-social-icons a {
    width: 44px;
    height: 44px;
  }
  .footer-social-icons svg {
    width: 24px;
    height: 24px;
  }
}
