/* ============================================
   GPT NAVBAR - Custom Navbar Styles
   ============================================ */

/* Logo Height */
.navbar-brand img {
    height: 40px;
    width: auto;
}

/* Dark theme navbar fix */
.navbar-dark,
.navbar.bg-dark {
    background-color: #212529 !important;
    max-width: 100vw;
}

.navbar-dark .navbar-nav .nav-link,
.navbar.bg-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar.bg-dark .navbar-nav .nav-link:hover,
.navbar.bg-dark .navbar-nav .nav-link:focus {
    color: rgba(255, 255, 255, 1) !important;
}

.navbar-dark .navbar-nav .nav-link.active,
.navbar.bg-dark .navbar-nav .nav-link.active {
    color: #fff !important;
}

.navbar-dark .dropdown-item,
.navbar.bg-dark .dropdown-item {
    color: inherit;
}

/* ============================================
   DROPDOWN MENUS
   ============================================ */
/* Ensure dropdowns don't shrink */
.dropdown-menu {
    min-width: 200px;
    width: max-content;
    max-width: 90vw;
}

/* Fix dropdown overflow on mobile collapsed navbar */
@media (max-width: 991px) {
    .navbar-collapse .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        max-width: 100%;
        margin: 0;
        border: none;
        box-shadow: none;
    }
}

/* Mega Dropdown */
.gpt-dropdown-mega {
    min-width: 600px;
    padding: 20px;
}

@media (max-width: 991px) {
    .gpt-dropdown-mega {
        min-width: 100%;
    }
}

.gpt-dropdown-mega .gpt-mega-section {
    margin-bottom: 0;
}

.gpt-dropdown-mega .gpt-mega-section h6 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bs-primary);
    letter-spacing: 0.5px;
}

.gpt-dropdown-mega .dropdown-item {
    padding: 8px 12px;
    font-size: 13px;
}

/* ============================================
   USER SECTION
   ============================================ */
/* Points Card */
.gpt-points-card {
    transition: all 0.2s ease;
}

.gpt-points-card:hover {
    transform: translateY(-1px);
}

.gpt-points-refresh {
    cursor: pointer;
    transition: all 0.2s ease;
}

.gpt-points-refresh:hover {
    transform: rotate(180deg);
}

/* ============================================
   MOBILE BOTTOM NAVIGATION (YouTube-style)
   ============================================ */
.gpt-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    background-color: #212529 !important;
    border-top: 1px solid #343a40;
    padding: 8px 0;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 99999 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    margin: 0;
    box-sizing: border-box;
}

.gpt-bottom-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gpt-bottom-nav-item {
    flex: 1;
    text-align: center;
}

.gpt-bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
}

.gpt-bottom-nav-link:hover,
.gpt-bottom-nav-link.active {
    color: var(--bs-primary);
    text-decoration: none;
}

.gpt-bottom-nav-link i {
    font-size: 20px;
    margin: 0;
}

.gpt-bottom-nav-link.active i {
    color: var(--bs-primary);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991px) {

    /* Show bottom navigation on mobile */
    .gpt-bottom-nav {
        display: block !important;
    }

    /* Add bottom padding to body for bottom nav */
    body {
        padding-bottom: 60px;
    }
}

/* Body padding to account for fixed navbar */
body {
    padding-top: 70px;
}