/**
 * Common Menu Styles
 * Shared across all pages
 */

/* Menu Button (Hamburger) */
.menu-button {
    position: absolute;
    left: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 101;
    transition: all 0.3s;
}

.menu-button:hover {
    opacity: 0.7;
}

.menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    background: #2C2C2C;
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-button.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-button.active span:nth-child(2) {
    opacity: 0;
}

.menu-button.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 12px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.side-menu.active {
    left: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-header {
    padding: 24px 20px;
    border-bottom: 1px solid #E0E0E0;
}

.menu-brand {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.6rem;
    color: #2C2C2C;
    text-decoration: none;
    font-weight: 600;
    display: block;
}

.menu-items {
    padding: 20px 0;
    flex: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-size: 1rem;
}

.menu-item:hover {
    background: #F5F5F5;
}

.menu-item-icon {
    margin-right: 12px;
    font-size: 1.2rem;
}

.menu-item-label {
    font-weight: 500;
}

/* Menu Footer with Logo */
.menu-footer {
    padding: 32px 20px 24px 20px;
    margin-top: auto;
    border-top: 1px solid #E0E0E0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-logo {
    width: 100px;
    height: auto;
    opacity: 1.0;
    transition: opacity 0.3s;
}

.menu-logo:hover {
    opacity: 1.0;
}
