/**
 * Estilos do Plugin Cotações - Design Profissional
 */

/* ========================================
   WIDGET DE COTAÇÕES PROFISSIONAL
   ======================================== */

.widget-cotacoes-elegante {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    margin-bottom: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: all 0.3s ease;
}

.widget-cotacoes-elegante:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: #d1d5db;
}

.widget-cotacoes-header {
    padding: 18px 20px;
    border-bottom: 2px solid #f3f4f6;
    background: linear-gradient(to bottom, #ffffff 0%, #f9fafb 100%);
    position: relative;
}

.widget-cotacoes-elegante .widget-title {
    color: #1f2937 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    border: none !important;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
}

.widget-cotacoes-elegante .widget-title i {
    font-size: 18px;
    color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cotacoes-atualizacao {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 500;
    margin-top: 4px;
}

.cotacoes-atualizacao i {
    font-size: 10px;
    color: #9ca3af;
}

.cotacoes-lista {
    padding: 16px;
    display: grid;
    gap: 10px;
    position: relative;
    background: #ffffff;
}

.cotacao-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideIn 0.4s ease-out var(--delay) both;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cotacao-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--cotacao-cor, #6b7280);
    transition: width 0.3s ease;
}

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

.cotacao-card:hover {
    background: #ffffff;
    border-color: #d1d5db;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cotacao-card:hover::before {
    width: 4px;
}

.cotacao-card:hover .cotacao-preco {
    color: var(--cotacao-cor, #1f2937);
}

.cotacao-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.cotacao-icone {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.cotacao-icone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.cotacao-card:hover .cotacao-icone {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.cotacao-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.cotacao-simbolo {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.cotacao-nome-curto {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    line-height: 1.2;
}

.cotacao-card-body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 0;
    gap: 12px;
}

.cotacao-valor-principal {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex: 1;
}

.cotacao-moeda {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
    margin-right: 2px;
}

.cotacao-preco {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
    transition: all 0.3s ease;
    letter-spacing: -0.5px;
}

.cotacao-variacao-container {
    text-align: right;
    flex-shrink: 0;
}

.cotacao-variacao {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.25s ease;
    white-space: nowrap;
    line-height: 1;
}

.cotacao-variacao span {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.cotacao-variacao.positive {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.cotacao-variacao.negative {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.cotacao-variacao.neutral {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.cotacao-variacao i {
    font-size: 9px;
    font-weight: 900;
}

.cotacao-card:hover .cotacao-variacao.positive {
    background: #bbf7d0;
    color: #15803d;
    border-color: #86efac;
}

.cotacao-card:hover .cotacao-variacao.negative {
    background: #fecaca;
    color: #b91c1c;
    border-color: #fca5a5;
}

.cotacoes-footer-info {
    padding: 10px 16px;
    border-top: 1px solid #f3f4f6;
    text-align: center;
    background: #f9fafb;
}

.cotacoes-footer-info small {
    display: block;
    color: #9ca3af;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.4;
}

.cotacoes-footer-info i {
    font-size: 9px;
    margin-right: 4px;
    opacity: 0.7;
}

/* ===================================
   RESPONSIVO
   =================================== */

@media (max-width: 991px) {
    .widget-cotacoes-elegante {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
    }
    
    .widget-cotacoes-header {
        padding: 16px;
    }
    
    .widget-cotacoes-elegante .widget-title {
        font-size: 16px !important;
    }
    
    .cotacoes-lista {
        padding: 14px;
        gap: 9px;
    }
    
    .cotacao-card {
        padding: 12px 14px;
    }
    
    .cotacao-icone {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .cotacao-simbolo {
        font-size: 14px;
    }
    
    .cotacao-preco {
        font-size: 18px;
    }
    
    .cotacao-variacao {
        font-size: 10px;
        padding: 4px 8px;
    }
}

@media (max-width: 767px) {
    .cotacao-card {
        padding: 12px;
    }
    
    .cotacao-preco {
        font-size: 17px;
    }
    
    .cotacao-icone {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
    
    .cotacao-card-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .cotacao-variacao-container {
        align-self: flex-end;
    }
}

