/* CONTROLE FLUTUANTE DE ZOOM DO BACKGROUND DE GATOS */
:root {
  --cat-size: 340px;
  --cat-zoom-transition: 2.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body::before {
  transition: background-size var(--cat-zoom-transition, 2.4s cubic-bezier(0.16, 1, 0.3, 1)) !important;
}

.cat-zoom-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  padding: 4px 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 14px rgba(99, 102, 241, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.cat-zoom-widget:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.25);
  transform: translateY(-2px);
}

.cat-zoom-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  margin-left: 4px;
}

.cat-zoom-icon svg {
  width: 16px;
  height: 16px;
}

.cat-zoom-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.18s ease;
  font-family: inherit;
  padding: 0;
}

.cat-zoom-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: scale(1.08);
}

.cat-zoom-btn:active {
  transform: scale(0.92);
}

.cat-zoom-btn svg {
  width: 14px;
  height: 14px;
}

.cat-zoom-val {
  font-size: 0.76rem;
  font-weight: 700;
  color: #cbd5e1;
  min-width: 40px;
  text-align: center;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 6px;
  transition: all 0.15s;
}

.cat-zoom-val:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Tooltip sutil informando o atalho Ctrl+Scroll */
.cat-zoom-hint {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: rgba(11, 16, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.cat-zoom-widget:hover .cat-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 480px) {
  .cat-zoom-widget {
    bottom: 16px;
    right: 16px;
    padding: 3px 6px;
  }
  .cat-zoom-hint {
    display: none;
  }
}
