/* ============================================================
   Magic Picker — tool-chrome.css
   Minimal stylesheet that styles ONLY the chrome (top app bar,
   bottom fixed nav, slide-out side menu, footer) injected by
   js/tool-common.js. Safe to include on tool pages that already
   have their own custom theme — does not touch <body> layout
   colors or typography of the host page.
   ============================================================ */

/* Top App Bar */
.mp-appbar {
  position: sticky;
  top: 0;
  z-index: 9000;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  padding: 14px 18px 12px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}
.mp-appbar-title-link {
  justify-self: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 10px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.mp-appbar-title-link:hover {
  background: #f5f3ff;
  transform: translateY(-1px);
}
.mp-appbar-title-link:active {
  transform: translateY(0);
  background: #ede9fe;
}
.mp-appbar-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: linear-gradient(135deg, #7b5cf0 0%, #5b8def 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mp-appbar .mp-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: transparent;
  border: 0;
  display: grid;
  place-items: center;
  color: #1a2236;
  font-size: 1.2rem;
  cursor: pointer;
  text-decoration: none;
}
.mp-appbar .mp-icon-btn:hover { background: #f1f3f8; }

.mp-appbar .mp-bell-dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff4d6d;
  box-shadow: 0 0 0 0 rgba(255,77,109,0.55);
  animation: mpDotPing 1.4s infinite;
}
@keyframes mpDotPing {
  0%   { transform: scale(0.9);  box-shadow: 0 0 0 0   rgba(255,77,109,0.48); }
  70%  { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(255,77,109,0); }
  100% { transform: scale(0.9);  box-shadow: 0 0 0 0   rgba(255,77,109,0); }
}

/* Bottom Fixed Nav */
.mp-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 680px;
  background: #ffffff;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 10px 8px 14px;
  box-shadow: 0 -8px 30px rgba(20, 25, 50, 0.08);
  z-index: 9000;
  border-top: 1px solid #f0f2f7;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
.mp-bottom-nav .mp-bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #8a93a8;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 6px 4px;
  border-radius: 12px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.mp-bottom-nav .mp-bn-item i { font-size: 1.15rem; }
.mp-bottom-nav .mp-bn-item.is-active { color: #6c5ce7; }
.mp-bottom-nav .mp-bn-item:hover { color: #6c5ce7; }
.mp-bottom-nav .mp-bn-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7b5cf0 0%, #5b3dd6 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin: -22px auto 0;
  box-shadow: 0 12px 24px rgba(91, 61, 214, 0.4), 0 0 0 6px #ffffff;
  text-decoration: none;
  justify-self: center;
}

/* Global Footer */
.mp-global-footer {
  margin-top: 40px;
  padding: 28px 18px 130px; /* extra bottom space for fixed nav */
  text-align: center;
  background: #ffffff;
  border: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
.mp-global-footer .mp-footer-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: center;
}
.mp-global-footer .mp-footer-brand {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #7b5cf0, #5b8def);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}
.mp-global-footer .mp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  justify-content: center;
  margin: 8px 0 16px;
  padding: 0;
  list-style: none;
}
.mp-global-footer .mp-footer-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: #4a5675;
  position: relative;
  padding-bottom: 2px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.mp-global-footer .mp-footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #7b5cf0, #5b8def);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
  border-radius: 2px;
}
.mp-global-footer .mp-footer-links a:hover { color: #6c5ce7; }
.mp-global-footer .mp-footer-links a:hover::after { transform: scaleX(1); }
.mp-global-footer .mp-footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: #6b7588;
}
@media (max-width: 420px) {
  .mp-global-footer .mp-footer-links { gap: 6px 18px; }
}

/* Slide-out side menu */
.mp-side-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 9500;
}
.mp-side-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.mp-side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: min(82vw, 320px);
  height: 100vh;
  background: #ffffff;
  box-shadow: 18px 0 50px rgba(15, 23, 42, 0.16);
  transform: translateX(-105%);
  transition: transform 0.24s ease;
  z-index: 9600;
  padding: 20px 16px 28px;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
