/* Interactive layer styles. Loaded after style.css; behaviour lives in effects.js. */

/* Accent colours (the light work band keeps its own tokens). */
:root[data-accent="matrix"] { --blue: #6dff9e; --cyan: #5dffd6; --violet: #b8ff6d; }
:root[data-accent="sunset"] { --blue: #ffb26b; --cyan: #ffd36b; --violet: #ff7eb6; }
:root[data-accent="neon"] { --blue: #ff6bd6; --cyan: #6bf0ff; --violet: #9d7bff; }

/* Scroll progress */
.fx-progress { position: fixed; inset: 0 0 auto; z-index: 1100; height: 3px; pointer-events: none; transform: scaleX(var(--p, 0)); transform-origin: left; background: linear-gradient(90deg, var(--blue), var(--cyan), var(--violet)); box-shadow: 0 0 12px color-mix(in srgb, var(--cyan) 60%, transparent); }

/* Header tools */
.fx-tools { display: flex; align-items: center; gap: 8px; margin-left: 12px; }
.fx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 10px; border: 1px solid #435777; border-radius: 6px; color: #bac6df; background: transparent; cursor: pointer; font-size: .8rem; transition: color .2s, border-color .2s, background .2s, transform .2s; }
.fx-btn:hover { color: #fff; border-color: var(--cyan); background: #ffffff0d; transform: translateY(-1px); }
.fx-search kbd { font: .62rem ui-monospace, monospace; color: #8fa2c6; }
.fx-swatch { width: 34px; padding: 0; }
.fx-dot { width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(var(--blue), var(--cyan), var(--violet), var(--blue)); box-shadow: 0 0 10px color-mix(in srgb, var(--cyan) 50%, transparent); }
@media (max-width: 1190px) { .fx-search kbd { display: none; } .fx-search { width: 34px; padding: 0; } }
@media (max-width: 800px) { .fx-tools { margin-left: 0; } }
@media (max-width: 600px) { .fx-tools { order: 3; margin-left: 0; } }

/* Card spotlight and tilt */
.fx-spot { position: relative; }
.fx-spot::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--cyan) 22%, transparent), transparent 70%); }
.fx-spot.fx-hot::after { opacity: 1; }
.work-band .fx-spot::after { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--cyan) 13%, transparent), transparent 70%); }
.fx-tilt.fx-hot { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-5px); transition: transform .12s ease-out, border-color .25s, box-shadow .25s; will-change: transform; }

/* Staggered reveal (uses translate/opacity so it never fights the tilt transform) */
.fx-pending { opacity: 0; translate: 0 18px; }
.fx-revealing { transition: opacity .6s ease var(--d, 0ms), translate .6s ease var(--d, 0ms), transform .25s, border-color .25s, box-shadow .25s !important; }

/* Hero particle network */
.hero-particles { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; opacity: .85; }

/* Toasts */
.fx-toast-box { position: fixed; z-index: 1300; right: 18px; bottom: 18px; display: grid; gap: 8px; max-width: calc(100% - 36px); pointer-events: none; }
.fx-toast { padding: 11px 15px; border: 1px solid color-mix(in srgb, var(--cyan) 55%, transparent); border-radius: 8px; color: #eef3ff; background: #0b1428ee; box-shadow: 0 12px 34px #0007; font-size: .76rem; animation: fx-toast-in .3s ease-out; transition: opacity .5s, translate .5s; }
.fx-toast.out { opacity: 0; translate: 0 8px; }
@keyframes fx-toast-in { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }

/* Command palette */
.fx-palette { width: min(600px, calc(100% - 32px)); margin-top: 12vh; padding: 0; overflow: hidden; border: 1px solid #385077; border-radius: 14px; color: var(--ink); background: #0d1628; box-shadow: 0 30px 100px #000b; }
.fx-palette[open] { animation: dialog-arrive .2s ease-out; }
.fx-palette::backdrop { background: #020611b8; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.fx-input { display: block; width: 100%; padding: 18px 20px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; font-size: 1rem; }
.fx-input:focus-visible { outline: none; box-shadow: inset 0 -2px 0 var(--cyan); }
.fx-list { max-height: min(52vh, 380px); margin: 0; padding: 8px; overflow-y: auto; list-style: none; }
.fx-item { border-radius: 8px; }
.fx-item[aria-selected="true"] { background: #1a2d4f; box-shadow: inset 2px 0 var(--cyan); }
.fx-link { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; color: inherit; background: none; text-align: left; cursor: pointer; font-size: .86rem; }
.fx-group { color: var(--cyan); font: .6rem ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.fx-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-hint { color: #7f92b6; font-size: .68rem; }
.fx-empty { padding: 22px 12px; color: var(--muted); font-size: .84rem; }
.fx-foot { padding: 10px 16px; border-top: 1px solid var(--line); color: #7f92b6; font-size: .66rem; white-space: pre-wrap; }
@media (max-width: 600px) { .fx-link { grid-template-columns: minmax(0, 1fr) auto; } .fx-group { display: none; } .fx-toast-box { right: 15px; bottom: 15px; } }

@media (prefers-reduced-motion: reduce) {
  .fx-pending { opacity: 1; translate: none; }
  .hero-particles { display: none; }
}
