/* ---- tool looks: what every tool's own look is built from ------------------------------------------------------------
   Each tool page wears a look (Layout/ToolLooks.cs): `.look .look--{key}` on the page column (MainLayout), on the tool frame
   (ToolLayout) and on the banner (PageHero). A look sets one hue, `--look-hue`, in its family's sheet (looks/{family}.css),
   and everything here is drawn from it: the banner's gradient, the banner art from looks/{key}/hero.svg in place of the
   eclipse, the spot illustration looks/{key}/spot.svg on an empty stage, a hairline of the tool's colour along the top of
   its controls panel, and its run button. A family sheet goes further for each tool: the stage's backdrop (a film strip, a
   floor grid, a waveform), the banner's texture, a studio's own toolbar.

   Loaded after the page sheets and before the scoped bundle. */

.look {
    --look-c: hsl(var(--look-hue, 225) 74% 60%);
    --look-c2: hsl(calc(var(--look-hue, 225) + var(--look-turn, 38)) 72% 54%);
    --look-ink: hsl(var(--look-hue, 225) 80% 76%);
    --look-soft: hsl(var(--look-hue, 225) 70% 58% / 0.12);
    --look-line: hsl(var(--look-hue, 225) 70% 58% / 0.32);
}

/* ---- the banner ---- */

.hero--look .hero__art {
    background:
        radial-gradient(60% 140% at 92% 0%, hsl(var(--hero-hue) 85% 60% / 0.42), transparent 64%),
        radial-gradient(40% 110% at 4% 120%, hsl(calc(var(--hero-hue) + var(--look-turn, 38)) 80% 56% / 0.36), transparent 66%),
        linear-gradient(118deg, hsl(var(--hero-hue) 52% 14%), hsl(calc(var(--hero-hue) + var(--look-turn, 38)) 58% 7%));
}

/* The tool's art, on the right, fading into the banner where the title sits. Drawn 4:1 (viewBox 0 0 960 240), its left half
   kept quiet; it is cut from the right on a narrow banner. */
.hero__motif {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: auto;
    max-width: 78%;
    object-fit: cover;
    object-position: right center;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
    animation: look-motif-in 0.7s var(--rl-ease-out, ease-out) both;
}

@keyframes look-motif-in { from { opacity: 0; transform: translateX(18px); } }

/* The dot grid stays, quieter, so the art reads first. */
.hero--look .hero__art::before { opacity: 0.55; }

.hero--look .hero__icon {
    background: linear-gradient(140deg, var(--look-c), var(--look-c2));
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.4), 0 0 0 4px hsl(var(--hero-hue) 80% 60% / 0.18);
}

/* ---- the tool frame (ToolLayout) ---- */

.tool.look .tool__panel {
    border-top: 3px solid var(--look-c);
    background-image: linear-gradient(180deg, var(--look-soft), transparent 9rem);
}

.tool.look .tool__actions .btn--primary:not(:disabled) {
    border-color: transparent;
    background: linear-gradient(135deg, var(--look-c), var(--look-c2));
    color: #fff;
    text-shadow: 0 1px 2px rgb(0 0 0 / 0.3);
    box-shadow: 0 6px 18px -6px hsl(var(--look-hue, 225) 80% 50% / 0.6);
}

.tool.look .tool__actions .btn--primary:not(:disabled):hover { filter: brightness(1.08) saturate(1.05); }

.tool.look .tool__stage {
    border-color: color-mix(in srgb, var(--look-c) 26%, var(--rl-border));
    background-color: color-mix(in srgb, var(--look-c) 5%, var(--rl-surface-sunken));
}

.tool.look .tool-sec__ico.ui-ico { color: var(--look-c); }

/* The empty stage: the tool's spot illustration over the sentence. */
.tool__empty--art { gap: 1.1rem; max-width: 26rem; }

.tool__emptyArt {
    width: min(15rem, 62%);
    aspect-ratio: 1;
    filter: drop-shadow(0 14px 28px hsl(var(--look-hue, 225) 70% 30% / 0.35));
    animation: look-float 6s ease-in-out infinite alternate;
}

@keyframes look-float { to { transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
    .hero__motif, .tool__emptyArt { animation: none; }
}
