/**
 * Estilos para Placas Brasileiras Realistas
 * - Placa Mercosul (azul com bandeira)
 * - Placa Antiga (cinza)
 */

/* Container de placas */
.plate-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

/* Base comum para todas as placas */
.brazilian-plate {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #000;
  border-radius: 8px;
  padding: 8px 16px;
  font-family: 'Courier New', monospace;
  font-weight: 900;
  font-size: 32px;
  letter-spacing: 4px;
  text-transform: uppercase;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  min-width: 240px;
  height: 80px;
}

/* Placa Mercosul (azul com bandeira) */
.brazilian-plate.mercosul {
  background: linear-gradient(to bottom, 
    #1e40af 0%, 
    #1e40af 30%, 
    #ffffff 30%, 
    #ffffff 100%
  );
  color: #000;
}

.brazilian-plate.mercosul::before {
  content: 'BRASIL';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2px;
}

.brazilian-plate.mercosul::after {
  content: '🇧🇷';
  position: absolute;
  top: 2px;
  right: 8px;
  font-size: 16px;
}

.brazilian-plate.mercosul .plate-text {
  margin-top: 18px;
}

/* Placa Antiga (cinza) */
.brazilian-plate.old {
  background: linear-gradient(to bottom, 
    #d1d5db 0%, 
    #e5e7eb 50%, 
    #d1d5db 100%
  );
  color: #000;
  border-color: #6b7280;
}

.brazilian-plate.old .plate-text {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Texto da placa */
.plate-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Traço separador */
.plate-separator {
  margin: 0 2px;
  font-weight: 400;
}

/* Label abaixo da placa */
.plate-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  margin-top: 4px;
  text-align: center;
  width: 100%;
}

.plate-label.mercosul {
  color: #1e40af;
}

.plate-label.old {
  color: #6b7280;
}

/* Seta de conversão */
.plate-conversion-arrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #9ca3af;
  margin-left: 12px;
}

.plate-conversion-arrow i {
  font-size: 18px;
}

/* Responsivo */
@media (max-width: 640px) {
  .brazilian-plate {
    font-size: 24px;
    min-width: 200px;
    height: 65px;
    padding: 6px 12px;
    letter-spacing: 2px;
  }
  
  .brazilian-plate.mercosul::before {
    font-size: 8px;
    top: 3px;
  }
  
  .brazilian-plate.mercosul::after {
    font-size: 14px;
    top: 1px;
    right: 6px;
  }
  
  .brazilian-plate.mercosul .plate-text {
    margin-top: 14px;
  }
}

/* Animação hover */
.brazilian-plate {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brazilian-plate:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Container com ambas as placas */
.dual-plate-display {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.dual-plate-display .plate-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.dual-plate-display .plate-item.secondary {
  opacity: 0.85;
}

.dual-plate-display .plate-item.secondary .brazilian-plate {
  transform: scale(0.9);
}

/* Badge de tipo */
.plate-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plate-type-badge.mercosul {
  background: #dbeafe;
  color: #1e40af;
}

.plate-type-badge.old {
  background: #f3f4f6;
  color: #6b7280;
}

.plate-type-badge.equivalent {
  background: #fef3c7;
  color: #92400e;
}
