/* =========================================================
   FOOTER - Final tabbed + aligned compact version (P_SMmob)
========================================================= */

.site-footer {
  background-color: #5d3754;
  color: var(--footer-text, var(--header-text, #333));
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  width: 100%;
  font-size: 14px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ---------- Wrapper ---------- */
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3px 20px; /* 🔹 compact spacing */
}

/* ---------- Bottom Row ---------- */
.footer-bottom {
  display: flex;
  justify-content: space-between; /* pushes left & right apart */
  align-items: center;
  width: 100%;
  min-height: 32px;
}

/* ---------- Left Side ---------- */
.footer-credit {
  margin: 0;
  color: var(--footer-text, #FF5722);
  text-align: left;
  flex: 1;
  white-space: nowrap;
}

/* ---------- Right Side (Menu) ---------- */
.footer-menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 10px;
  flex: 1;
}

/* Each Menu Item */
.footer-menu li {
  display: inline-block;
}

/* ---------- Tab-style menu links ---------- */
.footer-menu li a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--footer-link, var(--header-link, #333));
  background-color: #D0D3D4; /* 🔹 Default tab background */
  transition: all 0.25s ease;
}

/* Hover / Active */
.footer-menu li a:hover {
  background-color: var(--footer-link-hover-bg, rgba(0, 115, 170, 0.15)); /* Slightly stronger */
  color: var(--footer-link-hover, var(--theme-accent, #0073aa));
}

/* ---------- Responsive (Mobile) ---------- */
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 6px 0;
  }

  .footer-menu {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .footer-menu li a {
    padding: 5px 10px;
  }
}

/* ---------- Dark Mode ---------- */
body.dark-mode .site-footer {
  background-color: var(--footer-bg-dark, #1a1a1a);
  color: var(--footer-text-dark, #ccc);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tab look for dark mode */
body.dark-mode .footer-menu li a {
  color: var(--footer-link-dark, #ddd);
  background-color: var(--footer-tab-bg-dark, rgba(255, 255, 255, 0.05)); /* 🔹 subtle default tab bg */
}

body.dark-mode .footer-menu li a:hover {
  background-color: var(--footer-link-hover-bg-dark, rgba(77, 171, 247, 0.15));
  color: var(--footer-link-hover-dark, var(--theme-accent-dark, #4dabf7));
}

/* ---------- Hide Sidebar (Mobile/Tablet) ---------- */
@media (max-width: 1024px) {
  .sidebar {
    display: none !important;
  }
}
