/**
 * MELHORES INVESTIMENTOS - CSS LEGADO (ISOLADO)
 * =============================================
 * Componente temporário - manter estrutura atual até migração para DS.
 * Quando o componente Melhores Investimentos for criado no Design System,
 * migrar este bloco e remover este arquivo.
 *
 * IMPORTANTE: Todo o CSS está escopado em .melhores-investimentos-legacy
 * para NÃO interferir na estrutura DS (título, subtítulo, botão CTA).
 *
 * Usado em: templates/FinancialIndicators/index.php
 */

.melhores-investimentos-legacy .assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.melhores-investimentos-legacy .assets-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.melhores-investimentos-legacy .asset-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
}

.melhores-investimentos-legacy .asset-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.melhores-investimentos-legacy .asset-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.melhores-investimentos-legacy .asset-link:hover {
  text-decoration: none;
  color: inherit;
}

.melhores-investimentos-legacy .asset-header {
  padding: 1.25rem 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.melhores-investimentos-legacy .asset-type-badge .badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
}

.melhores-investimentos-legacy .badge-cdb { background-color: #007bff; color: white; }
.melhores-investimentos-legacy .badge-lci { background-color: #28a745; color: white; }
.melhores-investimentos-legacy .badge-lca { background-color: #ffc107; color: #212529; }
.melhores-investimentos-legacy .badge-debenture { background-color: #6f42c1; color: white; }
.melhores-investimentos-legacy .badge-cri { background-color: #fd7e14; color: white; }
.melhores-investimentos-legacy .badge-cra { background-color: #20c997; color: white; }
.melhores-investimentos-legacy .badge-poupanca { background-color: #17a2b8; color: white; }

.melhores-investimentos-legacy .asset-body {
  padding: 1rem 1.25rem;
  flex-grow: 1;
}

.melhores-investimentos-legacy .asset-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #212529;
  line-height: 1.3;
}

.melhores-investimentos-legacy .asset-issuer {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.melhores-investimentos-legacy .detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.melhores-investimentos-legacy .detail-label {
  color: #6c757d;
  font-weight: 500;
}

.melhores-investimentos-legacy .detail-value {
  font-weight: 600;
  color: #212529;
}

.melhores-investimentos-legacy .detail-value.text-success { color: #28a745; }
.melhores-investimentos-legacy .detail-value.text-danger { color: #dc3545; }

.melhores-investimentos-legacy .asset-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid #f1f3f4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8f9fa;
}

.melhores-investimentos-legacy .cta-text {
  font-weight: 600;
  color: var(--meelion-blue, #2E6C86);
  font-size: 0.9rem;
}

.melhores-investimentos-legacy .asset-link:hover .cta-text {
  color: var(--meelion-dark-blue, #1a4a5c);
}

.melhores-investimentos-legacy .asset-footer i {
  color: var(--meelion-blue, #2E6C86);
  transition: color 0.3s ease, transform 0.2s ease;
}

.melhores-investimentos-legacy .asset-card:hover .asset-footer i {
  color: var(--meelion-dark-blue, #1a4a5c);
  transform: translateX(4px);
}

.melhores-investimentos-legacy .btn-meelion-green {
  background-color: #C3F53C;
  border-color: #C3F53C;
  color: #000;
  font-weight: 600;
}

.melhores-investimentos-legacy .btn-meelion-green:hover {
  background-color: #81AE00;
  border-color: #81AE00;
  color: #fff;
}

@media (max-width: 768px) {
  .melhores-investimentos-legacy .assets-grid,
  .melhores-investimentos-legacy .assets-grid-compact {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .melhores-investimentos-legacy .asset-header {
    padding: 1rem 1rem 0;
  }

  .melhores-investimentos-legacy .asset-body {
    padding: 0.75rem 1rem;
  }

  .melhores-investimentos-legacy .asset-footer {
    padding: 0.75rem 1rem;
  }
}
