/* === فوتر سطح المكتب === */
#maknoon-footer {
  background-color: #18404a; /* لون خلفية مطابق */
  color: #ffffff;
  padding: 50px 20px;
  direction: rtl;
  font-family: inherit;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  flex: 1 1 22%;
  margin: 10px;
  min-width: 200px;
}

.footer-column h4 {
  font-size: 16px;
  margin-bottom: 15px;
  border-bottom: 1px solid #ffffff33;
  padding-bottom: 5px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #1abc9c; /* لون التأثير عند التمرير */
}

/* أيقونات الشبكات الاجتماعية */
.footer-column .social-icons span {
  margin-left: 5px;
  font-size: 18px;
  vertical-align: middle;
}


@media (max-width: 768px) {
  #maknoon-footer .footer-container {
    display: none;
  }

  #maknoon-footer .footer-toggle-btn {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: #fff;
    background: #12535e;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    width: 100%;
  }
}


/* ✅ الشريط السفلي الثابت للجوال */
.maknoon-mobile-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--maknoon-primary);
  border-top: 1px solid var(--maknoon-border);
  z-index: var(--maknoon-z-header);
  display: none; /* سيُظهر فقط عبر media query */
}

/* ✅ قائمة الأزرار داخل الشريط */
.mobile-footer-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  margin: 0;
  list-style: none;
}

.mobile-footer-nav li {
  text-align: center;
}

.mobile-footer-nav a,
.mobile-footer-nav button {
  color: var(--maknoon-white);
  background: none;
  border: none;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  cursor: pointer;
}

.mobile-footer-nav a:hover,
.mobile-footer-nav button:hover {
  color: var(--maknoon-accent);
}

/* ✅ إظهار الشريط فقط في الجوال */
@media (max-width: 768px) {
  .maknoon-mobile-footer {
    display: block;
  }
}


/* ✅ اللوحة الجانبية المنبثقة */
#mobile-footer-panel {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  top: 0;
  background: var(--maknoon-primary);
  color: var(--maknoon-white);
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  z-index: calc(var(--maknoon-z-header) + 1);
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
}

/* ✅ تفعيل ظهور اللوحة */
#mobile-footer-panel.open {
  transform: translateY(0);
}

/* ✅ رأس اللوحة */
.mobile-footer-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--maknoon-border);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.mobile-footer-panel-header h3 {
  font-size: 16px;
  margin: 0;
}

.close-panel {
  font-size: 24px;
  color: var(--maknoon-white);
  background: none;
  border: none;
  cursor: pointer;
}

/* ✅ محتوى اللوحة */
.mobile-footer-panel-content {
  font-size: 14px;
  line-height: 1.8;
}


.maknoon-mobile-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--maknoon-primary);
  z-index: var(--maknoon-z-sidebar);
  box-shadow: 0 -2px 5px var(--maknoon-shadow);
  direction: rtl;
}

.mobile-footer-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  margin: 0;
  list-style: none;
}

.mobile-footer-nav li {
  flex: 1;
  text-align: center;
}

.mobile-footer-nav a,
.mobile-footer-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--maknoon-white);
  background: none;
  border: none;
  font-size: 12px;
  transition: var(--maknoon-transition);
}

.mobile-footer-nav a:hover,
.mobile-footer-nav button:hover {
  color: var(--maknoon-accent);
}

.mobile-footer-nav .dashicons {
  font-size: 20px;
  margin-bottom: 2px;
}


.mobile-footer-panel {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: var(--maknoon-background);
  z-index: var(--maknoon-z-overlay);
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.2s ease-in-out;
  opacity: 0;
  overflow-y: auto;
  padding: var(--maknoon-sidebar-padding);
}

.mobile-footer-panel.open {
  transform: scaleY(1);
  opacity: 1;
}

.mobile-footer-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--maknoon-border);
  margin-bottom: 20px;
}

.mobile-footer-panel-header h3 {
  font-size: 18px;
  margin: 0;
  color: var(--maknoon-primary);
}

.close-panel {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--maknoon-danger);
  cursor: pointer;
}


.mobile-footer-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(3px);
  z-index: calc(var(--maknoon-z-overlay) - 1);
  opacity: 0;
  pointer-events: none;
  transition: var(--maknoon-transition);
}

.mobile-footer-panel.open + .mobile-footer-overlay {
  opacity: 1;
  pointer-events: all;
}
