/**
 * Lodhi Group Government & Community Design System
 * Unified Icon System (SVG / Vector Icons)
 * Version: 2.0.0
 */

:root {
  --icon-stroke-width: 2px;
  --icon-primary: currentColor;
  --icon-gold: #D4AF37;
  --icon-gold-light: #f3d778;
  --icon-emerald: #073524;
  --icon-emerald-dark: #042217;
  --icon-emerald-accent: #0b4932;
  --icon-success: #188038;
  --icon-danger: #d93025;
  --icon-warning: #e37400;
  --icon-info: #1a73e8;
  --icon-muted: #708579;
}

/* Base Icon Style */
.lodhi-icon,
svg.lg-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  stroke: var(--icon-primary);
  stroke-width: var(--icon-stroke-width);
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: stroke 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  user-select: none;
}

/* Sizing Scale */
.icon-16, .lg-icon-16 { width: 16px; height: 16px; }
.icon-20, .lg-icon-20 { width: 20px; height: 20px; }
.icon-24, .lg-icon-24 { width: 24px; height: 24px; }
.icon-32, .lg-icon-32 { width: 32px; height: 32px; }
.icon-40, .lg-icon-40 { width: 40px; height: 40px; }
.icon-48, .lg-icon-48 { width: 48px; height: 48px; }
.icon-64, .lg-icon-64 { width: 64px; height: 64px; }

/* Default size if unspecified */
svg.lg-icon:not([class*="icon-"]) {
  width: 24px;
  height: 24px;
}

/* Color Modifiers */
.icon-gold { stroke: var(--icon-gold) !important; }
.icon-gold-light { stroke: var(--icon-gold-light) !important; }
.icon-emerald { stroke: var(--icon-emerald) !important; }
.icon-emerald-accent { stroke: var(--icon-emerald-accent) !important; }
.icon-success { stroke: var(--icon-success) !important; }
.icon-danger { stroke: var(--icon-danger) !important; }
.icon-warning { stroke: var(--icon-warning) !important; }
.icon-info { stroke: var(--icon-info) !important; }
.icon-muted { stroke: var(--icon-muted) !important; }
.icon-white { stroke: #ffffff !important; }

/* Filled Accents (for badges / status indicators) */
.icon-filled {
  fill: currentColor;
}
.icon-duotone {
  fill: rgba(212, 175, 55, 0.15);
}

/* State Modifiers */
.icon-interactive {
  cursor: pointer;
}
.icon-interactive:hover {
  stroke: var(--icon-gold);
  transform: translateY(-1px);
}
.icon-interactive:active {
  transform: translateY(0) scale(0.95);
}
.icon-interactive:focus-visible {
  outline: 2px solid var(--icon-gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.icon-disabled {
  opacity: 0.4;
  cursor: not-allowed !important;
  pointer-events: none;
}
.icon-spin {
  animation: lgIconSpin 1s linear infinite;
}
@keyframes lgIconSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Icon Box / Badges Container */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(7, 53, 36, 0.08);
  border: 1px solid rgba(7, 53, 36, 0.15);
  color: var(--icon-emerald);
  padding: 10px;
  transition: all 0.25s ease;
}
.icon-badge.gold {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.35);
  color: var(--icon-gold);
}
.icon-badge.emerald-dark {
  background: #042217;
  border-color: rgba(212, 175, 55, 0.3);
  color: var(--icon-gold);
}
.icon-badge.danger {
  background: rgba(217, 48, 37, 0.1);
  border-color: rgba(217, 48, 37, 0.25);
  color: var(--icon-danger);
}
.icon-badge.success {
  background: rgba(24, 128, 56, 0.1);
  border-color: rgba(24, 128, 56, 0.25);
  color: var(--icon-success);
}
.icon-badge.warning {
  background: rgba(227, 116, 0, 0.1);
  border-color: rgba(227, 116, 0, 0.25);
  color: var(--icon-warning);
}

/* Screen Reader Utility */
.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;
}
