/* Estilos específicos para a página de fundos */

/* Page Hero - mesmo espaçamento do insights */
.page-hero {
  background-color: var(--fundo-claro);
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--borda);
}

@media (max-width: 768px) {
  .page-hero {
    padding: 40px 0 30px;
  }
  
  .page-title {
    font-size: 2rem;
  }
}

/* Layout de cards de fundos */
.funds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.fund-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.fund-header {
  background-color: var(--azul-escuro);
  color: #fff;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fund-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.fund-tag {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
}

.fund-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.fund-description {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--texto-secundario);
  line-height: 1.6;
}

.fund-details {
  margin-bottom: 20px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--borda-clara);
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 500;
  color: var(--texto-principal);
}

.detail-value {
  color: var(--texto-secundario);
}

.fund-performance {
  background-color: var(--fundo-claro);
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.fund-performance h5 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1rem;
  color: var(--texto-principal);
}

.performance-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.performance-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.performance-label {
  font-weight: 500;
  color: var(--texto-principal);
  font-size: 0.9rem;
  width: 50px;
}

.performance-bar {
  height: 30px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px;
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  flex-grow: 1;
}

.fund-bar {
  background-color: var(--azul-escuro);
  width: 100%;
  z-index: 1;
}

.benchmark-bar {
  background-color: var(--azul-claro);
  width: 65%;
  z-index: 2;
}

.fund-actions {
  display: flex;
  gap: 15px;
  margin-top: auto;
}

/* Estilos para a página de estratégia */
.strategy-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 0;
}

.strategy-text {
  color: var(--texto-principal);
}

.strategy-text p {
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 1.05rem;
  font-weight: 500;
}

.strategy-highlights {
  margin-top: 20px;
}

.all-funds {
  padding-top: 0;
}

/* Responsividade */
@media (min-width: 768px) {
  .strategy-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .funds-grid {
    grid-template-columns: 1fr;
  }
  
  .fund-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .fund-tag {
    align-self: flex-start;
  }
}
