/* Active navigation links */
.desktop-nav a.active,
.mobile-nav a.active {
    color: var(--highlight-color);
}

.desktop-nav a.active::after {
    width: 100%;
}

.mobile-nav a.active {
    background-color: rgba(240, 69, 120, 0.1);
    border-radius: 4px;
}/* navbar.css - Shared navbar styles for MineMasters.pro */

/* Base header styles */
#site-header {
    background: rgba(20, 26, 44, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: relative;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping on smaller screens */
}

/* Logo styles */
.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    padding: 0;
    background: var(--gradient-highlight);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Desktop navigation */
.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.desktop-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--animation-normal) var(--ease-smooth);
}

.desktop-nav a:hover {
    color: var(--highlight-color);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-highlight);
    transition: width var(--animation-normal) var(--ease-smooth);
}

.desktop-nav a:hover::after {
    width: 100%;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
    border-radius: 3px;
}

/* Mobile navigation */
.mobile-nav {
    display: none;
    width: 100%;
    padding: 0.5rem 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-in-out;
}

.mobile-nav ul {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.75rem;
}

.mobile-nav li {
    display: inline-block;
    margin: 0.25rem;
    text-align: center;
}

.mobile-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.4rem 0.8rem;
    display: inline-block;
    transition: color var(--animation-normal) var(--ease-smooth);
    white-space: nowrap;
    border-radius: 4px;
}

.mobile-nav a:hover {
    color: var(--highlight-color);
}

/* Show mobile menu when active */
.mobile-nav.active {
    display: block;
    max-height: 300px;
}

/* Animate hamburger menu into X when active */
.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Layout adjustments */
    .header-content {
        flex-direction: row; /* Keep horizontal layout */
    }
    
    /* Show mobile menu toggle, hide desktop nav */
    .mobile-menu-toggle {
        display: block;
    }
    
    .desktop-nav {
        display: none;
    }
    
    /* Logo adjustments */
    .logo {
        flex: 1; /* Take available space */
    }
    
    .logo img {
        height: 32px;
    }
    
    .logo h1 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    /* Further refinements for small screens */
    .logo img {
        height: 28px;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
}