.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 1;
}

.nav-link.active {
    opacity: 1;
    font-weight: 500;
}

/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.dropdown-trigger::after {
    content: '▼';
    font-size: 0.8em;
    margin-left: 0.5rem;
    transition: transform 0.2s;
}

.dropdown:hover .dropdown-trigger::after {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    min-width: 160px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background-color 0.2s;
    text-align: center;
}

.dropdown-item:hover {
    background-color: rgba(0,0,0,0.05);
}

/* Add a small triangle to the dropdown */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid white;
}

/* Add these dark mode styles at the bottom of navigation.css */
:root[data-theme="dark"] .top-nav {
    background-color: var(--background-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .nav-link {
    color: white;
}

:root[data-theme="dark"] .dropdown-content {
    background-color: var(--background-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .dropdown-item {
    color: white;
}

:root[data-theme="dark"] .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .dropdown-content::before {
    border-bottom-color: var(--background-color);
}

/* Mobile navigation styles */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    /* Fix dropdown positioning */
    .dropdown-content {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        transform: none; /* Remove the translateX that was moving it left */
        margin-top: 0;
        border-radius: 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    /* Remove the dropdown triangle on mobile */
    .dropdown-content::before {
        display: none;
    }

    /* Make dropdown items more touch-friendly */
    .dropdown-item {
        padding: 1rem;
        text-align: center;
    }
} 