/* styles/menu.css */

.site-menu {
    background-color: #333333;
    padding: 0;
    margin: 0;
    font-family: Arial, sans-serif;
    position: relative;
}

/* Hamburger button - hidden on desktop */
.menu-toggle {
    display: none;
    position: absolute;
    top: 10px;
    right: 15px;
    width: 30px;
    height: 25px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1001; /* so it's above the menu */
}

.menu-toggle span {
    display: block;
    height: 3px;
    background: white;
    border-radius: 2px;
}

/* Desktop menu */
.site-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.site-menu ul li {
    display: flex;
    align-items: center;
}

.site-menu ul li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.site-menu ul li a:hover,
.site-menu ul li a:focus {
    background-color: #555;
    color: #ffcc00;
    outline: none;
}

/* Mobile styles */
@media (max-width: 600px) {
    /* Show hamburger */
    .menu-toggle {
        display: flex;
    }

    /* Hide menu by default */
    .site-menu ul {
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background-color: #333;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }

    /* Show menu when toggled */
    .site-menu ul.open {
        max-height: 500px; /* enough for all menu items */
    }

    .site-menu ul li a {
        padding: 10px 15px;
        border-bottom: 1px solid #444;
    }
}
