/* Base styles */
.header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    height: 70px;
    max-width: 100%;
}

/* Logo */
.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    z-index: 102;
    flex-shrink: 0;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.logo-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.logo:hover .logo-icon {
    color: var(--primary-dark);
}

.logo-text {
    color: #333;
}

.logo-accent {
    color: var(--primary-color);
}

/* Navigation */
.nav {
    margin-left: auto;
}

.menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem;
    position: relative;
    white-space: nowrap;
}



.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.menu a:hover::after,
.menu a.active::after {
    transform: scaleX(1);
}

/* Auth buttons */
.auth-links {
    display: flex;
    gap: 1rem;
    margin-left: 2rem;
    flex-shrink: 0;
}

.login-btn,
.register-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
    white-space: nowrap;
}

.login-btn {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    background: transparent;
}

.login-btn:hover {
    background: rgba(var(--primary-rgb), 0.1);
}

.register-btn {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.register-btn:hover {
    background: var(--primary-dark-color);
    transform: translateY(-1px);
}

/* Menu toggle button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    outline: none;
    z-index: 102;
    margin-left: 1rem;
    flex-shrink: 0;
}

.menu-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #333;
    transition: all 0.3s ease-in-out;
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    bottom: -8px;
}

/* Mobile styles */
@media (max-width: 768px) {
    body.menu-open {
        overflow: hidden;
    }

    .header-content {
        padding: 0.5rem 1rem;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.active .menu-icon {
        background: transparent;
    }

    .menu-toggle.active .menu-icon::before {
        top: 0;
        transform: rotate(45deg);
    }

    .menu-toggle.active .menu-icon::after {
        bottom: 0;
        transform: rotate(-45deg);
    }

    .nav {
        position: fixed;
        top: 0;
        left: 100%;
        width: 100%;
        height: 100vh;
        background: #fff;
        padding: 80px 1rem 2rem;
        transition: all 0.3s ease-in-out;
        overflow-y: auto;
        z-index: 101;
        box-sizing: border-box;
    }

    .nav.active {
        left: 0;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    }

    .menu {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease-in-out;
        width: 100%;
        box-sizing: border-box;
    }

    .nav.active .menu {
        opacity: 1;
        transform: translateY(0);
    }

    .menu a {
        display: inline-block;
        padding: 0.75rem 1.5rem;
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .menu a::after {
        display: none;
    }

    .auth-links {
        flex-direction: column;
        margin: 2rem 0 0;
        width: 100%;
        gap: 0.75rem;
        align-items: stretch;
    }

    .login-btn,
    .register-btn {
        width: 100%;
        padding: 0.75rem;
        box-sizing: border-box;
    }

    .nav.active .menu li {
        opacity: 0;
        transform: translateY(20px);
        animation: slideIn 0.5s ease forwards;
        width: 100%;
    }

    @keyframes slideIn {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav.active .menu li:nth-child(1) { animation-delay: 0.2s; }
    .nav.active .menu li:nth-child(2) { animation-delay: 0.3s; }
    .nav.active .menu li:nth-child(3) { animation-delay: 0.4s; }
    .nav.active .menu li:nth-child(4) { animation-delay: 0.5s; }
    .nav.active .menu li:nth-child(5) { animation-delay: 0.6s; }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .menu {
        gap: 1.5rem;
    }

    .auth-links {
        margin-left: 1.5rem;
    }

    .login-btn,
    .register-btn {
        padding: 0.5rem 1rem;
    }
} 