/* Floating action button */
.menu-trigger {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(211, 84, 0, 0.3);
    transition: all 0.2s;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(211, 84, 0, 0.4);
}

/* Menu overlay */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay);
    z-index: 70;
    display: none;
    animation: fadeIn 0.2s;
}

.menu-overlay.active {
    display: block;
}

/* Context menu */
.context-menu {
    position: fixed;
    right: -400px;
    top: 0;
    bottom: 0;
    width: 380px;
    max-width: 90vw;
    background: var(--menu-bg);
    box-shadow: -4px 0 20px var(--shadow);
    z-index: 80;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 2rem;
}

.context-menu.active {
    right: 0;
}

.menu-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.menu-header h2 {
    font-size: 1.3em;
    font-weight: 400;
    color: var(--text);
}

.menu-header .page-title {
    font-size: 0.9em;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.menu-section {
    margin-bottom: 2rem;
}

.menu-section h3 {
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-toggle button {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--border);
    background: var(--bg);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.view-toggle button.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.view-toggle button:not(.active):hover {
    border-color: var(--accent);
    color: var(--accent);
}

.menu-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.menu-action-btn {
    padding: 0.8rem;
    border: 1px solid var(--border);
    background: var(--bg);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.menu-action-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 768px) {
    .menu-trigger {
        width: 50px;
        height: 50px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .context-menu {
        width: calc(100% - 2rem);
        right: -100%;
        margin: 1rem;
        border-radius: var(--radius);
        bottom: auto;
        max-height: 80vh;
    }

    .context-menu.active {
        right: 1rem;
    }
}
