﻿/* بند 7 SEO - ملف جديد: تنسيق صفحة "غير موجود" (Shared/PageNotFound.razor) */

.sh-kh-nf-container {
    direction: rtl;
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 150px;
    padding-bottom: 100px;
    overflow: hidden;
    background-color: var(--sec-color);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.sh-kh-nf-grid-background {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    pointer-events: none;
}

.sh-kh-nf-grid-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sh-kh-nf-content {
    position: relative;
    z-index: 1;
    width: min(var(--default-spacing), var(--default-max-spacing));
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sh-kh-nf-logo {
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(91, 225, 30, 0.1);
    border: 1px solid rgba(91, 225, 30, 0.35);
    /* توهج خفيف ملاصق للدائرة بس */
    box-shadow: 0 0 14px rgba(91, 225, 30, 0.18);
    margin-bottom: 28px;
}

.sh-kh-nf-logo img {
    width: 52%;
    height: auto;
}

.sh-kh-nf-title {
    font-family: var(--kh-bold);
    font-weight: normal;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.35;
    color: #fff;
    max-width: 980px;
}

.sh-kh-nf-title span {
    color: var(--pr-color);
}

.sh-kh-nf-subtitle {
    font-family: var(--kh-reg);
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    color: rgba(255, 255, 255, 0.75);
    margin-top: 18px;
    margin-bottom: 36px;
}

/* بطاقات الفروع */
.sh-kh-nf-branches {
    list-style: none;
    width: 100%;
    max-width: 860px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.sh-kh-nf-branch {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.sh-kh-nf-branch:hover,
.sh-kh-nf-branch:focus-visible {
    transform: translateY(-4px);
    border-color: var(--pr-color);
    background-color: rgba(91, 225, 30, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.sh-kh-nf-branch-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background-color: rgba(91, 225, 30, 0.15);
    color: var(--pr-color);
}

.sh-kh-nf-branch-name {
    font-family: var(--kh-bold);
    font-size: 1.3rem;
}

.sh-kh-nf-branch-arrow {
    margin-inline-start: auto;
    font-size: 1.3rem;
    color: var(--pr-color);
    transition: transform 0.3s ease;
}

.sh-kh-nf-branch:hover .sh-kh-nf-branch-arrow,
.sh-kh-nf-branch:focus-visible .sh-kh-nf-branch-arrow {
    transform: translateX(-6px);
}

/* زر الرجوع وزر واتساب */
.sh-kh-nf-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 44px;
}

.sh-kh-nf-home-btn,
.sh-kh-nf-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 14px;
    font-family: var(--kh-reg);
    font-size: 1.05rem;
    text-decoration: none;
    transition: 0.25s ease;
}

.sh-kh-nf-home-btn {
    background-color: var(--pr-color);
    color: var(--sec-color);
    box-shadow: 0 10px 30px rgba(91, 225, 30, 0.25);
}

.sh-kh-nf-home-btn:hover,
.sh-kh-nf-home-btn:focus-visible {
    background-color: transparent;
    color: #fff;
    outline: 1px solid var(--pr-color);
    box-shadow: none;
}

.sh-kh-nf-whatsapp-btn {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.sh-kh-nf-whatsapp-btn:hover,
.sh-kh-nf-whatsapp-btn:focus-visible {
    background-color: #25D366;
    border-color: #25D366;
}

.sh-kh-nf-branch:focus-visible,
.sh-kh-nf-home-btn:focus-visible,
.sh-kh-nf-whatsapp-btn:focus-visible {
    outline: 2px solid var(--pr-color);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .sh-kh-nf-branch,
    .sh-kh-nf-branch-arrow,
    .sh-kh-nf-home-btn,
    .sh-kh-nf-whatsapp-btn {
        transition: none;
    }
}

/*#region Media Query*/

@media(max-width: 760px) {

    .sh-kh-nf-container {
        padding-top: 120px;
        padding-bottom: 70px;
    }

    .sh-kh-nf-branches {
        grid-template-columns: minmax(0, 1fr);
        max-width: 420px;
    }
}

@media(max-width: 480px) {

    .sh-kh-nf-logo {
        width: 70px;
        height: 70px;
        margin-bottom: 22px;
    }

    .sh-kh-nf-actions {
        width: 100%;
        flex-direction: column;
    }

    .sh-kh-nf-home-btn,
    .sh-kh-nf-whatsapp-btn {
        width: 100%;
    }
}

/*#endregion*/
