/* ==========================================================================
   الفوتر - 3 أقسام: شريط السوشيال (أخضر) + المحتوى الرئيسي (فاتح) + الحقوق (أخضر)
   ========================================================================== */

/* -- الشريط العلوي: أيقونات التواصل الاجتماعي -- */
.footer-social {
  background-color: var(--color-brand);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: calc(16px * var(--platform-spacing,1));
}

.footer-social__list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-on-brand);
}

.footer-social__list svg {
  width: 30px;
  height: 30px;
  fill: var(--color-on-brand);
}

/* -- القسم الرئيسي: اسم المنصة + الوصف + روابط الفوتر -- */
.footer-main {
  background-color: var(--color-bg-soft);
  padding-block: calc(45px * var(--platform-spacing,1));
}

.footer-main__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: flex-start;
  gap: calc(20px * var(--platform-spacing,1));
}

.footer-main__grid > * {
  min-width: 0;
}

.footer-brand {
  width: 100%;
  text-align: start;
  justify-self: stretch;
}

.footer-brand__title {
  font-size: calc(1.375rem * var(--platform-font-scale,1));
  font-weight: var(--fw-footer-heading);
  color: var(--color-heading);
  margin: 0 0 16px;
}

.footer-brand__desc {
  color: var(--color-text-secondary);
  font-size: calc(1rem * var(--platform-font-scale,1));
  margin: 0;
}

.footer-nav {
  width: max-content;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  align-self: center;
  text-align: center;
}

.footer-nav a {
  color: var(--color-link);
  font-weight: 700;
} .footer-nav a:focus {
  color: var(--color-link-hover);
}

@media (max-width: 921px) {
  .footer-main__grid {
    grid-template-columns: 1fr;
    row-gap: calc(30px * var(--platform-spacing,1));
  }

  .footer-nav {
    justify-content: center;
  }
}

.footer-app {
  width: max-content;
  max-width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: center;
  align-self: center;
  gap: calc(6px * var(--platform-spacing,1));
  text-align: center;
}

.footer-app__icon {
  display: block;
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  object-fit: contain;
  margin-inline: auto;
}

.footer-app__text {
  color: var(--color-text-secondary);
  font-family: var(--platform-font,var(--font-base));
  font-size: calc(1rem * var(--platform-font-scale,1));
  font-weight: 800;
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

@media (max-width: 1024px) {
  .footer-app__icon {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 544px) {
  .footer-app__icon {
    width: 64px;
    height: 64px;
  }
}

/* -- الشريط السفلي: حقوق النشر -- */
.footer-bottom {
  background-color: var(--color-brand);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom__text {
  margin: 0;
  text-align: center;
  color: var(--color-on-brand);
  font-size: calc(1rem * var(--platform-font-scale,1));
}

.footer-bottom__text a {
  color: var(--color-on-brand);
}
