/* Import color variables from common.css */
@import url('common.css');

/* Mobile menu styles */
.mobile-menu {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: var(--almost-white);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
}

/* Mobile header */
.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    height: 30px;
    box-sizing: border-box;
}

.mobile-header h1 {
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: normal;
    height: 30px;
    line-height: 30px;
}

/* Menu toggle button */
.menu-toggle {
    background: none;
    border: none;
    font-size: 14px;
    color: var(--text-color);
    cursor: pointer;
    padding: 0;
    margin: 0;
    height: 30px;
    line-height: 30px;
    text-transform: uppercase;
}

.menu-toggle .menu-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
    margin-right: 2px;
    line-height: 1;
}

/* Mobile content */
.mobile-content {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 0;
    width: 100%;
    background: var(--almost-white);
    border-top: 1px solid var(--border-color);
    padding: 10px;
    z-index: 999;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

/* When mobile menu is expanded */
.mobile-menu.expanded {
    /* No height needed as we're controlling .mobile-content directly */
}

.mobile-menu.expanded .menu-arrow {
    transform: rotate(90deg);
}

.mobile-menu.expanded .mobile-content {
    display: block;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }
}

/* iPhone notch support */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-content {
        padding-bottom: calc(30px + env(safe-area-inset-bottom));
    }
    
    .mobile-menu {
        height: calc(30px + env(safe-area-inset-bottom));
    }
    
    .content {
        height: calc(100vh - 30px - env(safe-area-inset-bottom));
    }
}