/* css/components/navbar.css */
.navbar {
    position: fixed;
    z-index: 1000;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease; /* Added transform */

    top: 20px; 
    left: 50%;
    transform: translateX(-50%);
    width: 90%; 
    max-width: 1100px; 
    
    padding: 6px 25px; 
    
    background-color: var(--glass-nav-bg);
    border: 1px solid var(--glass-nav-border);
    box-shadow: 0 5px 15px rgba(var(--nav-border-rgb), 0.1);
    /* .glass class adds backdrop-filter and main border-radius (16px from base.css) */
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}
.logo a {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--primary-accent);
    text-decoration: none;
    transition: opacity 0.2s ease;
    line-height: 1;
    padding: 5px 0;
    display: inline-flex; /* For icon alignment if added */
    align-items: center;
}
.logo a:hover {
    opacity: 0.8;
}
.logo-svg-icon { /* If you added the SVG logo inline */
    height: 1em; 
    width: auto;
    margin-right: 0.3em; 
}


.nav-links {
    display: flex;
    align-items: center;
    flex: 1; 
    justify-content: center; 
}
.nav-links ul {
    list-style: none;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    justify-content: center; 
}
.nav-links li {
    margin: 0 11px; 
    display: flex;
    align-items: center;
}
.nav-links li:first-child {
    margin-left: 0;
}
.nav-links li:last-child {
    margin-right: 0;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    line-height: 1;
    padding: 5px 0;
    display: inline-block;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-accent);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.3em;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-toggle svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
    display: block;
}

/* Mobile Navbar Adjustments */
@media (max-width: 768px) {
    body {
        padding-top: 0; /* Keep this if desktop has padding-top for fixed nav */
        /* Adjust padding-bottom to account for the new floating mobile navbar + its margin */
        padding-bottom: 85px; /* Approx: navbar height (50px) + bottom margin (20px) + buffer (15px) */
    }

    .navbar {
        top: auto; /* Remove from top */
        bottom: 15px; /* Margin from bottom of viewport */
        left: 50%; /* Center horizontally */
        transform: translateX(-50%); /* Fine-tune centering */
        width: calc(100% - 30px); /* Make it less than full width with padding on sides */
        max-width: 400px; /* Max width for mobile navbar */
        
        padding: 8px 15px; /* Adjusted padding */
        border-radius: 25px; /* Fully rounded corners for floating pill look */
        
        border: 1px solid var(--glass-nav-border); /* Keep border */
        border-top: 1px solid var(--glass-nav-border); /* Ensure top border is also styled */
        box-shadow: 0 5px 20px rgba(var(--nav-border-rgb), 0.15); /* Enhanced shadow for floating effect */
        /* .glass class will provide backdrop-filter from base.css */
    }

    .navbar-content .logo {
        display: none;
    }
    .navbar-content .nav-links {
        flex-grow: 1;
    }
    .nav-links ul {
        justify-content: space-around; /* Distribute links more evenly */
        width: 100%;
    }
    .nav-links li {
        margin: 0 5px; /* Adjust spacing if needed */
    }
    .nav-links a {
        padding: 8px 5px; /* Adjust padding for touch targets */
        font-size: 0.9em; /* Slightly smaller if needed */
    }

    .theme-toggle {
        font-size: 1.2em;
        padding: 8px;
    }
}