/* ================================
   Menubar - macOS Style
   ================================ */

.menubar-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 24px;
    z-index: var(--z-menubar);
    padding: 0;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menubar-container.visible {
    opacity: 1;
    visibility: visible;
}

/* Only show on desktop */
@media (min-width: 769px) {
    .menubar-container {
        display: block;
    }
}

/* ================================
   Menubar Inner (Glassmorphism)
   ================================ */

.menubar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 26px;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 0 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Light theme menubar */
[data-theme="light"] .menubar {
    background: rgba(245, 245, 245, 0.9);
    border-bottom-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ================================
   Left Section: Profile
   ================================ */

.menubar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.menubar-logo {
    width: 16px;
    height: 18px;
    flex-shrink: 0;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.menubar-logo:hover {
    opacity: 0.7;
}

.menubar-name {
    font-family: var(--font-system);
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ================================
   Center Section: Clock
   ================================ */

.menubar-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.menubar-clock {
    font-family: var(--font-system);
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

/* ================================
   Right Section: Theme Toggle
   ================================ */

.menubar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: flex-end;
}

.menubar-theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.menubar-theme-toggle:hover {
    opacity: 0.7;
}

.menubar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    color: var(--text-primary);
}

.menubar-icon svg {
    width: 100%;
    height: 100%;
}

.menubar-icon svg path {
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.menubar-icon svg circle {
    fill: currentColor;
}

/* ================================
   Responsive: Hide on Mobile
   ================================ */

@media (max-width: 768px) {
    .menubar-container {
        display: none !important;
    }
}

/* ================================
   Reduced Motion
   ================================ */

@media (prefers-reduced-motion: reduce) {
    .menubar-container {
        transition: none;
    }
}