.mp-side-menu.open { transform: translateX(0); }
.mp-side-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef0f6;
  margin-bottom: 14px;
}
.mp-side-menu-head strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: #111827;
}
.mp-side-menu-head .mp-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: transparent;
  border: 0;
  display: grid;
  place-items: center;
  color: #1a2236;
  font-size: 1.1rem;
  cursor: pointer;
}
.mp-side-menu-head .mp-icon-btn:hover { background: #f1f3f8; }
.mp-side-menu-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mp-side-menu-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  color: #1f2937;
  font-weight: 700;
  background: #f8fafc;
  border: 1px solid transparent;
  text-decoration: none;
}
.mp-side-menu-links a:hover {
  background: #eef2ff;
  color: #6c5ce7;
  border-color: rgba(108, 92, 231, 0.15);
}
.mp-side-menu-links i {
  width: 18px;
  text-align: center;
  color: #6c5ce7;
}
body.mp-menu-open { overflow: hidden; }

/* =========================================================
   PRO-LEVEL BLACK FOOTER  (Magic Picker)
   - Overrides legacy .mp-global-footer styles
   - Mobile-first, responsive multi-column layout
   ========================================================= */

.mp-global-footer.mp-footer-pro {
  position: relative;
  margin-top: 56px !important;
  padding: 0 !important;
  background: linear-gradient(180deg, #0a0a14 0%, #07070d 60%, #050509 100%) !important;
  color: #cdd3e1 !important;
  border: 0 !important;
  border-top: 1px solid rgba(124, 92, 240, 0.18) !important;
  overflow: hidden;
  text-align: center !important;
  width: 100%;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.35);
}

/* Subtle radial glow accents */
.mp-footer-pro .mp-footer-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 240px at 12% 0%, rgba(123, 92, 240, 0.22), transparent 60%),
    radial-gradient(500px 200px at 88% 0%, rgba(91, 141, 239, 0.18), transparent 65%),
    radial-gradient(700px 260px at 50% 100%, rgba(255, 122, 89, 0.10), transparent 70%);
  z-index: 0;
}

.mp-footer-pro .mp-footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 22px 22px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-align: center !important;
}

/* ---------- TOP GRID ---------- */
.mp-footer-pro .mp-footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 36px 28px;
  align-items: start;
}

