/* ==========================================================================
   iconText Component Styles
   ========================================================================== */

.icon-text-btn {
  --icon-text-primary: #5170FF;
  --icon-text-inactive: #6b7280;
  --icon-text-hover: #4b5563;

  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--icon-text-inactive);
  text-decoration: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.18s ease, background 0.2s ease;
}

/* Icon Container - Increased slightly */
.icon-text-btn .icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  margin-bottom: 3px;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-text-btn .icon-wrapper svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  display: block;
}

/* Label below Icon - Increased slightly to 11px */
.icon-text-btn .icon-text-label {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: inherit;
  transition: color 0.18s ease, font-weight 0.18s ease;
  white-space: nowrap;
}

/* Hover State */
.icon-text-btn:not(.is-active):hover {
  color: var(--icon-text-hover);
  background: linear-gradient(to top, rgba(81, 112, 255, 0.06) 0%, rgba(81, 112, 255, 0) 100%);
}

/* Active State: Primary blue gradient starting at bottom-most of footer to top of footer */
.icon-text-btn.is-active {
  color: var(--icon-text-primary);
  background: linear-gradient(to top, rgba(81, 112, 255, 0.25) 0%, rgba(81, 112, 255, 0.08) 50%, rgba(81, 112, 255, 0) 100%);
  border-radius: 0;
}

.icon-text-btn.is-active .icon-wrapper {
  transform: translateY(-1px);
}

.icon-text-btn.is-active .icon-text-label {
  color: var(--icon-text-primary);
  font-weight: 600;
}

/* Subtle icon press feedback without affecting the flush gradient */
.icon-text-btn:active .icon-wrapper {
  transform: scale(0.92);
}

/* Keyboard Accessibility */
.icon-text-btn:focus-visible {
  outline: 2px solid var(--icon-text-primary);
  outline-offset: -2px;
}
