/* Professional & Minimalist 404 Page */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    /* Increased padding-top to clear the absolute header completely and add elegance */
    padding: 180px 2rem 5rem 2rem;
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Very subtle background light to guide the eye */
.error-page::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(15, 148, 210, 0.04) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.error-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
    z-index: 1;
    animation: fadeInPage 0.8s ease-out;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-code {
    font-size: 14rem;
    font-weight: 100;
    /* Thin weight for elegant look */
    line-height: 1;
    margin-bottom: 1rem;
    color: var(--primary-color);
    letter-spacing: -8px;
    opacity: 0.9;
    font-family: inherit;
}

.error-content h1 {
    font-size: 2.2rem;
    font-weight: 200;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    letter-spacing: 0.02em;
    text-transform: none;
}

.error-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 580px;
    margin: 0 auto 4rem auto;
    line-height: 1.8;
    font-weight: 300;
}

.error-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 6rem;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 2.5rem;
    border-radius: 2px;
    font-weight: 400;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    letter-spacing: 0.03em;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.btn-outline {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.back-search {
    max-width: 450px;
    margin: 0 auto;
    padding-top: 4rem;
    border-top: 1px solid #f8fafc;
}

.back-search h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    margin-bottom: 2rem;
    color: var(--text-lighter);
    font-weight: 600;
}

.search-mini {
    display: flex;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.search-mini:focus-within {
    border-color: var(--primary-color);
}

.search-mini input {
    width: 100%;
    padding: 1rem 0;
    border: none;
    background: transparent;
    outline: none;
    font-size: 1.0rem;
    font-weight: 200;
    color: var(--text-main);
    text-align: center;
}

.search-mini button {
    background: transparent;
    color: var(--primary-color);
    border: none;
    width: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.search-mini button:hover {
    transform: translateY(-50%) translateX(5px);
}

.search-mini button i {
    font-size: 1.8rem;
    width: auto;
    height: auto;
    overflow: visible;
}

@media (max-width: 992px) {
    .error-code {
        font-size: 10rem;
    }
}

@media (max-width: 768px) {
    .error-page {
        padding-top: 140px;
    }

    .error-code {
        font-size: 7rem;
    }

    .error-content h1 {
        font-size: 1.6rem;
    }

    .error-actions {
        flex-direction: column;
        width: 100%;
    }

    .error-btn {
        width: 100%;
        justify-content: center;
    }

    .error-container {
        padding: 0 1rem;
    }
}
