﻿:root {
    --bottomBack: #c3c3c3;
    --shadow: rgb(151, 0, 255);
}
.internal_navbar_container {
    background-color: #0f172a; 
}

/* ================= TOP BAR LAYOUT ================= */

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    position: relative;
}

/* ================= HEADER LOGO ================= */

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
    transition: transform .3s ease;
}

.logo-container,
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    display: block;
}

.header-logo:hover {
    transform: scale(1.03);
}

.logo-container,
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}




/* ================= PageTitle ================= */


.PageTitle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* 👈 همیشه وسط صفحه */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 0;
    
}

    .PageTitle h1 {
        color: #fff;
        font-size: 2rem;
        /*text-shadow: 0 0 5px rgb(242, 156, 17), 0 0 10px rgb(242, 156, 17), 0 0 20px rgb(242, 156, 17), 0 0 40px rgb(242, 156, 17), 0 0 80px rgb(242, 156, 17);*/
        animation: neonPulse 1.5s ease-in-out infinite alternate;
    }

/* انیمیشن چشمک زدن ملایم نئون */
@keyframes neonPulse {
    from {
        text-shadow: 0 0 5px rgb(151, 0, 255), 0 0 10px rgb(151, 0, 255), 0 0 20px rgb(151, 0, 255), 0 0 40px rgb(151, 0, 255);
    }

    to {
        text-shadow: 0 0 10px rgb(151, 0, 255), 0 0 20px rgb(151, 0, 255), 0 0 40px rgb(151, 0, 255), 0 0 80px rgb(151, 0, 255), 0 0 120px rgb(151, 0, 255);
    }
}





.nav-links {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.nav-links li{
    list-style : none;
}

    .nav-links li a {
        color: var(--bottomBack);
        text-decoration: none;
        font-size: 20px;
        /*text-shadow: 0 0 5px rgb(151, 0, 255), 0 0 10px rgb(151, 0, 255), 0 0 20px rgb(151, 0, 255), 0 0 40px rgb(151, 0, 255), 0 0 80px rgb(151, 0, 255);*/
       
    }


        .nav-links li a.active {
            color: white;
            text-decoration: none;
            font-size: 25px;
            /*text-shadow: 0 0 5px rgb(151, 0, 255), 0 0 10px rgb(151, 0, 255), 0 0 20px rgb(151, 0, 255), 0 0 40px rgb(151, 0, 255), 0 0 80px rgb(151, 0, 255);*/
            animation: neonPulse 1.5s ease-in-out infinite alternate;
            cursor :default;
            pointer-events : none;
        }

        .nav-links li a:hover {
            color: var(--bottomBack);
            text-decoration: none;
            font-size: 20px;
            /*text-shadow: 0 0 5px rgb(151, 0, 255), 0 0 10px rgb(151, 0, 255), 0 0 20px rgb(151, 0, 255), 0 0 40px rgb(151, 0, 255), 0 0 80px rgb(151, 0, 255);*/
            animation: neonPulse 1.5s ease-in-out infinite alternate;
        }







/* موبایل (عرض حداکثر 768px) */
@media (max-width: 768px) {

    /* تغییر ساختار به حالت ستونی */
    .top-bar {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 15px 10px 10px 10px;
        margin: 0;
        
    }

    /* حذف position absolute از PageTitle */
    .PageTitle {
        position: relative;
        left: auto;
        transform: none;
        width: 100%;
        margin: 0;
        padding: 0 15px 15px 15px;
    }

        /* کوچک‌تر کردن متن h1 در موبایل */
        .PageTitle h1 {
            font-size: 1.8rem;
            text-align: center;
            margin: 0;
        }

    /* گرد کردن گوشه‌های پایینی internal_navbar_container */
    .internal_navbar_container {
        border-radius: 0 0 25px 25px;
        overflow: hidden;
        padding-bottom: 5px;
    }

    /* در صورت نیاز به گرد کردن گوشه‌های PageTitle */
    .PageTitle {
        background-color: transparent;
    }

        /* کاهش سایه نئون برای موبایل (اختیاری - بهینه‌سازی عملکرد) */
        .PageTitle h1 {
            text-shadow: 0 0 3px rgb(151, 0, 255), 0 0 6px rgb(151, 0, 255), 0 0 12px rgb(151, 0, 255), 0 0 20px rgb(151, 0, 255);
        }

    /* کوچک‌تر کردن لوگو در موبایل (اختیاری) */
    .header-logo {
        gap: 5px;
    }

    .logo-image {
        width: 35px;
        height: 35px;
    }

    .nav-links {
        display: flex;
        justify-content: center;
        gap: 20px;
    }

        .nav-links li a {
            color: black;
            text-decoration: none;
            font-size: 10px;
            color : var(--bottomBack);
            text-shadow: 0 0 5px rgb(151, 0, 255), 0 0 10px rgb(151, 0, 255), 0 0 20px rgb(151, 0, 255), 0 0 40px rgb(151, 0, 255), 0 0 80px rgb(151, 0, 255);
        }


            .nav-links li a.active {
                color: white;
                text-decoration: none;
                font-size: 15px;
                text-shadow: 0 0 5px rgb(151, 0, 255), 0 0 10px rgb(151, 0, 255), 0 0 20px rgb(151, 0, 255), 0 0 40px rgb(151, 0, 255), 0 0 80px rgb(151, 0, 255);
                animation: neonPulse 1.5s ease-in-out infinite alternate;
                cursor: default;
                pointer-events: none;
            }

            .nav-links li a:hover {
                color: var(--bottomBack);
                text-decoration: none;
                font-size: 15px;
                text-shadow: 0 0 5px rgb(151, 0, 255), 0 0 10px rgb(151, 0, 255), 0 0 20px rgb(151, 0, 255), 0 0 40px rgb(151, 0, 255), 0 0 80px rgb(151, 0, 255);
                animation: neonPulse 1.5s ease-in-out infinite alternate;
            }

}

/* موبایل خیلی کوچک (عرض حداکثر 480px) */
@media (max-width: 480px) {
    
    .PageTitle h1 {
        font-size: 1.4rem;
    }

    .top-bar {
        gap: 8px;
        padding: 10px 8px 8px 8px;
    }

    .internal_navbar_container {
        border-radius: 0 0 18px 18px;
    }
}

/* تبلت (بین 768px و 1024px) - اختیاری */
@media (min-width: 769px) and (max-width: 1024px) {
    .PageTitle h1 {
        font-size: 2.2rem;
    }

    .internal_navbar_container {
        border-radius: 0 0 20px 20px;
    }
}




@media (max-width: 1024px) and (min-width: 768px) and (orientation: portrait) {

    .top-bar {
        min-height: 85px;
    }

    /* لوگو را به گوشه چپ می‌چسبانیم تا منو روی آن نیفتد */
    .header-logo {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }

    /* منو را از حالت absolute خارج می‌کنیم تا وسط نوار قرار گیرد */
    .PageTitle {
        position: relative;
        left: auto;
        transform: none;
        width: auto;
        margin: 0 auto;
    }

    /* از دوخطی شدن متن‌های منو جلوگیری می‌کنیم */
    .nav-links li a {
        white-space: nowrap;
        font-size: 16px;
    }

    /* فاصله بین آیتم‌های منو را کمی کمتر می‌کنیم */
    .nav-links {
        gap: 20px;
    }
}


