@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Cormorant+Garamond:ital,wght@0,600;1,500;1,600&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  /* Azul mariano — do mockup do Claude Design */
  --blue-deep:   #1c2747;
  --blue:        #2d3f6e;
  --blue-mid:    #3d5590;
  /* Dourado litúrgico */
  --gold:        #c99a3e;
  --gold-light:  #d9b567;
  --gold-dark:   #a97c1f;
  /* Acentos funcionais */
  --whatsapp:    #1b2e22;
  --red-live:    #d64545;
  --red-soft:    #b4544a;
  --bg:          #f4f5f8;
  --card:        #ffffff;
  --font-display: 'Cormorant Garamond', serif;
  --border:      #e4e6ee;
  --text:        #232a42;
  --text-soft:   #6b7280;
  --white:       #ffffff;
  --radius-lg:   22px;
  --radius-md:   14px;
  --radius-sm:   10px;
  --shadow:      0 10px 28px rgba(28,39,71,0.10);
  --shadow-lg:   0 20px 60px rgba(28,39,71,0.22);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* BUTTONS (compartilhados) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--blue-deep); box-shadow: 0 4px 16px rgba(201,154,62,0.4); }
.btn-gold:hover { transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.25); color: white; }
.btn-ghost:hover { background: rgba(255,255,255,0.22); }
.btn-blue { background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: white; box-shadow: 0 4px 16px rgba(28,39,71,0.35); }
.btn-blue:hover { transform: translateY(-2px); }
.btn-sm { padding: 7px 16px; font-size: 0.8rem; }
.btn-lg { padding: 15px 32px; font-size: 0.96rem; }
.btn-danger { background: #dc2626; color: white; }
.btn-danger:hover { background: #b91c1c; }

/* UTILITIES */
.hidden { display: none !important; }
.icon { display: inline-flex; align-items: center; flex-shrink: 0; }
.icon svg { display: block; }

.loading-state { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 60px; color: var(--text-soft); font-size: 0.9rem; }
.spinner { width: 26px; height: 26px; border: 3px solid var(--border); border-top-color: var(--blue); border-radius: 50%; animation: spin 0.7s linear infinite; }

.empty-state { text-align: center; padding: 60px 24px; }
.empty-icon  { display: block; margin: 0 auto 16px; opacity: 0.35; }
.empty-state h3 { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; font-weight: 600; color: var(--blue); margin-bottom: 6px; }
.empty-state p  { color: var(--text-soft); font-size: 0.88rem; }

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 20px;
  border-radius: 14px;
  color: white;
  font-weight: 600;
  font-size: 0.86rem;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 90vw;
  animation: slideUp 0.3s ease;
}
.toast.success { background: linear-gradient(135deg, #16a34a, #15803d); }
.toast.error   { background: linear-gradient(135deg, #dc2626, #b91c1c); }

@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp  { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes pageIn   { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* TRANSIÇÃO DE ENTRADA — cada tela aparece com um leve fade + subida */
.app-shell { animation: pageIn 0.3s ease both; }

/* FEEDBACK DE TOQUE — resposta tátil em elementos clicáveis */
.quick-icon-tile, .cta-solid, .cta-whatsapp, .rv-card, .podcast-item,
.destaque-card, .check-pill, .app-bottomnav a, .install-banner-btn {
  transition: transform 0.15s ease;
}
.quick-icon-tile:active, .cta-solid:active, .cta-whatsapp:active, .rv-card:active,
.podcast-item:active, .destaque-card:active, .check-pill:active, .app-bottomnav a:active,
.install-banner-btn:active, .btn:active {
  transform: scale(0.94);
}

/* ENTRADA ESCALONADA — listas (avisos, destaques) sobem uma a uma */
.avisos-list > *, .destaques-row > * {
  animation: fadeInUp 0.35s ease both;
}
.avisos-list > *:nth-child(1), .destaques-row > *:nth-child(1) { animation-delay: 0.02s; }
.avisos-list > *:nth-child(2), .destaques-row > *:nth-child(2) { animation-delay: 0.08s; }
.avisos-list > *:nth-child(3), .destaques-row > *:nth-child(3) { animation-delay: 0.14s; }
.avisos-list > *:nth-child(4), .destaques-row > *:nth-child(4) { animation-delay: 0.2s; }
.avisos-list > *:nth-child(5), .destaques-row > *:nth-child(5) { animation-delay: 0.26s; }
.avisos-list > *:nth-child(n+6) { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
