/* ═══════════════════════════════════════════════════
   DebtView — porquinho.css
   ═══════════════════════════════════════════════════ */

:root {
  --amber-glow: rgba(245, 166, 35, 0.15);
}

/* ── HERO AMBER ──────────────────────────────────── */
.hero-amber::after {
  background: radial-gradient(circle, rgba(245, 166, 35, 0.13) 0%, transparent 70%) !important;
}
.hero-total.amber {
  color: var(--amber) !important;
  text-shadow: 0 0 60px rgba(245, 166, 35, 0.35) !important;
}
.hero-section.hero-amber { border-color: rgba(245, 166, 35, 0.15); }

.piggy-hero-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.piggy-icon-giant {
  font-size: 80px;
  line-height: 1;
  animation: piggyFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(245,166,35,0.3));
  flex-shrink: 0;
}

@keyframes piggyFloat {
  0%, 100% { transform: translateY(0px) rotate(-3deg); }
  50%       { transform: translateY(-8px) rotate(3deg); }
}

/* ── FRASE MOTIVACIONAL ──────────────────────────── */
.motive-phrase {
  margin-top: 20px;
  font-size: 13px;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  line-height: 1.5;
  border-left: 3px solid rgba(245, 166, 35, 0.4);
  padding-left: 14px;
  transition: opacity 0.4s ease;
}

/* ── META PROGRESS ───────────────────────────────── */
.meta-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 12px;
  font-family: 'DM Mono', monospace;
  color: var(--text-muted);
}
.meta-bar-pct { color: var(--amber); font-weight: 500; }
.meta-bar-track {
  height: 6px;
  background: rgba(245,166,35,0.12);
  border-radius: 999px;
  overflow: hidden;
}
.meta-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #c47a00, var(--amber), #ffd166);
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
.meta-bar-fill::after {
  content: '';
  position: absolute;
  right: -2px; top: -2px;
  width: 10px; height: 10px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(245,166,35,0.8);
}

/* ── LIQUID ANIMATION ────────────────────────────── */
.liquid-container {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(39,196,122,0.08);
  border: 2px solid rgba(39,196,122,0.25);
  flex-shrink: 0;
}

/* Tamanhos */
.liquid-container.liquid-sm { width: 54px; height: 54px; }
.liquid-container.liquid-md { width: 80px; height: 80px; }
.liquid-container          { width: 54px; height: 54px; } /* default = sm */

.liquid-fill {
  position: absolute;
  bottom: 0;
  left: -10%;
  width: 120%;
  height: var(--liquid-pct, 0%);
  background: linear-gradient(180deg, rgba(39,196,122,0.7) 0%, rgba(39,196,122,0.95) 100%);
  transition: height 1.2s cubic-bezier(0.34, 1.2, 0.64, 1);
  border-radius: 40% 40% 0 0;
}

.liquid-wave {
  position: absolute;
  bottom: calc(var(--liquid-pct, 0%) - 6px);
  left: -80%;
  width: 260%;
  height: 12px;
  background: rgba(39,196,122,0.5);
  border-radius: 40%;
  animation: waveMove 2.4s ease-in-out infinite;
  pointer-events: none;
  transition: bottom 1.2s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@keyframes waveMove {
  0%   { transform: translateX(0) scaleY(1); }
  50%  { transform: translateX(15%) scaleY(1.3); }
  100% { transform: translateX(0) scaleY(1); }
}

.liquid-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-weight: 500;
  color: var(--text);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  z-index: 2;
}
.liquid-container.liquid-sm .liquid-label { font-size: 10px; }
.liquid-container.liquid-md .liquid-label { font-size: 14px; }

/* ── COBERTURA NO CARD ───────────────────────────── */
.cobertura-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}
.cobertura-label {
  font-size: 10px;
  color: var(--text-muted);
  font-family: 'DM Mono', monospace;
  text-align: center;
  line-height: 1.3;
}
.cobertura-label span {
  color: var(--text-dim);
  font-size: 9px;
}

/* ── DESTINAR LIQUID WRAP ────────────────────────── */
.destinar-liquid-wrap {
  display: flex;
  gap: 20px;
  align-items: center;
  background: rgba(39,196,122,0.06);
  border: 1px solid rgba(39,196,122,0.18);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 16px 0;
  animation: fadeIn 0.3s ease;
}

.destinar-liquid-info { flex: 1; }
.dli-title  { font-weight: 600; font-size: 15px; color: var(--text); margin-bottom: 4px; }
.dli-total  { font-size: 12px; color: var(--text-muted); font-family: 'DM Mono', monospace; }
.dli-cobre  { font-size: 13px; color: var(--text-dim); margin-top: 6px; }
.dli-cobre strong { color: var(--green); }
.dli-badge  {
  margin-top: 8px;
  display: inline-block;
  background: rgba(39,196,122,0.15);
  border: 1px solid rgba(39,196,122,0.3);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
}

