/* Shared Header and Navigation Styles */

.fixed-header {
    width: 100%;
    z-index: 100;
    position: fixed;
    top: 0;
    left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* Dark default */
    background: rgba(16, 25, 34, 0.9); /* background-dark with opacity */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light mode override */
html:not(.dark) .fixed-header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #9ca3af; /* gray-400 */
    transition: all 0.2s;
    position: relative;
    padding: 0.5rem 0.25rem;
}

.nav-link:hover {
    color: #137fec; /* primary */
}

.nav-link.active {
    color: #137fec;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #137fec;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(19, 127, 236, 0.4);
}

/* Dropdown Styles */
.dropdown-container {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    width: 14rem;
    background: #101922; /* surface-dark */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-container:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db; /* gray-300 */
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: rgba(19, 127, 236, 0.1);
    color: #137fec;
    transform: translateX(4px);
}

/* Mobile Nav Link Styles */
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    color: #9ca3af; /* gray-400 */
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav-link.active {
    color: #137fec;
    background: rgba(19, 127, 236, 0.1);
    border-color: rgba(19, 127, 236, 0.2);
}

.mobile-nav-link.active .icon-box span {
    color: #137fec;
}

.mobile-nav-link:active {
    transform: scale(0.98);
}

.mobile-nav-link .icon-box {
    transition: all 0.2s;
}

.mobile-nav-link:hover .icon-box {
    background: #137fec;
}

.mobile-nav-link:hover .icon-box span {
    color: #ffffff;
}

/* Mobile Nav Bottom Bar Removal Fix */
@media (max-width: 767px) {
    body {
        padding-bottom: 0 !important;
    }
    
    /* Ensure content is not hidden behind the fixed header */
    main, section:first-of-type {
        /* This is usually handled by pt-32 or similar in HTML, but good to have a backup */
    }
}
