/* ======================================================
   CÂMBIOS — BANCO SOL (VERSÃO FINAL PREMIUM)
   ====================================================== */

:root {
  --sol-yellow: #FFD200;
  --sol-yellow-soft: rgba(255,210,0,.12);
  --sol-green: #2e7d32;
  --sol-red: #c62828;

  --text-main: #111111;
  --text-muted: #6b7280;
}

/* ======================================================
   SECÇÃO
   ====================================================== */

.cambio-section {
  padding: 70px 0;
  background: #f4f6f8;
}

/* ======================================================
   HEADER
   ====================================================== */

.cambio-header {
  max-width: 1200px;
  margin: 0 auto 40px auto;
}

.cambio-header h2 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  color: var(--text-main);
}

.cambio-header p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cambio-updated {
  display: inline-block;
  font-size: 13px;
  color: var(--text-muted);
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
}

/* ======================================================
   LAYOUT
   ====================================================== */

.cambio-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 30px;
  align-items: flex-start;
}

/* ======================================================
   CARDS
   ====================================================== */

.cambio-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 15px 40px rgba(0,0,0,.05);
  height: fit-content;
}

.cambio-card:first-child {
  border: 2px solid var(--sol-yellow);
}

.cambio-card:last-child {
  border: 1px solid #eeeeee;
}

.cambio-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
}

/* ======================================================
   CALCULADORA
   ====================================================== */

.cambio-row {
  display: grid;
  grid-template-columns: 1fr 50px 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.cambio-row select,
.cambio-card input {
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  width: 100%;
}

.swap-btn {
  background: var(--sol-yellow);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease;
}

.swap-btn:hover {
  transform: rotate(180deg);
}

#result {
  margin-top: 14px;
  min-height: 48px;
  font-size: 20px;
  font-weight: 900;
  background: #f9fafb;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#useRates {
  margin-top: 18px;
  width: 100%;
  height: 50px;
  background: var(--sol-yellow);
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all .2s ease;
}

#useRates:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

/* ======================================================
   TABELA
   ====================================================== */

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  padding: 14px 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
}

tbody td {
  padding: 14px 8px;
  border-top: 1px solid #f1f1f1;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

tbody tr {
  transition: background .2s ease;
}

tbody tr:hover {
  background: #fafafa;
}

/* ======================================================
   AOA BASE
   ====================================================== */

tr.aoa-base {
  background: var(--sol-yellow-soft);
  border-top: 2px solid var(--sol-yellow);
  border-bottom: 2px solid var(--sol-yellow);
}

tr.aoa-base td {
  font-weight: 900;
}

/* ======================================================
   ANIMAÇÃO DE VARIAÇÕES
   ====================================================== */

.rate {
  transition: all .4s ease;
}

.rate-up {
  color: var(--sol-green);
  animation: fadeUp .4s ease;
}

.rate-down {
  color: var(--sol-red);
  animation: fadeDown .4s ease;
}

@keyframes fadeUp {
  from { transform: translateY(4px); opacity: .6; }
  to   { transform: translateY(0); opacity: 1; }
}

@keyframes fadeDown {
  from { transform: translateY(-4px); opacity: .6; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ======================================================
   BOTÃO VER MAIS
   ====================================================== */

.cambio-actions {
  margin-top: 20px;
  text-align: center;
}

.btn-ver-mais {
  background: transparent;
  border: 1px solid #e5e7eb;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}

.btn-ver-mais:hover {
  background: var(--sol-yellow-soft);
  border-color: var(--sol-yellow);
}

/* ======================================================
   RESPONSIVO
   ====================================================== */

@media (max-width: 992px) {
  .cambio-wrapper {
    grid-template-columns: 1fr;
  }
}