/* ---------- BRAND COLUMN ---------- */
.mp-footer-pro .mp-footer-brand-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.mp-footer-pro .mp-footer-brand {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  margin: 0 auto 14px !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
  color: #fff !important;
}
.mp-footer-pro .mp-footer-logo-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #7b5cf0, #5b8def);
  color: #fff;
  font-size: 1.05rem;
  box-shadow: 0 8px 22px rgba(123, 92, 240, 0.5), inset 0 0 0 1px rgba(255,255,255,0.08);
}
.mp-footer-pro .mp-footer-logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  background: none !important;
  -webkit-text-fill-color: #fff !important;
}
.mp-footer-pro .mp-footer-logo-text span {
  background: linear-gradient(135deg, #a48bff, #6bb1ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mp-footer-pro .mp-footer-tagline {
  margin: 6px auto 18px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #9aa3b8;
  max-width: 360px;
  text-align: center;
}

/* Social icons */
.mp-footer-pro .mp-footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.mp-footer-pro .mp-social {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  font-size: 0.95rem;
  color: #d6dbeb !important;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.2s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.mp-footer-pro .mp-social:hover {
  transform: translateY(-3px);
  color: #fff !important;
  border-color: transparent;
}
.mp-footer-pro .mp-social-yt:hover    { background: #ff0033; box-shadow: 0 10px 22px rgba(255, 0, 51, 0.45); }
.mp-footer-pro .mp-social-ig:hover    { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); box-shadow: 0 10px 22px rgba(220, 39, 67, 0.45); }
.mp-footer-pro .mp-social-tw:hover    { background: #111; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55); }
.mp-footer-pro .mp-social-fb:hover    { background: #1877f2; box-shadow: 0 10px 22px rgba(24, 119, 242, 0.45); }
.mp-footer-pro .mp-social-mail:hover  { background: linear-gradient(135deg, #7b5cf0, #5b8def); box-shadow: 0 10px 22px rgba(123, 92, 240, 0.45); }

/* ---------- LINK COLUMNS ---------- */
.mp-footer-pro .mp-footer-col {
  min-width: 0;
  text-align: center;
}
.mp-footer-pro .mp-footer-heading {
  margin: 0 auto 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  padding-bottom: 10px;
}
.mp-footer-pro .mp-footer-heading i {
  font-size: 0.75rem;
  color: #a48bff;
  background: rgba(124, 92, 240, 0.12);
  padding: 5px;
  border-radius: 6px;
}
.mp-footer-pro .mp-footer-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, #7b5cf0, #5b8def);
  border-radius: 2px;
}

.mp-footer-pro .mp-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.mp-footer-pro .mp-footer-list li { margin: 0; text-align: center; }
.mp-footer-pro .mp-footer-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #aab2c5 !important;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
}
.mp-footer-pro .mp-footer-list a i {
  font-size: 0.78rem;
  color: #7b5cf0;
  width: 16px;
  text-align: center;
  transition: color 0.2s ease, transform 0.25s ease;
}
.mp-footer-pro .mp-footer-list a::after { display: none !important; content: none !important; }
.mp-footer-pro .mp-footer-list a:hover {
  color: #ffffff !important;
  transform: translateY(-1px);
}
.mp-footer-pro .mp-footer-list a:hover i {
  color: #a48bff;
  transform: scale(1.15) rotate(-5deg);
}

/* ---------- DIVIDER ---------- */
.mp-footer-pro .mp-footer-divider {
  height: 1px;
  margin: 36px 0 20px;
  background: linear-gradient(90deg, transparent, rgba(124, 92, 240, 0.35), rgba(91, 141, 239, 0.35), transparent);
  border: 0;
}

/* ---------- BOTTOM BAR ---------- */
.mp-footer-pro .mp-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 22px;
  text-align: center;
}
.mp-footer-pro .mp-footer-copy {
  margin: 0 !important;
  font-size: 0.82rem !important;
  color: #8a93a8 !important;
  letter-spacing: 0.01em;
}
.mp-footer-pro .mp-footer-copy strong {
  color: #ffffff;
  font-weight: 700;
}
.mp-footer-pro .mp-footer-made {
  margin: 0;
  font-size: 0.82rem;
  color: #8a93a8;
}
.mp-footer-pro .mp-footer-made i {
  color: #ff4d6d;
  animation: mpHeartBeat 1.6s ease-in-out infinite;
  margin: 0 2px;
}
@keyframes mpHeartBeat {
  0%, 100% { transform: scale(1); }
  25%, 75% { transform: scale(1.18); }
}
.mp-footer-pro .mp-footer-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}
.mp-footer-pro .mp-footer-mini a {
  font-size: 0.82rem;
  font-weight: 600;
  color: #aab2c5 !important;
  text-decoration: none;
  transition: color 0.2s ease;
}
.mp-footer-pro .mp-footer-mini a:hover { color: #a48bff !important; }
.mp-footer-pro .mp-footer-mini span { color: #3b4258; font-size: 0.7rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .mp-footer-pro .mp-footer-top {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px 24px;
  }
  .mp-footer-pro .mp-footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .mp-footer-pro .mp-footer-inner { padding: 36px 18px 18px !important; }
  .mp-footer-pro .mp-footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
  .mp-footer-pro .mp-footer-brand-col { grid-column: 1 / -1; text-align: center; }
  .mp-footer-pro .mp-footer-tagline { max-width: 100%; }
  .mp-footer-pro .mp-footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
}
@media (max-width: 400px) {
  .mp-footer-pro .mp-footer-top { grid-template-columns: 1fr; }
  .mp-footer-pro .mp-footer-heading { font-size: 0.74rem; }
  .mp-footer-pro .mp-footer-list a { font-size: 0.85rem; }
}

/* Make sure body / app shell doesn't clip the wide footer */
body { background: #050509; }
.mp-app { background: #ffffff; }
.mp-app > .mp-footer-pro,
.mp-footer-pro {
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}

/* Extra bottom space so fixed bottom nav doesn't overlap footer content */
.mp-footer-pro { padding-bottom: 110px !important; }
@media (min-width: 900px) {
  .mp-footer-pro { padding-bottom: 24px !important; }
}