/* ── DESTINO PREVIEW (modal depositar) ───────────── */
.destino-preview {
  margin-top: 10px;
  padding: 14px 16px;
  background: rgba(39,196,122,0.07);
  border: 1px solid rgba(39,196,122,0.2);
  border-radius: 12px;
  animation: fadeIn 0.25s ease;
}
.dp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.dp-text { flex: 1; }
.dp-name  { font-weight: 600; font-size: 14px; color: var(--green); margin-bottom: 3px; }
.dp-saldo { font-size: 12px; color: var(--text-muted); font-family: 'DM Mono', monospace; }
.dp-quita {
  margin-top: 6px;
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
}
.dp-liquid-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.dp-pct-label {
  font-size: 10px;
  color: var(--text-muted);
  font-family: 'DM Mono', monospace;
  text-align: center;
  line-height: 1.3;
}

/* ── STAT AMBER ──────────────────────────────────── */
.stat-value.amber { color: var(--amber); }

/* ── BTN AMBER ───────────────────────────────────── */
.btn-amber {
  background: var(--amber);
  color: #0d0d0f;
  font-weight: 700;
  border: none;
}
.btn-amber:hover {
  background: #ffd166;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.4);
}

/* ── BTN GREEN ───────────────────────────────────── */
.btn-green {
  background: var(--green);
  color: #0d0d0f;
  font-weight: 700;
  border: none;
}
.btn-green:hover {
  background: #35e090;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(39,196,122,0.35);
}

/* ── ALERTA SUGESTÃO ─────────────────────────────── */
.alerta-sugestao {
  margin-top: 12px;
  padding: 10px 13px;
  background: rgba(124,92,252,0.1);
  border: 1px solid rgba(124,92,252,0.25);
  border-radius: 9px;
  font-size: 12px;
  color: var(--accent);
  line-height: 1.5;
  cursor: pointer;
  transition: background 0.2s;
}
.alerta-sugestao:hover { background: rgba(124,92,252,0.18); }
.alerta-sugestao strong { display: block; margin-bottom: 3px; font-weight: 600; }

/* ── DEPOSIT CARD ────────────────────────────────── */
.deposit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 16px;
  align-items: center;
  animation: cardIn 0.35s ease both;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.deposit-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
  background: var(--amber);
  opacity: 0.8;
}
.deposit-card.destinado::before { background: var(--green); }
.deposit-card.resgatado::before  { background: var(--red); }
.deposit-card:hover { border-color: rgba(245,166,35,0.3); transform: translateY(-2px); }
.deposit-card.destinado:hover { border-color: rgba(39,196,122,0.3); }
.deposit-card.resgatado:hover  { border-color: rgba(232,53,74,0.2); }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.deposit-badge {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.deposit-info { min-width: 0; }
.deposit-desc {
  font-size: 15px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.deposit-meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 5px;
}
.deposit-meta span {
  font-size: 12px; color: var(--text-muted);
  font-family: 'DM Mono', monospace; white-space: nowrap;
}
.deposit-numbers {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
}
.deposit-amount {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px; color: var(--amber);
  letter-spacing: 0.5px; line-height: 1;
}
.deposit-card.destinado .deposit-amount { color: var(--green); }
.deposit-card.resgatado  .deposit-amount { color: var(--red); }

/* ── BADGES ──────────────────────────────────────── */
.badge-cofre {
  background: rgba(245,166,35,0.12); color: var(--amber);
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: 6px; font-size: 11px;
  font-family: 'DM Mono', monospace; padding: 3px 8px; white-space: nowrap;
}
.badge-destinado {
  background: rgba(39,196,122,0.12); color: var(--green);
  border: 1px solid rgba(39,196,122,0.3);
  border-radius: 6px; font-size: 11px;
  font-family: 'DM Mono', monospace; padding: 3px 8px; white-space: nowrap;
}
.badge-resgatado {
  background: rgba(232,53,74,0.1); color: var(--red);
  border: 1px solid rgba(232,53,74,0.25);
  border-radius: 6px; font-size: 11px;
  font-family: 'DM Mono', monospace; padding: 3px 8px; white-space: nowrap;
}

/* ── MODAL DEPOSITAR ─────────────────────────────── */
.deposit-motive {
  background: linear-gradient(135deg, rgba(245,166,35,0.08), rgba(245,166,35,0.03));
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px; font-style: italic;
  color: var(--amber); line-height: 1.5; text-align: center;
}

/* ── RESGATE WARN ────────────────────────────────── */
.resgate-warn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: rgba(232,53,74,0.08);
  border: 1px solid rgba(232,53,74,0.25);
  border-radius: 10px;
  font-size: 13px; color: var(--red); font-weight: 500;
}

/* ── FADE ANIM ───────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 600px) {
  .deposit-card {
    grid-template-columns: 40px 1fr;
    gap: 10px 12px; padding: 14px;
  }
  .deposit-numbers {
    grid-column: 1 / -1;
    flex-direction: row; align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 10px; margin-top: 2px;
  }
  .deposit-amount  { font-size: 22px; }
  .deposit-desc    { font-size: 14px; }
  .deposit-meta span { font-size: 11px; }
  .piggy-icon-giant { font-size: 56px; }
  .hero-total.amber { font-size: 56px !important; }
  .piggy-hero-wrap  { gap: 16px; }
  .destinar-liquid-wrap { flex-direction: column; text-align: center; }
  .destinar-liquid-info { text-align: center; }
  .dp-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .dp-liquid-wrap { align-self: flex-end; }
}
