@font-face {
    font-family: 'Vazir';
    src: url('../assets/fonts/Vazir.woff2') format('woff2'),
         url('../assets/fonts/Vazir.woff') format('woff'),
         url('../assets/fonts/Vazir.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.sight-internal-header {
    position: sticky;
    top: 20px;
    width: calc(100% - 40px);
    margin: 0 20px;
    height: 70px;
    background: rgba(10, 10, 12, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 221, 168, 0.1);
    border-radius: 16px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
}

.header-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 999;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(99, 221, 168, 0.4));
    transition: transform 0.3s ease;
}

.header-logo:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-sight,
.logo-gaming {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.logo-sight {
    color: #ffffff;
}

.logo-gaming {
    color: #63dda8;
    text-shadow: 0 0 15px rgba(99, 221, 168, 0.5);
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.desktop-nav a {
    text-decoration: none;
    color: #b0b0b0;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: #63dda8;
    text-shadow: 0 0 10px rgba(99, 221, 168, 0.4);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    right: 0;
    background: linear-gradient(90deg, #63dda8, #4ab38c);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px #63dda8;
    border-radius: 2px;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 10px 40px 10px 20px;
    color: #fff;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 13px;
    width: 200px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-box input:focus {
    outline: none;
    width: 260px;
    background: rgba(0, 0, 0, 0.4);
    border-color: #63dda8;
    box-shadow: 0 0 15px rgba(99, 221, 168, 0.15);
}

.search-btn {
    position: absolute;
    left: 12px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.search-btn:hover {
    color: #63dda8;
    transform: scale(1.1);
}

.search-results {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    min-width: 260px;
    max-height: 400px;
    overflow-y: auto;
    background: rgba(20, 20, 25, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 221, 168, 0.2);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 2000;
}


.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb {
    background: #63dda8;
    border-radius: 4px;
}

.search-results.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background: rgba(99, 221, 168, 0.15);
    transform: translateX(-5px);
}

.search-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #63dda8;
}

.search-item-info {
    display: flex;
    flex-direction: column;
}

.search-item-name {
    color: #fff;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 700;
    font-size: 14px;
}

.search-item-game {
    color: #aaa;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 12px;
}

.no-result {
    text-align: center;
    padding: 20px;
    color: #888;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 13px;
}

.btn-login-header {
    background: linear-gradient(135deg, #63dda8 0%, #3da37a 100%);
    color: #050505;
    padding: 10px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(99, 221, 168, 0.25);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-login-header:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 221, 168, 0.45);
}

.btn-login-header:hover::before {
    left: 100%;
}

.user-profile {
    position: relative; 
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.02);
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 200px;
    background: rgba(20, 20, 25, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(99, 221, 168, 0.2);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1005;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 221, 168, 0.3);
    box-shadow: 0 0 12px rgba(99, 221, 168, 0.15);
}

.avatar-wrapper {
    position: relative;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #63dda8;
    object-fit: cover;
    box-shadow: 0 0 8px rgba(99, 221, 168, 0.3);
    transition: transform 0.3s ease;
}

.user-profile:hover .user-avatar {
    transform: scale(1.1);
}

.status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background-color: #63dda8;
    border: 2px solid #1a1a1a;
    border-radius: 50%;
    box-shadow: 0 0 5px #63dda8;
}

.user-name {
    color: #fff;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 13px;
    font-weight: 600;
}

.arrow-icon {
    color: #888;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.user-profile:hover .arrow-icon {
    transform: rotate(180deg);color: #63dda8;
}

.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown .dropdown-header {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 5px;
}

.profile-dropdown .dropdown-header span {
    color: #fff;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 700;
    font-size: 13px;
}

.profile-dropdown ul {
    list-style: none;
}

.profile-dropdown li {
    margin-bottom: 2px;
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #ccc;
    text-decoration: none;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 13px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.profile-dropdown a:hover {
    background: rgba(99, 221, 168, 0.1);
    color: #63dda8;
}

.profile-dropdown .logout-btn a {
    color: #ff6b6b;
}

.profile-dropdown .logout-btn a:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff4757;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1002;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(99, 221, 168, 0.1);
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.mobile-menu-btn.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 8, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 1001;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
    display: none; 
}

.mobile-menu-overlay.active {
    right: 0;
    display: block; 
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(99, 221, 168, 0.1);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-logo-img {
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(99, 221, 168, 0.5));
}

.mobile-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.mobile-logo-sight,
.mobile-logo-gaming {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.mobile-logo-sight {
    color: #ffffff;
}

.mobile-logo-gaming {
    color: #63dda8;
    text-shadow: 0 0 15px rgba(99, 221, 168, 0.5);
}

.close-menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(99, 221, 168, 0.2);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-menu-btn:hover {
    background: rgba(255, 71, 87, 0.2);
    border-color: #ff4757;
    color: #ff4757;
    transform: rotate(90deg);
}

.mobile-menu-content {
    padding: 30px 25px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-decoration: none;
    color: #d1d1d1;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
    background: rgba(99, 221, 168, 0.1);
    border-color: rgba(99, 221, 168, 0.3);
    color: #63dda8;
    transform: translateX(-5px);
}

.nav-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.nav-text {
    flex: 1;
}

.mobile-user-section {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(99, 221, 168, 0.1);
    border-radius: 16px;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #63dda8;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(99, 221, 168, 0.4);
}

.mobile-user-name {
    color: #fff;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.mobile-dashboard-btn,
.mobile-logout-btn {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.mobile-dashboard-btn {
    background: linear-gradient(135deg, #63dda8, #3da37a);
    color: #000;
    box-shadow: 0 4px 15px rgba(99, 221, 168, 0.3);
}

.mobile-dashboard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 221, 168, 0.5);
}

.mobile-logout-btn {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.mobile-logout-btn:hover {
    background: rgba(255, 107, 107, 0.2);color: #ff4757;
}

.mobile-auth {
    margin-top: 30px;
}

.btn-mobile-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #63dda8, #3da37a);
    color: #000;
    text-decoration: none;
    border-radius: 14px;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 6px 25px rgba(99, 221, 168, 0.4);
    transition: all 0.3s ease;
}

.btn-mobile-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(99, 221, 168, 0.6);
}

.sight-internal-header.scrolled {
    top: 0;
    width: 100%;
    margin: 0;
    border-radius: 0;
}

@media (max-width: 992px) {
    .sight-internal-header {
        top: 10px;
        width: calc(100% - 20px);
        margin: 0 10px;
        height: 65px;
    }

    .desktop-nav,
    .search-box {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .logo-img {
        height: 38px;
    }

    .logo-text span {
        font-size: 16px;
    }

    .user-name,
    .arrow-icon {
        display: none;
    }

    .user-avatar {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 768px) {
    .sight-internal-header {
        height: 60px;
    }

    .header-container {
        padding: 0 15px;
    }

    .logo-img {
        height: 35px;
    }

    .logo-text span {
        font-size: 14px;
    }

    .btn-login-header {
        padding: 8px 16px;
        font-size: 13px;
    }

    .profile-dropdown {
        right: auto;
        left: 150%;
        transform: translateX(-50%) translateY(-10px);
        width: 180px;
    }
    
    .profile-dropdown.active {
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 480px) {
    .sight-internal-header {
        height: 55px;
    }

    .logo-text {
        display: none;
    }

    .btn-login-header span:last-child {
        display: none;
    }

    .mobile-menu-content {
        padding: 20px 15px;
    }

    .mobile-nav-item {
        padding: 14px 16px;
        font-size: 15px;
    }
}
