/* ========================================
   LAYOUT STYLES
   ======================================== */

/* ========================================
   RESET STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========================================
   BASE BODY STYLES
   ======================================== */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a1a;
    color: #e0e0e0;
    overflow: hidden;
    transition: background 0.3s, color 0.3s;
}

/* ========================================
   CANVAS ELEMENTS
   ======================================== */

/* Main particle canvas */
#canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: move;
}

/* Grid overlay canvas */
#grid-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ========================================
   MENU BAR (DESKTOP)
   ======================================== */

#menu-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
}

body.light-theme #menu-bar {
    background: #f5f5f5;
    border-bottom-color: #ccc;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 13px;
    color: #ccc;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.2s;
    user-select: none;
}

body.light-theme .menu-item {
    color: #333;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

body.light-theme .menu-item:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #000;
}

.menu-item.icon {
    padding: 4px 8px;
    font-size: 16px;
}

.menu-spacer {
    flex: 1;
}

/* GitHub link styling */
.menu-item svg {
    fill: currentColor;
}

/* ========================================
   CANVAS/GRID ADJUSTMENTS FOR MENU BAR
   ======================================== */

/* Adjust canvas and grid to account for menu bar */
#canvas {
    top: 32px;
    height: calc(100vh - 32px);
}

#grid-canvas {
    top: 32px;
    height: calc(100vh - 32px);
}
