/* ===== FOOTER ===== */
.footer{
  position:relative;color:rgba(255,255,255,.62);padding:64px 0 0;overflow:hidden;
  background:
    radial-gradient(560px 280px at 12% 0%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%),
    radial-gradient(480px 260px at 88% 15%, color-mix(in srgb, var(--teal) 14%, transparent), transparent 70%),
    linear-gradient(180deg,#15152a 0%,var(--text) 100%);
}
.footer::before{
  content:'';position:absolute;top:0;left:0;right:0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.25),transparent);
}

.footer-grid{
  position:relative;
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1.5fr;
  gap:40px;
}
.footer-grid.footer-grid--cols-3{grid-template-columns:2fr 1fr 1.5fr}
.footer-grid.footer-grid--cols-2{grid-template-columns:2fr 1fr}
.footer-grid.footer-grid--cols-1{grid-template-columns:1fr;max-width:420px}

.footer-brand h3{color:#fff;font-size:1.15rem;font-weight:800;margin-bottom:14px;display:flex;align-items:center;gap:9px}
.footer-brand h3 img{height:26px;border-radius:6px;filter:brightness(1.5)}
.footer-logo-icon{
  width:30px;height:30px;border-radius:9px;flex-shrink:0;
  display:grid;place-items:center;
  background:linear-gradient(135deg,var(--primary),var(--primary-light));color:#fff;
  box-shadow:0 4px 14px color-mix(in srgb, var(--primary) 45%, transparent);
}
.footer-brand p{font-size:.82rem;line-height:1.85;margin-bottom:18px;max-width:340px}

.footer h4{
  position:relative;color:#fff;font-size:.76rem;font-weight:800;text-transform:uppercase;
  letter-spacing:.09em;margin-bottom:18px;padding-bottom:10px;
}
.footer h4::after{
  content:'';position:absolute;left:0;bottom:0;width:22px;height:2px;border-radius:2px;
  background:linear-gradient(90deg,var(--primary),var(--primary-light));
}
.footer-links li{margin-bottom:9px}
.footer-links a{
  position:relative;font-size:.81rem;color:rgba(255,255,255,.5);
  transition:color var(--transition),padding-left var(--transition);
}
.footer-links a:hover{color:#fff;padding-left:6px}

/* ===== BOTTOM BAR — full-width strip, copyright + prominent "Developed by" credit + socials ===== */
.footer-bottom{
  position:relative;width:100%;
  background:rgba(0,0,0,.18);
  border-top:1px solid rgba(255,255,255,.08);
  margin-top:44px;
}
.footer-bottom-inner{
  padding-top:20px;padding-bottom:20px;
  display:flex;align-items:center;justify-content:space-between;
  font-size:.75rem;flex-wrap:wrap;gap:14px;
}
.footer-copy{color:rgba(255,255,255,.45)}

.footer-credit{
  display:inline-flex;align-items:center;gap:6px;
  font-size:.78rem;color:rgba(255,255,255,.65);font-weight:500;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);
  padding:7px 14px;border-radius:50px;
  order:2;
  transition:var(--transition);
}
.footer-credit strong{color:#fff;font-weight:700}
.footer-credit:hover{
  background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.2);color:rgba(255,255,255,.85);
}
.footer-credit-heart{color:var(--pink);font-size:.8rem;animation:wt-heartbeat 1.8s ease-in-out infinite}
@keyframes wt-heartbeat{0%,100%{transform:scale(1)}25%{transform:scale(1.2)}40%{transform:scale(1)}}

.footer-copy{order:1}
.footer-socials{order:3}
@media(max-width:640px){
  .footer-bottom-inner{justify-content:center}
  .footer-credit{order:1}
  .footer-copy{order:2}
  .footer-socials{order:3}
}

.footer-socials{display:flex;gap:10px}
.footer-socials a{
  width:34px;height:34px;border-radius:9px;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);
  display:grid;place-items:center;font-size:.85rem;color:rgba(255,255,255,.55);
  transition:all var(--transition);
}
.footer-socials a:hover{
  background:linear-gradient(135deg,var(--primary),var(--primary-light));
  border-color:transparent;color:#fff;transform:translateY(-2px);
  box-shadow:0 6px 16px color-mix(in srgb, var(--primary) 40%, transparent);
}

