/**
 * Mobile Header Styles
 * Fixed header bar with hamburger menu for mobile navigation
 * Only visible on screens below 768px
 */

/* Mobile Header - Hidden by default */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  z-index: 1001;
  padding: 0 var(--spacing-md);
  align-items: center;
  justify-content: space-between;
}

.mobile-header-logo {
  display: flex;
  align-items: center;
}

.mobile-header-logo img {
  height: 28px;
  width: auto;
}

.mobile-menu-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  color: var(--color-text);
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:active {
  background: var(--color-surface-hover);
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
}

/* Spacer to center logo */
.mobile-header-spacer {
  width: 44px;
}

/* ============================================
   MOBILE BREAKPOINT - Show header
   ============================================ */
@media (max-width: 768px) {
  .mobile-header {
    display: flex;
  }

  /* Add top padding to main content for fixed header */
  .app-main {
    padding-top: 72px !important;
    margin-top: 0 !important;
  }

  /* Page-specific content adjustments for proper spacing */
  .teams-page .app-main,
  .documents-page .app-main,
  .reports-page .app-main {
    padding-top: 72px !important;
  }

  /* Adjust sidebar position below header */
  .sidebar {
    top: 56px;
    height: calc(100vh - 56px);
  }

  /* Adjust overlay to not cover header */
  .sidebar-overlay {
    top: 56px;
  }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */
[data-theme="dark"] .mobile-header {
  background: var(--color-surface);
  border-color: var(--color-border);
}

[data-theme="dark"] .mobile-menu-btn {
  color: var(--color-text);
}

[data-theme="dark"] .mobile-menu-btn:hover,
[data-theme="dark"] .mobile-menu-btn:active {
  background: var(--color-surface-hover);
}
