/* ============================================================================
   COMPONENTS.CSS - Componentes diversos (cards, ícones, animações, notificações)
   ============================================================================ */

/* --- CARD DE INFORMAÇÃO (branco com arredondado) --- */
.landing-info-card {
  background: #fff;
  border-radius: 14px;
  margin: 12px 22px 20px;
  padding: 6px 18px;
  display: flex;
  flex-direction: column;
}

/* Linha dentro do card (ícone + texto) */
.landing-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
}

/* Ícone no card (azul escuro) */
.landing-info-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #000D3C;
}

/* Wrapper para texto (principais + subtítulos) */
.landing-info-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Linha de texto padrão (bold) */
.landing-info-line {
  color: #000;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.25rem;
}

/* Variante: texto secundário (cinza claro) */
.landing-info-line--muted {
  font-weight: 400;
  color: #6b7280;
}

/* Variante: valor grande (laranja, font Display) */
.landing-info-line--value {
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 2.25rem;
  color: #ff6200;
}

/* Ícone com cor brand (laranja) */
.landing-info-icon--brand {
  color: #ff6200;
}

/* Variante: card com fundo gradiente brand (laranja suave) */
.landing-info-card--brand {
  background: linear-gradient(135deg, rgba(255, 98, 0, 0.07), rgba(255, 98, 0, 0.02));
  border: 1px solid rgba(255, 98, 0, 0.18);
}

/* Dividor entre linhas do card */
.landing-info-divider {
  height: 1px;
  background: var(--border);
}

/* --- ÍCONE HERO COM ANIMAÇÃO PULSANTE --- */
.hero-icon-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Anel de pulso (animação ao redor do ícone) */
.hero-icon-ping {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #CC000066;
  opacity: 0;
  animation: hero-icon-ping 3.1s ease-out infinite;
}

/* Delays para efeito cascata (3 anéis) */
.hero-icon-ping--2 {
  animation-delay: 0.7s;
}

.hero-icon-ping--3 {
  animation-delay: 1.4s;
}

/* Variante: anel em cor brand (laranja) */
.hero-icon-ping--brand {
  background: #ff620066;
}

/* Animação: expande e desaparece */
@keyframes hero-icon-ping {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Ícone SVG centralizado no topo */
.hero-icon {
  position: relative;
  z-index: 1;
  width: 48px;
  height: auto;
  display: block;
}

/* Variante: ícone em cor brand (laranja) */
.hero-icon--brand {
  color: #ff6200;
  stroke-width: 1.25;
}

/* --- AVISOS/NOTICES DE IDENTIDADE (com ícone + texto) --- */
.identity-notices {
  display: flex;
  flex-direction: column;
}

/* Linha individual de aviso */
.identity-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
}

/* Ícone do aviso (user, shield) */
.identity-notice-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: #000D3C;
}

/* Dividor entre avisos */
.identity-notice-divider {
  height: 1px;
  background: #b5b8c0;
}

/* --- NOTIFICAÇÃO TOAST (desliza pra cima no topo) --- */
.step-back-toast {
  position: fixed;
  z-index: 1000;
  top: 16px;
  left: 50%;
  transform: translate(-50%, -8px);
  max-width: calc(100% - 32px);
  background: #1a1d23;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

/* Toast com classe "show" - aparece */
.step-back-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* --- MAPA INTERATIVO (tiles OSM com pin e badge) --- */
.landing-map {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #e5e3df;
}

/* Grid de tiles do mapa (3x3 tiles de OpenStreetMap) */
.landing-map-tiles {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(3, 256px);
  grid-template-rows: repeat(3, 256px);
}

/* Imagem individual do tile */
.landing-map-tiles img {
  width: 256px;
  height: 256px;
  display: block;
}

/* Badge info acima do pin (localização + data) */
.landing-map-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-100% - 20px));
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  z-index: 2;
}

/* Seta apontando pra baixo do badge */
.landing-map-badge::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #fff;
}

/* Texto de localização no badge */
.landing-map-location {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

/* Subtexto do badge (data/hora) */
.landing-map-caption {
  margin-top: 2px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* Pin/marcador azul no centro do mapa */
.landing-map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  background: var(--primary);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Ícone centralizado (emoji) */
.center-icon {
  font-size: 48px;
  text-align: center;
}

/* --- NOTIFICAÇÃO DE ERRO (toast no rodapé) --- */
.toast-error {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #333A90;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  animation: slideUp 0.3s ease-out;
}

/* Animação: desliza pra cima de baixo (entrada suave) */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* --- TELA DE CARREGAMENTO (progress bar) --- */
.progress-container {
  margin: 40px 0;
  text-align: center;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #f0f0f0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ff69b4, #ff1493);
  border-radius: 2px;
  transition: width 2s ease-in-out;
}

.progress-text {
  color: #666;
  font-size: 14px;
  margin-top: 10px;
}

/* --- TELA DE PONTOS --- */
.points-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  align-items: flex-start;
  background: var(--primary);
  border-radius: 12px;
  padding: 12px 24px;
  margin-top: 1rem;
}

.points-logo {
  max-width: 170px;
  height: auto;
  margin: 0;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
}

.hero-content p strong {
  font-weight: 600;
  color: #fff;
}

.points-value-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  width: 100%;
}

.points-value-container svg {
  width: 40px;
  height: auto;
  stroke: #fff;
}

.container.tela .hero-content p {
  font-size: 17px;
  color: rgba(81, 80, 80, 0.9);
  margin: 0;
  font-weight: 400;
}

.points-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  color: var(--primary);
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
}

.points-value {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.points-info-wrapper .hero-title {
  color: #fff;
}

.points-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: #fff !important;
  margin-top: -10px !important;
  text-align: left;
}

/* Melhoria geral do spacing na tela de pontos */
.card--plain .hero-content {
  height: 100%;
  justify-content: flex-start;
  padding-bottom: 0;
}
