/* =========================================================
   SUBSTRATE COMING SOON SYSTEM
   Isolated hover system for inactive Substrate links only
   File: substrate-soon.css
   ========================================================= */

.substrate-soon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    overflow: visible;
    cursor: not-allowed;
    transition:
        color 0.25s ease,
        text-shadow 0.25s ease,
        opacity 0.25s ease;
}

/* Prevent navigation feel */
.substrate-soon-link::after {
    content: "";
    position: absolute;
    inset: -6px -10px;
    border-radius: 10px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    background:
        radial-gradient(circle at center,
            rgba(255, 40, 40, 0.16) 0%,
            rgba(255, 0, 0, 0.05) 45%,
            transparent 75%);
    z-index: 9998;
}

/* Hover state */
.substrate-soon-link:hover {
    color: #ff6868 !important;
    text-shadow:
        0 0 8px rgba(255, 70, 70, 0.5),
        0 0 18px rgba(255, 0, 0, 0.2);
}

.substrate-soon-link:hover::after {
    opacity: 1;
}

/* Threat tooltip */
.substrate-threat {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: max-content;

    padding: 12px 18px;

    border:
        1px solid rgba(255, 70, 70, 0.28);

    background:
        linear-gradient(
            180deg,
            rgba(7, 10, 18, 0.96) 0%,
            rgba(2, 5, 10, 0.98) 100%
        );

    backdrop-filter: blur(10px);

    box-shadow:
        0 0 0 1px rgba(255, 0, 0, 0.04),
        0 10px 40px rgba(0, 0, 0, 0.55),
        0 0 25px rgba(255, 0, 0, 0.08);

    color: #ff8f8f;

    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    line-height: 1.6;
    text-transform: uppercase;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    z-index: 99999;

    transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        visibility 0.22s ease;
}

/* subtle scanline */
.substrate-threat::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        repeating-linear-gradient(
            to bottom,
            rgba(255,255,255,0.025) 0px,
            rgba(255,255,255,0.025) 1px,
            transparent 1px,
            transparent 3px
        );

    opacity: 0.28;
    mix-blend-mode: screen;
    pointer-events: none;
}

/* Threat active */
.substrate-soon-link:hover .substrate-threat {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* faint corruption pulse */
.substrate-soon-link:hover .substrate-threat {
    animation: substrateThreatPulse 2.4s infinite;
}

@keyframes substrateThreatPulse {
    0% {
        box-shadow:
            0 10px 40px rgba(0, 0, 0, 0.55),
            0 0 18px rgba(255, 0, 0, 0.06);
    }

    50% {
        box-shadow:
            0 10px 42px rgba(0, 0, 0, 0.62),
            0 0 28px rgba(255, 40, 40, 0.14);
    }

    100% {
        box-shadow:
            0 10px 40px rgba(0, 0, 0, 0.55),
            0 0 18px rgba(255, 0, 0, 0.06);
    }
}

/* Disable click interaction */
.substrate-soon-link[aria-disabled="true"] {
    pointer-events: auto;
}

/* Mobile handling */
@media (max-width: 768px) {

    .substrate-threat {
        left: 0;
        transform: translateX(0) translateY(8px);

        width: min(280px, 80vw);

        white-space: normal;
        line-height: 1.5;
    }

    .substrate-soon-link:hover .substrate-threat {
        transform: translateX(0) translateY(0);
    }
}