﻿/* ==========================================================================
   404 / Not found page  (Views/NotFound.cshtml)
   Uses the LayoutV3 design tokens declared in layout_v3.css
   ========================================================================== */

.not-found {
    padding: 60px 0 80px;
}

.not-found__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.not-found__content {
    flex: 1 1 420px;
    min-width: 0;
}

.not-found__visual {
    flex: 0 1 460px;
    max-width: 100%;
}

.not-found__illustration {
    width: 100%;
    height: auto;
    display: block;
}

/* ============ heading ============ */

.not-found__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    background-color: var(--light-gold);
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.not-found__badge i {
    font-size: 16px;
}

.not-found__title {
    color: var(--blue);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.not-found__description {
    color: var(--gray);
    font-size: 16px;
    line-height: 1.9;
    max-width: 560px;
    margin-bottom: 28px;
}

/* ============ search ============ */

.not-found__search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 560px;
    padding: 6px 6px 6px 6px;
    background-color: var(--white);
    border: 1px solid #e3e6ea;
    border-radius: 100px;
    box-shadow: 0 8px 24px rgba(33, 25, 100, 0.06);
    margin-bottom: 28px;
}

.not-found__search:focus-within {
    border-color: var(--purple);
    box-shadow: 0 8px 24px rgba(122, 93, 245, 0.16);
}

.not-found__search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.not-found__search-icon {
    flex: 0 0 auto;
    margin-inline-start: 14px;
    font-size: 20px;
    color: var(--middle-gray);
}

.not-found__search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 12px 10px;
    font-size: 14px;
    color: var(--blue);
}

.not-found__search-input::placeholder {
    color: var(--middle-gray);
}

.not-found__search-input::-webkit-search-cancel-button {
    cursor: pointer;
}

.not-found__search-button {
    flex: 0 0 auto;
    border: none;
    cursor: pointer;
    padding: 12px 28px;
    border-radius: 100px;
    background-color: var(--blue);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.25s ease;
}

.not-found__search-button:hover {
    background-color: var(--purple);
}

/* ============ actions ============ */

.not-found__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.not-found__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.not-found__button i {
    font-size: 18px;
}

.not-found__button--primary {
    background-color: var(--blue);
    color: var(--white);
}

.not-found__button--primary:hover {
    background-color: var(--purple);
    color: var(--white);
}

.not-found__button--ghost {
    background-color: transparent;
    color: var(--blue);
    border: 1px solid #d8dce2;
}

.not-found__button--ghost:hover {
    border-color: var(--blue);
    background-color: var(--light-blue);
}

/* ============ shortcuts ============ */

.not-found__shortcuts {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid #e3e6ea;
}

.not-found__shortcuts-title {
    color: var(--blue);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.not-found__shortcuts-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}

.not-found__shortcut {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 18px 20px;
    border-radius: 16px;
    background-color: var(--white);
    border: 1px solid #e9ecf1;
    transition: all 0.25s ease;
}

.not-found__shortcut:hover {
    border-color: var(--purple);
    box-shadow: 0 10px 24px rgba(33, 25, 100, 0.08);
    transform: translateY(-2px);
}

.not-found__shortcut-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: var(--light-blue);
    color: var(--blue);
}

.not-found__shortcut-icon i {
    font-size: 22px;
}

.not-found__shortcut-title {
    flex: 1 1 auto;
    color: var(--blue);
    font-size: 15px;
    font-weight: 600;
}

.not-found__shortcut-arrow {
    flex: 0 0 auto;
    font-size: 18px;
    color: var(--middle-gray);
    transition: color 0.25s ease;
}

.not-found__shortcut:hover .not-found__shortcut-arrow {
    color: var(--purple);
}

/* ============ direction ============ */

[dir="rtl"] .not-found__shortcut-arrow {
    transform: scaleX(-1);
}

/* ============ responsive ============ */

@media (max-width: 991px) {
    .not-found__inner {
        flex-direction: column-reverse;
        text-align: center;
    }

    .not-found__content {
        flex-basis: auto;
    }

    .not-found__visual {
        flex-basis: 360px;
    }

    .not-found__description {
        margin-inline: auto;
    }

    .not-found__search {
        margin-inline: auto;
    }

    .not-found__actions {
        justify-content: center;
    }

    .not-found__shortcuts {
        text-align: start;
    }

    .not-found__shortcuts-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .not-found {
        padding: 32px 0 56px;
    }

    .not-found__title {
        font-size: 28px;
    }

    .not-found__description {
        font-size: 14px;
    }

    .not-found__search {
        flex-wrap: wrap;
        border-radius: 20px;
        padding: 12px;
    }

    .not-found__search-icon {
        margin-inline-start: 6px;
    }

    .not-found__search-input {
        flex: 1 1 140px;
    }

    .not-found__search-button {
        flex: 1 1 100%;
        padding: 12px 20px;
    }

    .not-found__button {
        flex: 1 1 100%;
        justify-content: center;
    }

    .not-found__shortcuts-list {
        grid-template-columns: minmax(0, 1fr);
    }
}
