/**
 * ==========================================================================
 * StabilityTest Theme - 404 Styles
 * ==========================================================================
 *
 * Styles for the 404 error page.
 *
 * Responsibilities:
 *
 * - Error page layout
 * - Error messaging
 * - Recovery actions
 * - Navigation back to site
 *
 * Keep all 404-specific styles isolated within this file.
 *
 * @package StabilityTest_Theme
 * @since 1.0.0
 * ==========================================================================
 */

.error-404 {
    padding: 80px 0;
}

.error-404__shell {
    display: grid;
    grid-template-columns: 540px 1fr;
    align-items: center;
    gap: 80px;
}

.error-404__content {
    min-width: 0;
}

.error-404__media {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(-150px);
}

.error-404__code {
    margin: 0;
    color: var(--stabilitytest-color-text);
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 800;
    line-height: 0.9;
}

.error-404__title {
    margin: 16px 0 24px;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.error-404__message {
    max-width: 520px;
    margin: 0 0 40px;
    color: var(--stabilitytest-color-text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
}

.error-404__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.error-404__help {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 72px;
}

.error-404__help-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    border: 2px solid var(--stabilitytest-color-primary);
    border-radius: 50%;
    color: var(--stabilitytest-color-primary);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

.error-404__help-content {
    min-width: 0;
}

.error-404__help-title {
    margin: 0 0 4px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
}

.error-404__help-text {
    margin: 0;
    color: var(--stabilitytest-color-text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.error-404__help-text a {
    color: var(--stabilitytest-color-primary);
    font-weight: 700;
    text-decoration: none;
}

.error-404__image {
    display: block;
    width: 850px;
    max-width: none;
    height: auto;
}

@media (max-width: 960px) {

    .error-404 {
        padding: 72px 0;
    }

    .error-404__shell {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .error-404__media {
        justify-content: center;
        transform: none;
    }

    .error-404__message {
        margin-left: auto;
        margin-right: auto;
    }

    .error-404__actions,
    .error-404__help {
        justify-content: center;
    }

    .error-404__help {
        text-align: left;
    }

    .error-404__image {
        width: min(100%, 520px);
        max-width: 100%;
    }
}