/* ==========================================================================
   EXPERTPULSE — 404 ERROR PAGE
   ========================================================================== */

.error-404-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 75vh;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative blurred accent blob */
.error-bg-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40vw;
    height: 40vw;
    background: var(--accent);
    opacity: 0.03;
    filter: blur(100px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.error-container {
    max-width: 650px;
    position: relative;
    z-index: 1;
}

/* Giant 404 number */
.error-code {
    font-family: var(--font-heading);
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 900;
    line-height: 1;
    color: var(--text-main);
    margin-bottom: 10px;
    letter-spacing: -2px;
}
.error-code .accent-zero { color: var(--accent); }

/* "Page Not Found" badge */
.error-badge {
    display: inline-block;
    padding: 6px 16px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    margin-bottom: 25px;
}

.error-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin: 0 0 15px;
    color: var(--text-main);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.error-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin: 0 auto 40px;
    line-height: 1.7;
    max-width: 500px;
}

.error-actions {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

/* Premium inline search bar */
.error-search {
    width: 100%;
    max-width: 480px;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: 50px;
    border: 1px solid var(--border);
    padding: 6px 6px 6px 20px;
    box-shadow: var(--shadow);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.error-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.error-search .search-icon {
    color: var(--text-muted);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-right: 10px;
}

.error-search input[type="search"] {
    flex-grow: 1;
    min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    width: 100%;
    padding: 10px 0;
}

.error-search button[type="submit"] {
    background-color: var(--accent);
    color: #fff;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    margin-left: 10px;
}
.error-search button[type="submit"]:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px color-mix(in srgb, var(--accent) 25%, transparent);
}
.error-search button[type="submit"] i { font-size: 1.2rem; margin: 0; }

/* Return to homepage link */
.error-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    font-weight: 700;
    color: var(--text-main);
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
}
.error-home-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}
