/* =============================================================================
   AI/Classic Toggle Pill — shared across all pages that show the main nav
   Exact values from Figma node 256:15888
   ============================================================================= */

/* Pill container: 304×54px, border-radius 46px */
.ai-toggle-pill {
  width: 304px;
  height: 54px;
  border-radius: 46px;
  border: 1px solid #4e5200;    /* brand/900 — homepage variant */
  padding: 8px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

/* Darker border for non-home pages */
.ai-toggle-pill--dark {
  border-color: #353800;        /* brand/950 */
}

/* Each tab: 144×38px, radius 38px, padding 8px 12px */
.ai-toggle-pill__tab {
  width: 144px;
  height: 38px;
  border-radius: 38px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Neue Plak', 'Neue', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none !important;
  border: none;
  background: transparent;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

/* Active tab — brand/300 yellow background */
.ai-toggle-pill__tab--active {
  background: #e0e846 !important;
  color: #111111 !important;
  box-shadow: 0px 1px 3px 0px rgba(10,13,18,0.1), 0px 1px 2px -1px rgba(10,13,18,0.1);
}

/* Inactive AI tab text — brand/100 */
.ai-toggle-pill__tab--inactive-ai {
  color: #eef291;
}

/* Inactive Classic tab text */
.ai-toggle-pill__tab--inactive-classic {
  color: #eef291;
}

/* Stars icon — 18×18 */
.ai-toggle-pill__ai-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ai-toggle-pill__ai-icon img,
.ai-toggle-pill__ai-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Icon turns black when AI tab is active */
.ai-toggle-pill__tab--active .ai-toggle-pill__ai-icon img,
.ai-toggle-pill__tab--active .ai-toggle-pill__ai-icon svg {
  filter: brightness(0);
}

/* -----------------------------------------------------------------------
   NAV CONTAINER: make left-section and right-section equal width so the
   center pill is always truly centered (Figma: logo LEFT | pill CENTER | actions RIGHT)
   ----------------------------------------------------------------------- */
@media (min-width: 1028px) {
  /* Left section takes equal flex space as right, pushing pill to true center */
  .app-navigation__container .app-navigation__left-section {
    flex: 1;
  }
  .app-navigation__container .app-navigation__right-section {
    flex: 1;
    justify-content: flex-end;
  }
  /* The pill itself sits in the middle — no flex-grow, just its natural 304px width */
  .app-navigation__ai-toggle {
    flex-shrink: 0;
  }
}

/* Hide toggle pill on mobile — the pill is desktop-only */
@media (max-width: 1027px) {
  .app-navigation__ai-toggle {
    display: none;
  }
}
