/* ══════════════════════════════════════════════════════════
   ICONS  — shared between deenly-site & portfolio-site
   Edit here, then run: sh sync.sh
══════════════════════════════════════════════════════════ */

/* Font Awesome (free CDN) */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css");

/* ── Theme toggle ──
   Dark mode  → lightbulb (fa-lightbulb)  — matches Flutter solidLightbulb
   Light mode → moon      (fa-moon)        — matches Flutter solidMoon        */
.theme-toggle .icon-sun  { display: inline-block; font-size: 17px; }
.theme-toggle .icon-moon { display: none;         font-size: 17px; }
[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: inline-block; }

/* ── App-sheet close button ── */
#app-sheet-close { font-size: 18px; }

/* ══════════════════════════════════════════════════════════
   SHARED CURSOR  — used by Deenly pages
══════════════════════════════════════════════════════════ */
.shared-cursor {
  position: fixed;
  inset: 0 auto auto 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.shared-cursor.is-visible { opacity: 1; }

.shared-cursor-dot,
.shared-cursor-ring,
.shared-cursor-icon {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  transform: translate3d(-80px, -80px, 0);
  will-change: transform;
}

.shared-cursor-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--shared-cursor-accent, var(--on-bg));
  box-shadow: 0 0 18px color-mix(in srgb, var(--shared-cursor-accent, var(--on-bg)) 70%, transparent);
  transition: width 0.18s ease, height 0.18s ease, background 0.2s ease, opacity 0.18s ease;
}

.shared-cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--shared-cursor-accent, var(--on-bg)) 78%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--shared-cursor-accent, var(--on-bg)) 6%, transparent);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: width 0.18s ease, height 0.18s ease, border-color 0.2s ease, background 0.2s ease;
}

.shared-cursor-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--shared-cursor-accent, var(--on-bg));
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.14s ease, color 0.2s ease;
}

html.shared-cursor-hover .shared-cursor-dot {
  width: 4px;
  height: 4px;
  opacity: 0.9;
}

html.shared-cursor-hover .shared-cursor-ring {
  width: 50px;
  height: 50px;
  border-color: var(--shared-cursor-accent, var(--on-bg));
  background: color-mix(in srgb, var(--shared-cursor-accent, var(--on-bg)) 12%, transparent);
}

html.shared-cursor-hover .shared-cursor-icon {
  width: 50px;
  height: 50px;
  opacity: 1;
}

html.shared-cursor-pressed .shared-cursor-ring {
  width: 42px;
  height: 42px;
}

@media (hover: hover) and (pointer: fine) {
  html.shared-cursor-ready,
  html.shared-cursor-ready body,
  html.shared-cursor-ready a,
  html.shared-cursor-ready button,
  html.shared-cursor-ready .btn,
  html.shared-cursor-ready [role="button"] {
    cursor: none;
  }
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .shared-cursor {
    display: none;
  }
}
