/* Universal Ecosystem Switcher Stylesheet */

.ecosystem-switcher {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25),
              0 0 20px rgba(249, 115, 22, 0.1);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ecosystem-switcher:hover {
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3),
              0 0 30px rgba(249, 115, 22, 0.2);
  transform: translateX(-50%) translateY(-2px);
}

.switcher-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  padding-left: 8px;
  padding-right: 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  margin-right: 4px;
  white-space: nowrap;
}

.switcher-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  color: #cbd5e1;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.switcher-btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 2px;
}

.switcher-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.switcher-btn.active {
  color: #ffffff;
  background: #f97316;
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.3);
}

/* Specific colors for switcher buttons to emphasize ecosystem branches */
.switcher-btn-hq.active {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.switcher-btn-retail.active {
  background: #10b981;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.switcher-btn-saas.active {
  background: #f97316;
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.3);
}

.switcher-btn-labs.active {
  background: #a855f7;
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.3);
}

/* Tooltip design for switcher */
.switcher-btn {
  position: relative;
}

.switcher-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  padding: 6px 10px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 11px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.switcher-btn:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive adjustment */
@media (max-width: 768px) {
  .ecosystem-switcher {
    width: 90%;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 6px;
    border-radius: 16px;
    bottom: 12px;
  }
  .switcher-label {
    display: none;
  }
}
