/* ==========================================================================
   ICONS CSS - Configurações para Ícones e Elementos Gráficos
   ========================================================================== */

/* ==========================================================================
   SETAS E NAVEGAÇÃO
   ========================================================================== */

/* Setas básicas usando CSS */
.arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
}

.arrow-up {
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 12px solid currentColor;
}

.arrow-down {
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid currentColor;
}

.arrow-left {
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 12px solid currentColor;
}

.arrow-right {
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid currentColor;
}

/* Setas usando Unicode */
.arrow-unicode {
    font-family: Arial, sans-serif;
    font-weight: bold;
    display: inline-block;
    transition: transform 0.2s ease;
}

.arrow-unicode.up::before { content: "▲"; }
.arrow-unicode.down::before { content: "▼"; }
.arrow-unicode.left::before { content: "◀"; }
.arrow-unicode.right::before { content: "▶"; }

/* Chevrons para navegação */
.chevron {
    position: relative;
    display: inline-block;
    width: 12px;
    height: 12px;
}

.chevron::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 6px;
    height: 6px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform-origin: center;
}

.chevron.up::before { transform: rotate(-45deg); }
.chevron.down::before { transform: rotate(135deg); }
.chevron.left::before { transform: rotate(-135deg); }
.chevron.right::before { transform: rotate(45deg); }

/* Setas SVG inline */
.arrow-svg {
    display: inline-block;
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.arrow-svg.left {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>');
}

.arrow-svg.right {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M8.59 16.59L10 18l6-6-6-6-1.41 1.41L13.17 12z"/></svg>');
}

.arrow-svg.up {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"/></svg>');
}

.arrow-svg.down {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z"/></svg>');
}

/* ==========================================================================
   ÍCONES DE INTERFACE
   ========================================================================== */

/* Menu hambúrguer */
.hamburger {
    display: inline-block;
    width: 24px;
    height: 18px;
    position: relative;
    cursor: pointer;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius: 1px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) { top: 0px; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }

/* Menu hambúrguer ativo (X) */
.hamburger.active span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.active span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* Ícone de busca */
.search-icon {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.search-icon::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 50%;
    top: 0;
    left: 0;
}

.search-icon::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    bottom: 1px;
    right: 1px;
    transform: rotate(45deg);
}

/* Ícone de fechar (X) */
.close-icon {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.close-icon::before,
.close-icon::after {
    content: '';
    position: absolute;
    top: 7px;
    left: 0;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

.close-icon::before { transform: rotate(45deg); }
.close-icon::after { transform: rotate(-45deg); }

/* Plus/Mais */
.plus-icon {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.plus-icon::before,
.plus-icon::after {
    content: '';
    position: absolute;
    background: currentColor;
    border-radius: 1px;
}

.plus-icon::before {
    top: 7px;
    left: 0;
    width: 16px;
    height: 2px;
}

.plus-icon::after {
    top: 0;
    left: 7px;
    width: 2px;
    height: 16px;
}

/* ==========================================================================
   ÍCONES DE STATUS
   ========================================================================== */

/* Check/Verificado */
.check-icon {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.check-icon::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 7px;
    width: 6px;
    height: 3px;
    border: solid currentColor;
    border-width: 0 0 2px 2px;
    transform: rotate(-45deg);
}

/* Warning/Alerta */
.warning-icon {
    position: relative;
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 14px solid currentColor;
}

.warning-icon::after {
    content: '!';
    position: absolute;
    top: 2px;
    left: -1px;
    color: white;
    font-weight: bold;
    font-size: 10px;
    line-height: 1;
}

/* Info */
.info-icon {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.info-icon::after {
    content: 'i';
    position: absolute;
    top: 1px;
    left: 5px;
    font-weight: bold;
    font-size: 10px;
    line-height: 1;
}

/* ==========================================================================
   ÍCONES DE MÍDIA
   ========================================================================== */

/* Play */
.play-icon {
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent currentColor;
}

/* Pause */
.pause-icon {
    display: inline-block;
    width: 12px;
    height: 16px;
    position: relative;
}

.pause-icon::before,
.pause-icon::after {
    content: '';
    position: absolute;
    top: 0;
    width: 4px;
    height: 16px;
    background: currentColor;
}

.pause-icon::before { left: 0; }
.pause-icon::after { right: 0; }

/* Stop */
.stop-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: currentColor;
}

/* ==========================================================================
   UTILITÁRIOS E MODIFICADORES
   ========================================================================== */

/* Tamanhos */
.icon-xs { width: 12px; height: 12px; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }

/* Cores */
.icon-primary { color: #007bff; }
.icon-secondary { color: #6c757d; }
.icon-success { color: #28a745; }
.icon-danger { color: #dc3545; }
.icon-warning { color: #ffc107; }
.icon-info { color: #17a2b8; }
.icon-light { color: #f8f9fa; }
.icon-dark { color: #343a40; }

/* Estados */
.icon-hover:hover {
    opacity: 0.7;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

.icon-active {
    opacity: 0.8;
    transform: scale(0.95);
}

.icon-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Animações */
.icon-spin {
    animation: icon-spin 1s linear infinite;
}

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

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

@keyframes icon-spin {
    0% { transform: rotate(0deg); }
    100% { 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);
    }
}

/* Posicionamento */
.icon-inline {
    display: inline-block;
    vertical-align: middle;
    margin: 0 4px;
}

.icon-block {
    display: block;
    margin: 8px auto;
}

/* Responsividade */
@media (max-width: 768px) {
    .icon-responsive {
        width: 14px;
        height: 14px;
    }
    
    .hamburger {
        width: 20px;
        height: 15px;
    }
    
    .hamburger span {
        height: 1.5px;
    }
    
    .hamburger span:nth-child(2) {
        top: 7px;
    }
    
    .hamburger span:nth-child(3) {
        top: 13px;
    }
}

@media (max-width: 480px) {
    .icon-responsive {
        width: 12px;
        height: 12px;
    }
}