/* ==========================================================================
   Shared Interactive Technology Stack Component (.bhn-ts-wrap)
   Supports light (.bhn-ts--light) and dark (.bhn-ts--dark) page surfaces
   ========================================================================== */

.bhn-ts-wrap {
  width: 100%;
  margin: 0 auto;
}

.bhn-ts-slider {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1080px;
  margin: 0 auto 28px;
  min-width: 0;
}

.bhn-ts-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 2px;
}

.bhn-ts-tabs::-webkit-scrollbar {
  display: none;
}

.bhn-ts-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transition: all 0.2s ease;
}

.bhn-ts-arrow:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: transparent;
  color: #ffffff;
  transform: scale(1.06);
}

.bhn-ts-arrow:disabled {
  opacity: 0.32;
  cursor: default;
  box-shadow: none;
}

.bhn-ts-tab {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  transition: all 0.2s ease;
  line-height: 1.3;
}

.bhn-ts-tab:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.bhn-ts-tab.is-active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}

.bhn-ts-panel {
  display: none;
}

.bhn-ts-panel.is-active {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.bhn-ts-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.bhn-ts-card:hover {
  transform: translateY(-4px);
  border-color: #2563eb;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.bhn-ts-card img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 10px;
}

.bhn-ts-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.bhn-ts-role {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 3px;
}

/* Dark theme variant */
.bhn-ts--dark .bhn-ts-arrow {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.28);
  color: #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.bhn-ts--dark .bhn-ts-arrow:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563eb 0%, #0284c7 100%);
  border-color: transparent;
  color: #ffffff;
}

@media (max-width: 640px) {
  .bhn-ts-slider {
    gap: 6px;
  }
  .bhn-ts-arrow {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }
}

.bhn-ts--dark .bhn-ts-tab {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
}

.bhn-ts--dark .bhn-ts-tab:hover {
  border-color: #38bdf8;
  color: #ffffff;
}

.bhn-ts--dark .bhn-ts-tab.is-active {
  background: linear-gradient(135deg, #2563eb 0%, #0284c7 100%);
  border-color: transparent;
  color: #ffffff;
}

.bhn-ts--dark .bhn-ts-card {
  background: rgba(15, 23, 42, 0.76);
  border-color: rgba(148, 163, 184, 0.16);
}

.bhn-ts--dark .bhn-ts-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.bhn-ts--dark .bhn-ts-name {
  color: #f8fafc;
}

.bhn-ts--dark .bhn-ts-role {
  color: #94a3b8;
}

@media (max-width: 1024px) {
  .bhn-ts-panel.is-active {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .bhn-ts-panel.is-active {
    grid-template-columns: repeat(2, 1fr);
  }
}
