/* =====================================================================
   RexBD footer: rounded glass card with a soft neon glow.
   Markup: core/resources/views/partials/footer.blade.php
   Uses the neon palette from bdurl-neon.css (with fallbacks).
   ===================================================================== */

.rx-foot {
  --rx-c1: var(--c1, #22d3ee);
  --rx-c2: var(--c2, #3b82f6);
  --rx-c3: var(--c3, #8b5cf6);
  --rx-ink: var(--ink, #f2f5ff);
  --rx-text: var(--text, #b6c0dc);
  --rx-muted: var(--muted, #8189a8);
  --rx-line: var(--line, rgba(140, 160, 230, .16));
  --rx-edge: var(--edge, rgba(120, 150, 255, .22));
  position: relative;
  margin-top: 72px;
  padding: 0 0 32px;
  color: var(--rx-text);
  font-size: 14px;
  background: none;
  border: 0;
}

.rx-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 28px;
  padding: 48px 44px 22px;
  border: 1px solid var(--rx-edge);
  background:
    radial-gradient(620px 340px at 0% 0%, rgba(59, 130, 246, .22), transparent 70%),
    radial-gradient(560px 360px at 72% 18%, rgba(139, 92, 246, .22), transparent 70%),
    radial-gradient(520px 260px at 100% 100%, rgba(34, 211, 238, .12), transparent 70%),
    linear-gradient(160deg, #0a1132 0%, #070b22 55%, #050816 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 0 0 1px rgba(99, 140, 255, .06),
    0 30px 80px -30px rgba(59, 130, 246, .45),
    0 0 120px -50px rgba(139, 92, 246, .6);
}
/* thin neon line along the top edge */
.rx-card::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rx-c1), var(--rx-c2), var(--rx-c3), transparent);
  opacity: .8;
  z-index: -1;
}

/* ---------- Grid ---------- */
.rx-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr) repeat(var(--fcols, 3), minmax(0, 1fr));
  gap: 32px 28px;
  align-items: start;
}
.rx-top.no-tools { grid-template-columns: minmax(0, 1.4fr) repeat(var(--fcols, 3), minmax(0, 1fr)); }

/* ---------- Brand column ---------- */
.rx-foot .logo { color: #fff !important; background: none; text-decoration: none; }
.rx-about { margin: 16px 0 20px; max-width: 320px; font-size: 13.5px; line-height: 1.65; color: var(--rx-text); }

.rx-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rx-contact a, .rx-crow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  color: var(--rx-text);
  text-decoration: none;
  font-size: 13.5px;
  transition: color .15s;
}
.rx-contact a > span:last-child, .rx-crow > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.rx-contact a:hover { color: #fff; }
.rx-tile {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #93c5fd;
  background: rgba(99, 140, 255, .1);
  border: 1px solid rgba(120, 150, 255, .24);
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.rx-contact a:hover .rx-tile { color: #fff; background: var(--grad, linear-gradient(135deg, #22d3ee, #3b82f6 48%, #8b5cf6)); border-color: transparent; box-shadow: 0 0 18px -4px rgba(59, 130, 246, .8); }

.rx-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.rx-social a {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--rx-text);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--rx-line);
  transition: color .15s, background .15s, border-color .15s, transform .15s;
}
.rx-social a:hover { color: #fff; background: var(--rx-c2); border-color: var(--rx-c2); transform: translateY(-2px); }

/* ---------- Link columns ---------- */
.rx-col h4 {
  margin: 4px 0 18px;
  padding-bottom: 10px;
  position: relative;
  font: 700 14px/1.2 var(--font, 'Plus Jakarta Sans', system-ui, sans-serif);
  letter-spacing: .01em;
  text-transform: none;
  color: var(--rx-ink);
  opacity: 1;
}
.rx-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--rx-c1), var(--rx-c2), var(--rx-c3));
  box-shadow: 0 0 10px rgba(59, 130, 246, .7);
}
.rx-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.rx-col-tools ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.rx-col li { margin: 0; font-size: 13.5px; line-height: 1.35; }
.rx-col a {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 100%;
  color: var(--rx-text);
  text-decoration: none !important;
  background: none !important;
  transition: color .15s, transform .15s;
}
.rx-col a svg { flex: none; margin-top: 1px; color: #7c93d8; transition: color .15s; }
.rx-col a span { min-width: 0; overflow-wrap: anywhere; }
.rx-col a:hover { color: #fff; transform: translateX(2px); }
.rx-col a:hover svg { color: var(--rx-c1); }
.rx-foot a:focus-visible { outline: 2px solid var(--rx-c1); outline-offset: 3px; border-radius: 6px; }

/* ---------- Bottom bar ---------- */
.rx-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 40px;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  border: 1px solid var(--rx-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.rx-copy { flex: 1 1 260px; min-width: 0; }
.rx-copy p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--rx-text); overflow-wrap: anywhere; }
.rx-copy a { color: #93c5fd; }
.rx-copy .rx-built { margin-top: 2px; font-size: 11.5px; color: var(--rx-muted); }

.rx-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.rx-legal a { font-size: 12.5px; color: var(--rx-text); text-decoration: none; transition: color .15s; }
.rx-legal a:hover { color: #fff; }

.rx-end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.rx-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 12.5px;
  white-space: nowrap;
  color: var(--rx-ink);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--rx-edge);
}
.rx-pill svg { color: #93c5fd; }
.rx-top-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff !important;
  background: var(--grad, linear-gradient(135deg, #22d3ee, #3b82f6 48%, #8b5cf6));
  box-shadow: 0 0 20px -6px rgba(59, 130, 246, .9);
  transition: transform .15s, filter .15s;
}
.rx-top-btn svg { transform: rotate(180deg); }
.rx-top-btn:hover { transform: translateY(-2px); filter: brightness(1.12); }

/* ---------- Tablet: brand on its own row, links in 2 columns ---------- */
@media (max-width: 1024px) {
  .rx-card { padding: 40px 32px 20px; }
  .rx-top, .rx-top.no-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
  .rx-brand { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; align-items: start; }
  .rx-brand .logo { grid-column: 1 / -1; justify-self: start; }
  .rx-about { margin-bottom: 0; }
  .rx-contact { margin-top: 16px; }
  .rx-social { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .rx-bar { flex-direction: column; align-items: center; text-align: center; padding: 16px; }
  .rx-copy { flex: none; width: 100%; }
  .rx-legal { justify-content: center; }
  .rx-end { margin-left: 0; }
}

/* ---------- Phone: one column ---------- */
@media (max-width: 640px) {
  .rx-foot { margin-top: 56px; padding-bottom: 20px; }
  .rx-card { border-radius: 22px; padding: 32px 20px 16px; }
  .rx-top, .rx-top.no-tools { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .rx-brand { display: block; }
  .rx-about { margin-bottom: 18px; }
  .rx-contact { margin-top: 0; }
  .rx-col-tools ul { column-gap: 12px; }
  .rx-bar { margin-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .rx-foot *, .rx-foot *::before, .rx-foot *::after { transition: none !important; animation: none !important; }
  .rx-col a:hover, .rx-social a:hover, .rx-top-btn:hover { transform: none; }
}

/* Column heading that links to a page (All Tools) */
.rx-foot h4 a.rx-h-link { color: inherit; text-decoration: none; }
.rx-foot h4 a.rx-h-link:hover { color: #67e8f9; }
