/* MariaStacks Album Page – Phase 4.1 Mood Profile visual refinement */

.mstax-mood-section {
    background: #0b0b0b;
    color: #fff;
    padding: clamp(3.25rem, 6vw, 6rem) 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.mstax-mood-shell {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.mstax-mood-card {
    width: min(100%, 620px);
    margin: 0 auto;
}

.mstax-mood-header {
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.mstax-mood-eyebrow {
    margin-bottom: 0.65rem;
    font-size: 0.72rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.48;
}

.mstax-mood-title {
    margin: 0;
    color: inherit;
    font-size: clamp(1.55rem, 2.5vw, 2.4rem);
    line-height: 1.08;
    font-weight: 500;
}

.mstax-mood-visual {
    position: relative;
    width: min(100%, 540px);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

.mstax-mood-plot {
    position: absolute;
    inset: 8%;
}

/*
 * The catalog still provides twelve discrete canonical colors. The field below
 * deliberately blurs their interpolated conic gradient into one continuous
 * emotional space, closer to the visual language of the album-page mock-up.
 */
.mstax-mood-field-mask {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 50%;
    background: #101010;
    -webkit-mask-image: radial-gradient(
        circle,
        #000 0%,
        #000 91%,
        rgba(0,0,0,0.96) 95%,
        rgba(0,0,0,0.58) 98%,
        transparent 100%
    );
    mask-image: radial-gradient(
        circle,
        #000 0%,
        #000 91%,
        rgba(0,0,0,0.96) 95%,
        rgba(0,0,0,0.58) 98%,
        transparent 100%
    );
    box-shadow: 0 20px 80px rgba(0,0,0,0.34);
}

.mstax-mood-field {
    position: absolute;
    inset: -15%;
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(9,9,9,0.58) 0%,
            rgba(9,9,9,0.34) 16%,
            rgba(9,9,9,0.11) 38%,
            rgba(9,9,9,0) 66%
        ),
        var(--mstax-mood-gradient);
    filter: blur(27px) saturate(0.82) contrast(0.94);
    transform: scale(1.10);
    opacity: 0.94;
}

/* A second soft veil removes the last impression of individual wedges and
 * gives the centre and outer edge the subdued depth visible in the mock-up. */
.mstax-mood-field-vignette {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(7,7,7,0.34) 0%,
            rgba(7,7,7,0.20) 20%,
            rgba(7,7,7,0.04) 48%,
            rgba(3,3,3,0.10) 72%,
            rgba(2,2,2,0.36) 100%
        );
    box-shadow:
        inset 0 0 72px rgba(0,0,0,0.24),
        inset 0 0 0 1px rgba(255,255,255,0.035);
}

.mstax-mood-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.mstax-mood-grid circle,
.mstax-mood-grid line {
    fill: none;
    stroke: rgba(255,255,255,0.16);
    stroke-width: 0.34;
    vector-effect: non-scaling-stroke;
}

.mstax-mood-grid circle:nth-child(1) {
    stroke: rgba(255,255,255,0.10);
}

.mstax-mood-grid circle:nth-child(2) {
    stroke: rgba(255,255,255,0.13);
}

.mstax-mood-marker {
    position: absolute;
    left: var(--mstax-mood-point-x);
    top: var(--mstax-mood-point-y);
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(0,0,0,0.16);
    box-shadow:
        0 0 0 4px rgba(255,255,255,0.075),
        0 3px 16px rgba(0,0,0,0.46);
    transform: translate(-50%, -50%);
    z-index: 4;
}

.mstax-mood-pole {
    position: absolute;
    z-index: 5;
    font-size: clamp(0.68rem, 1.3vw, 0.82rem);
    line-height: 1;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.54);
    white-space: nowrap;
}

.mstax-mood-pole.is-top {
    left: 50%;
    top: 0;
    transform: translate(-50%, -10%);
}

.mstax-mood-pole.is-right {
    right: 0;
    top: 50%;
    transform: translate(0, -50%);
}

.mstax-mood-pole.is-bottom {
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 10%);
}

.mstax-mood-pole.is-left {
    left: 0;
    top: 50%;
    transform: translate(0, -50%);
}

.mstax-mood-distribution {
    width: min(100%, 480px);
    margin: clamp(2rem, 4vw, 3rem) auto 0;
    border-top: 1px solid rgba(255,255,255,0.14);
}

.mstax-mood-distribution-row {
    display: grid;
    grid-template-columns: 10px 1fr auto;
    align-items: center;
    gap: 0.8rem;
    min-height: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    font-variant-numeric: tabular-nums;
}

.mstax-mood-distribution-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mstax-mood-entry-color);
    box-shadow: 0 0 12px rgba(255,255,255,0.12);
    box-shadow: 0 0 12px color-mix(in srgb, var(--mstax-mood-entry-color) 70%, transparent);
}

.mstax-mood-distribution-name {
    font-size: 0.86rem;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.78);
}

.mstax-mood-distribution-value {
    font-size: 0.86rem;
    color: rgba(255,255,255,0.58);
}

@media (max-width: 820px) {
    .mstax-mood-shell {
        width: min(100% - 32px, 720px);
    }

    .mstax-mood-card {
        width: min(100%, 560px);
    }
}

@media (max-width: 480px) {
    .mstax-mood-section {
        padding: 3rem 0;
    }

    .mstax-mood-shell {
        width: calc(100% - 24px);
    }

    .mstax-mood-header {
        margin-bottom: 1.8rem;
    }

    .mstax-mood-visual {
        width: 100%;
    }

    .mstax-mood-pole {
        font-size: 0.63rem;
    }

    .mstax-mood-marker {
        width: 17px;
        height: 17px;
    }

    .mstax-mood-distribution {
        margin-top: 1.8rem;
    }
}
