/* components.css */



/* =========================================================
   Ekijen Marketplace – Shared UI Glue (partials support)
   Used by: header.html, footer.html, bottom-nav.html, drawer
   ========================================================= */

:root {
  --mk-safe-bottom: env(safe-area-inset-bottom, 0px);
}

.pb-safe {
  padding-bottom: var(--mk-safe-bottom);
}

/* Drawer open state */
body.mk-drawer-open {
  overflow: hidden;
}

/* Drawer link style */
.mk-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  color: #111418;
  text-decoration: none;
}
.dark .mk-drawer-link {
  color: #fff;
}
.mk-drawer-link:hover {
  background: rgba(17, 20, 24, 0.06);
}
.dark .mk-drawer-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Desktop top nav links */
.mk-toplink {
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 700;
  color: rgba(17, 20, 24, 0.85);
  text-decoration: none;
}
.dark .mk-toplink {
  color: rgba(255, 255, 255, 0.9);
}
.mk-toplink:hover {
  background: rgba(17, 20, 24, 0.06);
}
.dark .mk-toplink:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Footer + rail links */
.mk-rail-link,
.mk-foot-link {
  color: rgba(17, 20, 24, 0.75);
  text-decoration: none;
  font-weight: 600;
}
.dark .mk-rail-link,
.dark .mk-foot-link {
  color: rgba(255, 255, 255, 0.78);
}
.mk-rail-link:hover,
.mk-foot-link:hover {
  text-decoration: underline;
}

/* Pills (category chips in side rail) */
.mk-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(17, 20, 24, 0.08);
  background: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: rgba(17, 20, 24, 0.85);
}
.dark .mk-pill {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
}
.mk-pill:hover {
  filter: brightness(0.98);
}









/* Sidebar active state (gradient theme) */
#mk-drawer .mk-drawer-link {
  position: relative;
  border-radius: 14px;
  padding: 12px 12px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

#mk-drawer .mk-drawer-link:hover {
  background: linear-gradient(135deg, rgba(124,58,237,.10) 0%, rgba(37,99,235,.10) 55%, rgba(6,182,212,.10) 100%);
}

#mk-drawer .mk-drawer-link.is-active {
  color: #fff !important;
  background: linear-gradient(135deg, #7C3AED 0%, #2563EB 55%, #06B6D4 100%);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

#mk-drawer .mk-drawer-link.is-active .material-symbols-outlined {
  color: #fff !important;
}

#mk-drawer .mk-drawer-link.is-active::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
}











/* Desktop top nav active state (gradient theme, matches drawer) */
.mk-toplink {
  position: relative; /* needed for the left accent bar */
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

/* hover: subtle gradient wash */
.mk-toplink:hover {
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.10) 0%,
    rgba(37, 99, 235, 0.10) 55%,
    rgba(6, 182, 212, 0.10) 100%
  );
}

/* active: full gradient pill */
.mk-toplink.is-active {
  color: #fff !important;
  background: linear-gradient(135deg, #7C3AED 0%, #2563EB 55%, #06B6D4 100%);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.16);
}

/* optional: if any icons inside */
.mk-toplink.is-active .material-symbols-outlined {
  color: #fff !important;
}

/* left accent bar (like drawer) */
.mk-toplink.is-active::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
}



/* .mk-hide-bottomnav #mk-bottomnav-slot {
  display: none !important;
} */


/* Mobile bottom-nav active state */
#mk-bottomnav-slot [data-nav].is-active {
  color: var(--mk-primary, #15931B) !important;
}
.dark #mk-bottomnav-slot [data-nav].is-active {
  color: var(--mk-primary, #15931B) !important;
}



