/* Minecraft/JetBrains Mono Inspired Icon System */

.mc-icon {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
  fill: currentColor;
  /* Pixelated rendering for that Minecraft feel */
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* Icon size variants */
.mc-icon-sm {
  width: 1em;
  height: 1em;
}

.mc-icon-lg {
  width: 1.5em;
  height: 1.5em;
}

.mc-icon-xl {
  width: 2em;
  height: 2em;
}

.mc-icon-2xl {
  width: 3em;
  height: 3em;
}

/* Icon colors matching ApplauseLab theme */
.mc-icon-primary {
  color: var(--al-primary, #00ff4e);
}

.mc-icon-white {
  color: var(--al-white, #ffffff);
}

.mc-icon-gray {
  color: var(--al-gray-400, #8a8a8a);
}

/* Hover effects */
.mc-icon-hover:hover {
  color: var(--al-primary, #00ff4e);
  transform: scale(1.1);
  transition: all 0.2s ease;
}

/* Inline text alignment */
.mc-icon-text {
  margin-right: 0.5em;
}

/* Animation for special icons */
@keyframes mc-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.mc-icon-pulse {
  animation: mc-pulse 2s ease-in-out infinite;
}

@keyframes mc-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.mc-icon-spin {
  animation: mc-rotate 3s linear infinite;
}

/* Specific icon styling */
.mc-icon-rocket {
  /* Add flame effect on hover */
  position: relative;
}

.mc-icon-rocket:hover::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 4px;
  background: linear-gradient(90deg, #ff6b00, #ffaa00, #ff6b00);
  animation: flame-flicker 0.3s ease-in-out infinite;
}

@keyframes flame-flicker {
  0%, 100% { opacity: 0.8; transform: translateX(-50%) scaleX(1); }
  50% { opacity: 1; transform: translateX(-50%) scaleX(1.1); }
}

/* Usage helper classes */
.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1em;
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.icon-button:hover {
  background: var(--al-primary, #00ff4e);
  color: var(--al-black, #000000);
  border-color: var(--al-primary, #00ff4e);
}

.icon-list {
  list-style: none;
  padding: 0;
}

.icon-list li {
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.5em 0;
}

.icon-list li .mc-icon {
  flex-shrink: 0;
  color: var(--al-primary, #00ff4e);
}