/* =====================================================
   MAIN HEADER (NETWORK ROOT)
===================================================== */

.header-main {
  position: sticky;
  top: 0;
  z-index: 1000;

  height: 72px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 1.25rem;
}

/* =====================================================
   HEADER SECTIONS
===================================================== */

.nav-left,
.nav-center,
.nav-right {
  display: flex;
  align-items: center;
}

.nav-left {
  flex: 1;
}

.nav-center {
  flex: 1;
  justify-content: center;
}

.nav-right {
  flex: 1;
  justify-content: flex-end;
}

/* =====================================================
   LOGO
===================================================== */

.nav-logo {
  height: 36px;
  width: auto;
}

/* =====================================================
   HAMBURGER
===================================================== */

.farmtab-menu-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}

.farmtab-menu-toggle ion-icon {
  font-size: 28px;
  color: #1f2933;
}

/* =====================================================
   AUTH BUTTON
===================================================== */

.btn-auth {
  font-weight: 600;
  font-size: 0.95rem;
  color: #2f6f3e;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.btn-auth:hover {
  background: rgba(47, 111, 62, 0.08);
}

/* =====================================================
   OFFCANVAS MENU
===================================================== */

.farmtab-offcanvas {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
}

/* Overlay */
.farmtab-offcanvas-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Panel */
.farmtab-offcanvas-panel {
  position: absolute;
  top: 0;
  left: 0;

  width: 320px;
  height: 100%;

  background: #ffffff;
  padding: 2rem 1.5rem;

  transform: translateX(-100%);
  transition: transform 0.3s ease;

  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Active state (toggled by JS) */
.farmtab-offcanvas.is-open {
  pointer-events: auto;
}

.farmtab-offcanvas.is-open .farmtab-offcanvas-overlay {
  opacity: 1;
}

.farmtab-offcanvas.is-open .farmtab-offcanvas-panel {
  transform: translateX(0);
}

/* =====================================================
   OFFSCREEN CONTENT
===================================================== */

.offscreen-logo img {
  max-width: 160px;
}

.offscreen-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.offscreen-nav li {
  margin-bottom: 0.75rem;
}

.offscreen-nav a {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1f2933;
  text-decoration: none;
}

.offscreen-nav a:hover {
  color: #2f6f3e;
}

/* =====================================================
   ACCOUNT LINKS
===================================================== */

.offscreen-account-links {
  margin-top: auto;
  font-size: 0.95rem;
}

.offscreen-account-links a {
  display: inline-block;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  color: #2f6f3e;
  font-weight: 600;
  text-decoration: none;
}

.offscreen-account-links a:hover {
  text-decoration: underline;
}

.logout-button {
  display: inline-block;
  margin-top: 1rem;
  color: #b91c1c;
}

