/* ===================================================================
   2. MAIN NAVIGATION BAR (Segmented Control)
   =================================================================== */

.main-nav-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  background: #0d1424;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav-bar::-webkit-scrollbar { display: none; }

.nav-tab {
  flex: 1;
  min-width: 130px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.nav-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.tab-icon {
  font-size: 16px;
  line-height: 1;
}

.tab-pill {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
  transition: all 0.2s;
}

/* Active tab color states */
.nav-tab.blue.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.25), rgba(2, 132, 199, 0.08));
  color: #38bdf8;
  border-color: #0284c7;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.2);
}
.nav-tab.blue.active .tab-pill {
  background: rgba(2, 132, 199, 0.35);
  color: #e0f2fe;
}

.nav-tab.gold.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(245, 158, 11, 0.08));
  color: #fbbf24;
  border-color: #f59e0b;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}
.nav-tab.gold.active .tab-pill {
  background: rgba(245, 158, 11, 0.35);
  color: #fef3c7;
}

.nav-tab.purple.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(139, 92, 246, 0.08));
  color: #c084fc;
  border-color: #8b5cf6;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}
.nav-tab.purple.active .tab-pill {
  background: rgba(139, 92, 246, 0.35);
  color: #ede9fe;
}

.nav-tab.green.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.08));
  color: #34d399;
  border-color: #10b981;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}
.nav-tab.green.active .tab-pill {
  background: rgba(16, 185, 129, 0.35);
  color: #d1fae5;
}

.nav-tab.yellow.active {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.08));
  color: #4ade80;
  border-color: #22c55e;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}
.nav-tab.yellow.active .tab-pill {
  background: rgba(34, 197, 94, 0.35);
  color: #dcfce7;
}

.nav-tab.teal.active {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.25), rgba(20, 184, 166, 0.08));
  color: #2dd4bf;
  border-color: #14b8a6;
  box-shadow: 0 4px 15px rgba(20, 184, 166, 0.2);
}
.nav-tab.teal.active .tab-pill {
  background: rgba(20, 184, 166, 0.35);
  color: #ccfbf1;
}

/* ===================================================================
   3. COMPACT VIEW ACTION BARS (Sleek Sub-Toolbars - Unified 54px min-height)
   =================================================================== */

.view-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  min-height: 54px;
  box-sizing: border-box;
  border-radius: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.view-action-bar.gold {
  border-left: 4px solid var(--gold);
}
.view-action-bar.green {
  border-left: 4px solid var(--emerald);
}
.view-action-bar.yellow {
  border-left: 4px solid var(--theme-market);
}
.view-action-bar.purple {
  border-left: 4px solid var(--purple);
}
.view-action-bar.teal {
  border-left: 4px solid #14b8a6;
}

.action-bar-left, .action-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.action-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 12px;
}

/* UNIFIED CONTROLS IN ACTION BARS (Identical 32px height) */
.view-action-bar .pill-btn,
.view-action-bar .toggle-pill,
.view-action-bar .btn-subtle-link,
.view-action-bar .btn-action.sm,
.view-action-bar .btn-reset.sm,
.view-action-bar .sign-in-btn.sm {
  height: 32px;
  line-height: 30px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  box-sizing: border-box;
}

.action-badge-club {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.action-bar-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-subtle-link {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-subtle-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.toggle-pill {
  color: var(--text-secondary);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  user-select: none;
  transition: all 0.15s;
}
.toggle-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.toggle-pill input {
  cursor: pointer;
  accent-color: var(--gold);
}

/* Collection Bar Specific */
.action-bar-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.collection-stats-group {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.stat-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.stat-chip.pct {
  font-weight: 800;
  color: #f8fafc;
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
}

.caught-progress-track {
  width: 140px;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.caught-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* Inline Sub-Nav Notices (Clubs & Players views) */
.nav-sub-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: -6px 0 16px 0;
  padding: 6px 14px;
}
.nav-sub-notice .notice-bullet {
  font-size: 14px;
  flex-shrink: 0;
}
.nav-sub-notice strong.highlight-purple {
  color: #c084fc;
  font-weight: 700;
}
.nav-sub-notice strong.highlight-teal {
  color: #2dd4bf;
  font-weight: 700;
}


