/* ═══════════════════════════════════════════════════════════════════════════════
   OLYMPUS RISING - Icon Replacements (PNG instead of Emojis)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* General icon styling */
.stat-icon-img,
.currency-icon-img,
.resource-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Inline icons in text */
.stat-icon-inline,
.btn-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  margin-right: 4px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Enemy type and element icons */
.enemy-type-icon,
.element-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Result screen large icons */
.result-icon-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  animation: iconBounce 0.5s ease-out;
}

@keyframes iconBounce {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Reward icons */
.reward-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-bottom: 8px;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
}

/* Quick stats on home screen */
.quick-stat .stat-icon-img {
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
}

/* Nav bar icons */
.nav-icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  transition: all 0.3s ease;
}

.nav-item.active .nav-icon-img {
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
  transform: scale(1.1);
}

/* Header currency displays */
.header-bar .currency-icon-img {
  width: 20px;
  height: 20px;
  margin-right: 4px;
}

/* Combat ability icons */
.ability-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Button icons */
.btn-icon {
  vertical-align: text-bottom;
  margin-right: 6px;
}

/* Stat icons in character sheet */
.stat-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

/* Currency displays in shop */
.shop-currency .currency-icon-img {
  width: 22px;
  height: 22px;
  margin-right: 6px;
}

/* Quest/achievement icons */
.quest-icon,
.achievement-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
}

/* Small icons in lists */
.list-item-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  margin-right: 8px;
  vertical-align: middle;
}

/* Icon hover effects on desktop */
@media (hover: hover) {
  .nav-icon-img:hover,
  .currency-icon-img:hover,
  .header-icon-btn img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.6));
  }
}

/* Mobile optimizations */
@media (max-width: 600px) {
  .result-icon-img {
    width: 48px;
    height: 48px;
  }

  .reward-icon {
    width: 28px;
    height: 28px;
  }

  .stat-icon-img {
    width: 20px;
    height: 20px;
  }

  .quest-icon,
  .achievement-icon {
    width: 32px;
    height: 32px;
  }
}

/* Ensure icons don't break layout */
img.stat-icon-img,
img.currency-icon-img,
img.resource-icon-img,
img.nav-icon-img,
img.btn-icon {
  max-width: 100%;
  height: auto;
  -webkit-user-drag: none;
  user-select: none;
}

/* Loading state for icons */
.icon-loading {
  opacity: 0.5;
  animation: iconPulse 1s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
}
