/* Custom Prefix: gh-nav- */
:root {
    --bg-dark: #070b20;
    --card-dark: #1c254b;
    --accent: #008cff;
    --border: rgba(255, 255, 255, 0.1);
}

[x-cloak] {
    display: none !important;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: 0.3s;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(7, 11, 32, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo-img {
    height: 70px;
    width: 170px;
}

/* --- Nav Links --- */
.navbar-links ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

.navbar-links a {
    /* color: #94a3b8; */
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.navbar-links a:hover,
.navbar-links a.active {
    color: var(--accent);
}

/* Desktop par mobile items hide karna */
.mobile-only-item {
    display: none;
}

/* --- Profile Section --- */
.profile-wrap {
    position: relative;
}

.profile-trigger {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 6px 15px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.profile-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.profile-avatar {
    width: 30px;
    height: 30px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
}

.fa-chevron-down {
    font-size: 0.7rem;
    transition: 0.3s;
}

/* --- Fixed Dropdown --- */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 220px;
    background: var(--card-dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    padding: 10px;
    z-index: 1001;
}

.dropdown-info {
    padding: 10px;
}

.d-username {
    color: white;
    font-weight: 700;
    margin: 0;
}

.d-email {
    color: #64748b;
    font-size: 0.75rem;
    margin: 0;
}

.dropdown-sep {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.profile-dropdown a,
.dropdown-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: 0.2s;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
}

.profile-dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.dropdown-logout {
    color: #ff4757;
}

.dropdown-logout:hover {
    background: rgba(255, 71, 87, 0.1);
}

/* --- Auth Buttons --- */
.auth-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.login-link {
    padding: 8px 20px;
    border-radius: 8px;
    background: transparent;
    border: 2px solid var(--accent);
    cursor: pointer;
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.register-btn {
    background: var(--accent);
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 140, 255, 0.3);
}

.menu-toggle {
    display: none;
    color: white;
    font-size: 1.2rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* --- Mobile View --- */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .auth-group,
    .profile-wrap {
        display: none;
    }

    .navbar-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        transform: translateX(100%);
        transition: 0.4s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .navbar-links.active {
        transform: translateX(0);
    }

    .navbar-links ul {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .navbar-links a {
        font-size: 1.5rem;
    }

    .mobile-only-item {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }

    .logout-btn-mobile {
        background: #ff4757;
        color: white;
        border: none;
        padding: 10px 30px;
        border-radius: 50px;
        font-weight: 700;
    }
}