/**
 * Premium SVG Icon System
 * Heroicons-based professional icon library
 * Replaces all emojis with scalable, accessible SVG icons
 */

/* ===========================
   Base Icon Styles
   =========================== */
.icon {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

.icon-md {
  width: 1.5rem;
  height: 1.5rem;
}

.icon-lg {
  width: 2rem;
  height: 2rem;
}

.icon-xl {
  width: 3rem;
  height: 3rem;
}

.icon-2xl {
  width: 4rem;
  height: 4rem;
}

.icon-3xl {
  width: 6rem;
  height: 6rem;
}

/* Icon colors */
.icon-primary {
  color: var(--color-primary);
}

.icon-accent {
  color: var(--color-accent);
}

.icon-success {
  color: var(--color-success);
}

.icon-muted {
  color: var(--color-text-muted);
}

/* Filled icons */
.icon-filled {
  fill: currentColor;
  stroke: none;
}

/* ===========================
   Icon Animations
   =========================== */
@keyframes checkDraw {
  from {
    stroke-dashoffset: 50;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes iconSlideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.icon-check-animated {
  stroke-dasharray: 50;
  animation: checkDraw 0.4s ease-out forwards;
}

.icon-slide-in {
  animation: iconSlideIn 0.3s ease-out forwards;
}

/* ===========================
   Feature Icon Boxes
   =========================== */
.feature-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--color-primary-soft);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.feature-icon-box .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-primary);
}

.feature-icon-box-lg {
  width: 4rem;
  height: 4rem;
}

.feature-icon-box-lg .icon {
  width: 2rem;
  height: 2rem;
}

/* ===========================
   Checkmark Styling
   =========================== */
.check-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--color-accent-soft);
  border-radius: 50%;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.check-icon-wrapper .icon {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--color-accent);
  stroke-width: 3;
}

/* For list items with checkmarks */
.list-checked {
  list-style: none;
  padding: 0;
}

.list-checked li {
  display: flex;
  align-items: flex-start;
  padding: 0.5rem 0;
  color: var(--color-text-secondary);
}

.list-checked li::before {
  content: '';
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%2300f2ec" stroke-width="3"><path stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"/></svg>')
    center/contain no-repeat;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

/* ===========================
   Decorative Icon Containers
   =========================== */
.icon-container-large {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8rem;
  height: 8rem;
  background: linear-gradient(135deg, var(--color-primary-soft) 0%, var(--color-accent-soft) 100%);
  border-radius: var(--radius-lg);
  margin: 0 auto 2rem;
}

.icon-container-large .icon {
  width: 4rem;
  height: 4rem;
  color: var(--color-primary);
}

/* ===========================
   Icon + Text Combinations
   =========================== */
.icon-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-text .icon {
  flex-shrink: 0;
}

/* ===========================
   Hover Effects
   =========================== */
.icon-hover-lift {
  transition: transform 0.2s ease;
}

.icon-hover-lift:hover {
  transform: translateY(-2px);
}

.icon-hover-spin {
  transition: transform 0.3s ease;
}

.icon-hover-spin:hover {
  transform: rotate(15deg);
}

/* ===========================
   Accessibility
   =========================== */
.icon[aria-hidden='true'] {
  pointer-events: none;
}

/* Ensure icons don't interfere with screen readers */
.icon-decorative {
  aria-hidden: true;
  pointer-events: none;
}
