/* Pricing Page Specific Styles */

/* Icon Spin-and-Swap Animation (90 degree West to North) */
.icon-container {
  position: relative;
  width: 24px;
  height: 24px;
}

.icon-original, .icon-texdex {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Snappy bounce */
}

.icon-original {
  transform: rotate(0deg) scale(1);
  opacity: 1;
}

.icon-texdex {
  transform: rotate(-90deg) scale(0);
  opacity: 0;
}

.group:hover .icon-original {
  transform: rotate(90deg) scale(0);
  opacity: 0;
}

.group:hover .icon-texdex {
  transform: rotate(0deg) scale(1);
  opacity: 1;
}

/* Rank Highlights */
.free-tier:hover {
  border-color: #78716c !important; /* Stone 500 */
  box-shadow: 0 0 30px 5px rgba(120, 113, 108, 0.15);
  background-color: rgba(68, 64, 60, 0.2);
}

.booster-tier:hover {
  border-color: #ec4899 !important; /* Pink 500 */
  box-shadow: 0 0 40px 10px rgba(236, 72, 153, 0.25);
  background-color: rgba(236, 72, 153, 0.05);
}

.premium-tier:hover {
  border-color: #a855f7 !important; /* Purple 500 */
  box-shadow: 0 0 50px 15px rgba(168, 85, 247, 0.35);
  background-color: rgba(168, 85, 247, 0.05);
}

.pro-tier:hover {
  border-color: #f59e0b !important; /* Amber 500 */
  box-shadow: 0 0 40px 10px rgba(245, 158, 11, 0.25);
  background-color: rgba(245, 158, 11, 0.05);
}

/* Custom Tooltip System */
.tooltip-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: help;
}

.tooltip-content {
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #1c1917; /* stone-900 */
  border: 1px solid #44403c; /* stone-700 */
  color: #d6d3d1; /* stone-300 */
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  width: 240px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
}

.tooltip-container:hover .tooltip-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.tooltip-content::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #44403c transparent transparent transparent;
}
