/* Calculadora À Vista vs Parcelado - Estilos Específicos */

/* Taxa Selic Info */
.selic-info {
  margin-bottom: 30px;
}

.selic-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.selic-label {
  display: block;
  font-size: 1rem;
  color: #a0a0a0;
  margin-bottom: 8px;
}

.selic-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #4caf50;
  margin-bottom: 4px;
}

.selic-date {
  font-size: 0.9rem;
  color: #888;
}

/* Resultados da Comparação */
.comparison-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.option-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.option-card h3 {
  margin-bottom: 20px;
  font-size: 1.3rem;
  text-align: center;
}

.cash-option {
  border-left: 4px solid #4caf50;
}

.installment-option {
  border-left: 4px solid #ff9800;
}

.value-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px 0;
}

.value-display.total {
  border-top: 1px solid #333;
  padding-top: 16px;
  margin-top: 16px;
  font-weight: 600;
}

.value-label {
  color: #a0a0a0;
  font-size: 0.95rem;
}

.value-amount {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Recomendação */
.recommendation-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.recommendation-card.better-cash {
  border-left: 4px solid #4caf50;
}

.recommendation-card.better-installment {
  border-left: 4px solid #ff9800;
}

.recommendation-card h3 {
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.recommendation-card p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #e1e1e1;
}

.savings-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.savings-label {
  font-size: 1rem;
  color: #a0a0a0;
}

.savings-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #4caf50;
}

.savings-percent {
  font-size: 1.2rem;
  font-weight: 600;
  color: #4caf50;
}

/* Detalhes */
.details-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.details-section h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: #4caf50;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #2a2a2a;
  border-radius: 8px;
  border: 1px solid #333;
}

.detail-label {
  color: #a0a0a0;
  font-size: 0.9rem;
}

.detail-value {
  color: #ffffff;
  font-weight: 600;
}

/* Responsividade específica */
@media (max-width: 768px) {
  .comparison-cards {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .selic-value {
    font-size: 1.6rem;
  }

  .savings-value {
    font-size: 1.5rem;
  }

  .option-card {
    padding: 20px;
  }

  .recommendation-card {
    padding: 20px;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .selic-info {
    margin-bottom: 20px;
  }

  .selic-card {
    padding: 15px;
  }

  .savings-display {
    gap: 4px;
  }

  .savings-value {
    font-size: 1.3rem;
  }

  .savings-percent {
    font-size: 1rem;
  }

  .option-card h3 {
    font-size: 1.1rem;
  }

  .recommendation-card h3 {
    font-size: 1.2rem;
  }
}