@media(max-width:900px){
  .footer-grid{grid-template-columns:1fr 1fr;gap:32px;max-width:none}
}
@media(max-width:600px){
  .footer{padding:48px 0 0}
  .footer-grid{grid-template-columns:1fr;gap:32px;max-width:none}
  .footer-bottom{justify-content:center;text-align:center}
}

/* ===== BACK TO TOP — solid gradient FAB ===== */
.back-to-top{
  position:fixed;right:24px;bottom:24px;z-index:900;
  width:52px;height:52px;border-radius:50%;border:none;cursor:pointer;padding:0;
  display:grid;place-items:center;
  background:linear-gradient(135deg,var(--primary) 0%,var(--primary-light) 100%);
  box-shadow:0 8px 22px color-mix(in srgb, var(--primary) 45%, transparent);
  opacity:0;visibility:hidden;transform:translateY(16px) scale(.8);
  transition:opacity .3s ease,transform .3s cubic-bezier(.34,1.56,.64,1),visibility .3s,box-shadow var(--transition);
}
.back-to-top.visible{opacity:1;visibility:visible;transform:translateY(0) scale(1)}
.back-to-top:hover{box-shadow:0 10px 28px color-mix(in srgb, var(--primary) 60%, transparent);transform:translateY(-3px) scale(1.05)}
.back-to-top:active{transform:scale(.94)}

.btt-pulse{
  position:absolute;inset:0;border-radius:50%;
  background:var(--primary);opacity:0;
  animation:wt-btt-pulse 2.6s ease-out infinite;
}
@keyframes wt-btt-pulse{
  0%{opacity:.45;transform:scale(1)}
  100%{opacity:0;transform:scale(1.6)}
}
.back-to-top:hover .btt-pulse{animation-play-state:paused;opacity:0}

.btt-ring{position:absolute;inset:0;width:52px;height:52px;transform:rotate(-90deg)}
.btt-ring-bg{fill:none;stroke:rgba(255,255,255,.28);stroke-width:2.5}
.btt-ring-fg{
  fill:none;stroke:#fff;stroke-width:2.5;stroke-linecap:round;
  transition:stroke-dashoffset .15s linear;
}
.btt-arrow{
  position:relative;width:19px;height:19px;color:#fff;
  transition:transform var(--transition);
}
.back-to-top:hover .btt-arrow{transform:translateY(-2px)}

@media(max-width:600px){
  .back-to-top{right:16px;bottom:16px;width:46px;height:46px}
  .btt-ring{width:46px;height:46px}
}

/* ===== FLOATING FAVORITES BUTTON — hidden off-screen to the right until
   at least one tool is favorited, then slides in (footer.php / global). ===== */
.wt-fav-float{
  position:fixed;right:24px;bottom:90px;z-index:900;
  width:52px;height:52px;border-radius:50%;
  display:grid;place-items:center;
  background:linear-gradient(135deg,#fd79a8 0%,#e84393 100%);
  box-shadow:0 8px 22px rgba(232,67,147,.45);
  visibility:hidden;
  transform:translateX(110px);
  transition:transform .4s cubic-bezier(.34,1.56,.64,1),visibility .4s,box-shadow var(--transition);
}
.wt-fav-float.visible{visibility:visible;transform:translateX(0)}
.wt-fav-float:hover{box-shadow:0 10px 28px rgba(232,67,147,.6);transform:translateX(0) translateY(-3px)}
.wt-fav-float svg{width:22px;height:22px;color:#fff}
.wt-fav-float-count{
  position:absolute;top:-4px;right:-4px;min-width:19px;height:19px;padding:0 4px;
  border-radius:50px;background:#1a1a2e;color:#fff;
  font-size:.66rem;font-weight:800;line-height:19px;text-align:center;
  box-shadow:0 0 0 2px var(--bg);
}
@media(max-width:600px){
  .wt-fav-float{right:16px;bottom:72px;width:46px;height:46px}
}
