/* src/components/nav.css */

.nav {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 2rem;
    justify-content: center;
    align-items: center;
    background: rgba(133, 1, 249, 0.25);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-link, .nav-btn {
    position: relative;
    text-decoration: none;
    color: var(--text-color, #fff);
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    transition: all 0.25s ease;
    cursor: pointer;
    border-radius: 6px;
}

/* Hover underline animation */
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: var(--primary, #646cff);
    transition: width 0.25s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Active page highlight */
.nav-link.active {
    color: var(--primary, #646cff);
}

.nav-link.active::after {
    width: 100%;
}

/* Click animation (press effect) */
.nav-link:active, .nav-btn:active {
    transform: scale(0.95);
    opacity: 0.75;
}

/* Button style */
.nav-btn {
    background: var(--primary, #646cff);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: var(--primary-hover, #535bf2);
}

.theme-toggle {
    padding: 0.4rem 1rem;
    border-radius: 8px;
    background: none;
    border: 1px solid var(--card-border);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
}

.theme-toggle:hover {
    background: var(--accent-color-1);
    color: white;
}

.nav-right {
    margin-left: auto;
    display: flex;
    gap: 1rem;
    align-items: center;
}
