/**
 * Iconsax Icons Integration for Volitives
 * Self-contained icon system with fallbacks for offline compatibility
 * No external dependencies to avoid CORS issues
 */

/* ===== ICON UTILITIES ===== */

/* Base icon class */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
  vertical-align: middle;
  line-height: 1;
}

/* Icon sizes */
.icon-xs { width: 12px; height: 12px; font-size: 12px; }
.icon-sm { width: 16px; height: 16px; font-size: 16px; }
.icon-md { width: 20px; height: 20px; font-size: 20px; }
.icon-lg { width: 24px; height: 24px; font-size: 24px; }
.icon-xl { width: 32px; height: 32px; font-size: 32px; }
.icon-2xl { width: 48px; height: 48px; font-size: 48px; }
.icon-3xl { width: 64px; height: 64px; font-size: 64px; }

/* Icon colors */
.icon-primary { color: var(--primary-color, #FCD43C); }
.icon-secondary { color: var(--secondary-color, #13233d); }
.icon-accent { color: var(--accent-color, #FF6B00); }
.icon-white { color: #ffffff; }
.icon-black { color: #000000; }
.icon-gray { color: #6c757d; }
.icon-success { color: #28a745; }
.icon-warning { color: #ffc107; }
.icon-error { color: #dc3545; }
.icon-info { color: #17a2b8; }

/* Icon animations */
.icon-spin {
  animation: icon-spin 1s linear infinite;
}

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

.icon-bounce {
  animation: icon-bounce 1s infinite;
}

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

@keyframes icon-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes icon-bounce {
  0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
  40%, 43% { transform: translateY(-8px); }
  70% { transform: translateY(-4px); }
  90% { transform: translateY(-2px); }
}

/* Icon hover effects */
.icon-hover:hover {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

.icon-hover-color:hover {
  color: var(--primary-color, #FCD43C);
  transition: color 0.2s ease;
}

/* ===== ICONSAX SPECIFIC STYLES ===== */

/* Override Iconsax defaults to match our design system */
.iconsax {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

/* Iconsax size variants */
.iconsax-xs { font-size: 12px; }
.iconsax-sm { font-size: 16px; }
.iconsax-md { font-size: 20px; }
.iconsax-lg { font-size: 24px; }
.iconsax-xl { font-size: 32px; }
.iconsax-2xl { font-size: 48px; }
.iconsax-3xl { font-size: 64px; }

/* ===== COMMONLY USED ICONS ===== */

/* Base SVG icon class for custom icons */
.svg-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  fill: currentColor;
}

/* Sports & Activity Icons */
.icon-volleyball::before { content: "🏐"; }
.icon-sport::before { content: "⚽"; }
.icon-trophy::before { content: "🏆"; }
.icon-medal::before { content: "🥇"; }
.icon-whistle::before { content: "🔔"; }

/* Navigation & UI Icons */
.icon-menu::before { content: "☰"; }
.icon-close::before { content: "✕"; }
.icon-arrow-right::before { content: "→"; }
.icon-arrow-left::before { content: "←"; }
.icon-arrow-up::before { content: "↑"; }
.icon-arrow-down::before { content: "↓"; }

/* Social Media Icons */
.icon-instagram::before { content: "📷"; }
.icon-facebook::before { content: "📘"; }
.icon-twitter::before { content: "🐦"; }
.icon-youtube::before { content: "📺"; }

/* Contact Icons */
.icon-phone::before { content: "📞"; }
.icon-email::before { content: "📧"; }
.icon-location::before { content: "📍"; }
.icon-website::before { content: "🌐"; }

/* General Icons */
.icon-star::before { content: "⭐"; }
.icon-heart::before { content: "❤️"; }
.icon-check::before { content: "✓"; }
.icon-warning::before { content: ""; }
.icon-info::before { content: "ℹ️"; }
.icon-calendar::before { content: "📅"; }
.icon-clock::before { content: "🕐"; }
.icon-user::before { content: "👤"; }
.icon-users::before { content: "👥"; }

/* ===== RESPONSIVE ICON HELPERS ===== */

@media (max-width: 768px) {
  .icon-responsive {
    font-size: 16px;
  }
  
  .iconsax-responsive {
    font-size: 16px;
  }
}

@media (min-width: 769px) {
  .icon-responsive {
    font-size: 20px;
  }
  
  .iconsax-responsive {
    font-size: 20px;
  }
}

@media (min-width: 1024px) {
  .icon-responsive {
    font-size: 24px;
  }
  
  .iconsax-responsive {
    font-size: 24px;
  }
}

/* ===== ICON BUTTONS ===== */

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: inherit;
  text-decoration: none;
}

.icon-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.icon-button.primary {
  background-color: var(--primary-color, #FCD43C);
  color: var(--secondary-color, #13233d);
}

.icon-button.primary:hover {
  background-color: #e6c236;
}

.icon-button.secondary {
  background-color: var(--secondary-color, #13233d);
  color: var(--primary-color, #FCD43C);
}

.icon-button.secondary:hover {
  background-color: #1a2f4a;
}

/* ===== ICON WITH TEXT ===== */

.icon-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.icon-text.vertical {
  flex-direction: column;
  text-align: center;
  gap: 4px;
}

/* ===== UTILITY CLASSES ===== */

.icon-inline { display: inline; }
.icon-block { display: block; }
.icon-flex { display: flex; align-items: center; }

.icon-left { margin-right: 8px; }
.icon-right { margin-left: 8px; }
.icon-top { margin-bottom: 4px; }
.icon-bottom { margin-top: 4px; }

/* ===== ACCESSIBILITY ===== */

.icon[aria-hidden="true"] {
  speak: none;
}

.icon:focus {
  outline: 2px solid var(--primary-color, #FCD43C);
  outline-offset: 2px;
}

/* Screen reader only text for icons */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}