/* ============================================================
   CURSOR — cursor customizado de dois elementos (dot + círculo)
   Ativado por js apenas em ponteiro fino. Some em touch.
   ============================================================ */

#cursor-dot,
#cursor-circle {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: var(--z-cursor);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  will-change: transform;
}

/* só aparecem quando o JS marca o html */
html.has-custom-cursor #cursor-dot,
html.has-custom-cursor #cursor-circle { opacity: 1; }

#cursor-dot {
  width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background: var(--purple-light);
}

#cursor-circle {
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border: 1.5px solid rgba(157, 78, 221, 0.7);
  transition: width 0.3s var(--ease-out-expo),
              height 0.3s var(--ease-out-expo),
              margin 0.3s var(--ease-out-expo),
              background 0.3s ease,
              border-color 0.3s ease,
              opacity 0.3s ease;
}

/* hover em links/botões: círculo expande e ganha preenchimento */
html.has-custom-cursor.cursor-hover #cursor-circle {
  width: 60px; height: 60px;
  margin: -30px 0 0 -30px;
  background: rgba(157, 78, 221, 0.18);
  border-color: var(--purple-light);
}

/* hover em mídias: círculo vira rótulo "Ver" */
#cursor-circle .cursor-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
html.has-custom-cursor.cursor-media #cursor-circle {
  width: 76px; height: 76px;
  margin: -38px 0 0 -38px;
  background: var(--purple);
  border-color: transparent;
}
html.has-custom-cursor.cursor-media #cursor-circle .cursor-label {
  opacity: 1;
  transform: scale(1);
}
html.has-custom-cursor.cursor-media #cursor-dot { opacity: 0; }

/* estado "pressionado" */
html.has-custom-cursor.cursor-down #cursor-circle {
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
}

@media (hover: none), (pointer: coarse) {
  #cursor-dot, #cursor-circle { display: none !important; }
}
