/*!
 * DGR Web — 404 sayfası (core, v8)
 * app/views/front/pages/notfound.php · assets/js/front/notfound.js
 * İşlevli düzen: solda hata + hızlı ulaşım, sağda sitede arama (yazdıkça süzülen hedef listesi). Net kenarlar, düz dolgu, bulanıklık yok.
 */

.nfp {
    padding: clamp(7rem, 5rem + 6vw, 9rem) 0 clamp(3.5rem, 6vw, 5.5rem);
}

.nfp__inner {
    display: grid;
    gap: clamp(2rem, 4vw, 3.5rem);
}

@media (min-width: 960px) {
    .nfp__inner {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        align-items: start;
    }
}

.nfp__code {
    display: inline-flex;
    align-items: stretch;
    margin: 0 0 1.25rem;
    overflow: hidden;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: #fff;
    font-family: var(--mono);
    letter-spacing: 0.06em;
}

.nfp__code span,
.nfp__code b {
    padding: 0.4rem 0.8rem;
    font-size: var(--fs-label);
    font-weight: 500;
    text-transform: uppercase;
}

.nfp__code b {
    color: #fff;
    background: var(--brand-600);
}

.nfp__title {
    margin: 0;
    font-size: clamp(2.2rem, 1.4rem + 3vw, 3.75rem);
    font-weight: 650;
    line-height: 1.06;
    letter-spacing: -0.035em;
    text-wrap: balance;
    animation: rise 0.8s var(--ease) both;
}

.nfp__text {
    max-width: 30rem;
    margin: 1.25rem 0 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--muted);
}

.nfp__meta {
    display: grid;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.nfp__path,
.nfp__suggest {
    margin: 0;
    font-size: 0.95rem;
}

.nfp__path {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.75rem;
}

.nfp__path-label {
    color: var(--muted);
}

.nfp__path-value {
    max-width: 100%;
    padding: 0.2rem 0.55rem;
    overflow: hidden;
    border: 1px solid var(--line-2);
    border-radius: 8px;
    background: #fff;
    font-family: var(--mono);
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nfp__suggest-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.1rem 0 0.3rem;
    font-weight: 650;
    color: var(--brand-600);
    text-decoration: none;
    --flame-inset: 0px;
    --flame-bottom: 0px;
    --flame-h: 9px;
}

.nfp__suggest-link .icon {
    width: 16px;
    height: 16px;
}

.nfp__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.75rem;
}

.nfp__quick {
    margin-top: 2.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line-2);
}

.nfp__quick-title,
.nfp__group-title {
    margin: 0 0 0.75rem;
    font-family: var(--mono);
    font-size: var(--fs-label);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.nfp__quick-links {
    display: grid;
    gap: 0.6rem;
}

@media (min-width: 560px) and (max-width: 959px) {
    .nfp__quick-links {
        grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    }
}

/* Arama paneli */
.nfp__search {
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border: 1px solid var(--line-2);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 1px 0 rgb(20 20 20 / 0.04), 0 6px 10px -8px rgb(20 20 20 / 0.25);
}

.nfp__form {
    margin-bottom: 1.25rem;
}

.nfp__label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
    font-weight: 650;
}

.nfp__field {
    position: relative;
}

.nfp__search-icon {
    position: absolute;
    top: 50%;
    left: 0.95rem;
    width: 18px;
    height: 18px;
    color: var(--faint);
    transform: translateY(-50%);
    pointer-events: none;
}

.nfp__input {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 0.7rem 1rem 0.7rem 2.7rem;
    border: 1px solid var(--line-2);
    border-radius: 14px;
    background: var(--bg-soft);
    font-size: 1rem;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.nfp__input:hover {
    border-color: #cfcfcf;
}

.nfp__input:focus {
    outline: none;
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}

.nfp__count {
    min-height: 1.2rem;
    margin: 0.5rem 0 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.nfp__group + .nfp__group {
    margin-top: 1.25rem;
}

.nfp__list {
    display: grid;
    gap: 0.3rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nfp .nf__link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0.75rem;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--ink);
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s;
    --flame-inset: 0.75rem;
    --flame-bottom: 0px;
    --flame-h: 10px;
}

.nfp .nf__link:hover,
.nfp .nf__link:focus-visible {
    border-color: var(--brand-100);
    background: var(--brand-50);
}

.nfp__icon {
    flex: none;
    box-sizing: content-box;
    width: 18px;
    height: 18px;
    padding: 7px;
    border-radius: 9px;
    color: var(--brand-600);
    background: var(--brand-50);
    box-shadow: inset 0 0 0 1px var(--brand-100);
}

.nfp__link-text {
    display: grid;
    flex: 1;
    gap: 0.1rem;
    min-width: 0;
}

.nfp__link-label {
    font-size: 0.97rem;
    font-weight: 650;
    line-height: 1.25;
}

.nfp__link-desc {
    overflow: hidden;
    font-size: 0.84rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
}

.nfp__arrow {
    flex: none;
    width: 16px;
    height: 16px;
    color: var(--faint);
    transition: transform 0.3s var(--ease), color 0.2s;
}

.nfp .nf__link:hover .nfp__arrow {
    color: var(--brand-600);
    transform: translateX(3px);
}

.nfp [data-nf-item][hidden],
.nfp [data-nf-group][hidden] {
    display: none;
}

.nfp__empty {
    display: grid;
    gap: 0.4rem;
    padding: 1.25rem;
    border: 1px dashed var(--line-2);
    border-radius: 14px;
    background: var(--bg-soft);
}

.nfp__empty[hidden] {
    display: none;
}

.nfp__empty-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 650;
}

.nfp__empty-text {
    margin: 0 0 0.6rem;
    font-size: 0.92rem;
    color: var(--muted);
}

/* Süzülen listede yeni gelen satırlar kısa yükselir */
.nfp__list > li.is-shown {
    animation: rise 0.35s var(--ease) both;
}

@media (prefers-reduced-motion: reduce) {
    .nfp__title,
    .nfp__list > li.is-shown {
        animation: none;
    }
}

html[data-motion="off"] .nfp__title,
html[data-motion="off"] .nfp__list > li.is-shown {
    animation: none;
}
