/* Ícones de Armas HL2 usando fonte customizada */
/* Cada arma é representada por uma letra maiúscula */

@font-face {
    font-family: 'HL2WeaponIcons';
    src: url('/lib/font/HPH_HUD_WeaponIcons.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.weapon-icon {
    font-family: 'HL2WeaponIcons' !important;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    font-style: normal !important;
}

/* Mapeamento de armas para letras (baseado em HL2DM) */
.weapon-icon[data-weapon*="physcannon"]::before,
.weapon-icon[data-weapon*="gravitygun"]::before,
.weapon-icon[data-weapon*="physbox"]::before,
.weapon-icon[data-weapon*="physics"]::before,
.weapon-icon[data-weapon*="Physics"]::before { content: 'A'; }
.weapon-icon[data-weapon*="crowbar"]::before { content: 'B'; }
.weapon-icon[data-weapon*="stunstick"]::before { content: 'C'; }
.weapon-icon[data-weapon*="pistol"]::before { content: 'D'; }
.weapon-icon[data-weapon*="357"]::before,
.weapon-icon[data-weapon*="magnum"]::before,
.weapon-icon[data-weapon*="Magnum"]::before { content: 'E'; }
.weapon-icon[data-weapon*="smg1"]:not([data-weapon*="grenade"])::before { content: 'F'; }
.weapon-icon[data-weapon*="ar2"]:not([data-weapon*="altfire"])::before { content: 'G'; }
.weapon-icon[data-weapon*="shotgun"]::before,
.weapon-icon[data-weapon*="Shotgun"]::before { content: 'H'; }
.weapon-icon[data-weapon*="crossbow"]::before { content: 'I'; }
.weapon-icon[data-weapon*="grenade"]::before,
.weapon-icon[data-weapon*="frag"]::before { content: 'J'; }
.weapon-icon[data-weapon*="rpg"]::before { content: 'K'; }
.weapon-icon[data-weapon*="slam"]::before { content: 'L'; }
.weapon-icon[data-weapon*="smg1_grenade"]::before { content: 'Q'; }
.weapon-icon[data-weapon*="ar2_altfire"]::before,
.weapon-icon[data-weapon*="combine_ball"]::before { content: 'S'; }

/* Fallback para armas não mapeadas */
.weapon-icon:not([data-weapon])::before { content: '?'; }

/* Tamanhos variados */
.weapon-icon.small { font-size: 16px; }
.weapon-icon.medium { font-size: 24px; }
.weapon-icon.large { font-size: 32px; }
.weapon-icon.xlarge { font-size: 48px; }

/* Cores por tipo de arma */
.weapon-icon.melee { color: #8B4513; }
.weapon-icon.pistol { color: #A9A9A9; }
.weapon-icon.rifle { color: #4169E1; }
.weapon-icon.shotgun { color: #DC143C; }
.weapon-icon.explosive { color: #FF4500; }
.weapon-icon.special { color: #FFD700; }