/* ========== PÁGINA DE LEILÃO ========== */
.leilao-header {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
}

.leilao-tag {
  display: inline-block;
  background: var(--blue-500);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ========== ALERTA DE STATUS DO LEILÃO ========== */
.leilao-alerta {
  background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
  border: 3px solid #f39c12;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
  animation: pulse-alert 2s ease-in-out infinite;
}

.leilao-alerta.leilao-aberto {
  background: linear-gradient(135deg, #55efc4 0%, #00b894 100%);
  border-color: #00b894;
  box-shadow: 0 4px 12px rgba(0, 184, 148, 0.3);
}

.leilao-alerta.leilao-encerrado {
  background: linear-gradient(135deg, #fab1a0 0%, #ff7675 100%);
  border-color: #d63031;
  box-shadow: 0 4px 12px rgba(214, 48, 49, 0.3);
  animation: none;
}

.alerta-icone {
  font-size: 3rem;
  min-width: 60px;
  text-align: center;
  animation: rotate-icon 3s ease-in-out infinite;
}

.leilao-alerta.leilao-aberto .alerta-icone {
  animation: bounce-icon 1s ease-in-out infinite;
}

.leilao-alerta.leilao-encerrado .alerta-icone {
  animation: none;
}

.alerta-conteudo {
  flex: 1;
}

.alerta-titulo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2d3436;
  margin: 0 0 0.5rem;
}

.alerta-mensagem {
  font-size: 1.1rem;
  color: #2d3436;
  margin: 0.5rem 0;
  line-height: 1.5;
}

.alerta-mensagem strong {
  font-weight: 700;
  color: #000;
}

.alerta-submensagem {
  font-size: 0.95rem;
  color: #636e72;
  margin: 0.5rem 0 0;
}

@keyframes pulse-alert {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@keyframes rotate-icon {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-10deg);
  }
  75% {
    transform: rotate(10deg);
  }
}

@keyframes bounce-icon {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.leilao-header h1 {
  color: var(--blue-900);
  font-size: 2.2rem;
  margin: 0.5rem 0;
}

.leilao-subtitle {
  color: var(--blue-700);
  font-size: 1.1rem;
  margin: 0.5rem 0 0;
}

.leilao-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 2rem 0;
}

/* Coluna da Imagem */
.leilao-imagem-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.leilao-imagem-principal {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(7, 43, 79, 0.1);
}

.leilao-imagem-principal img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.leilao-video-container {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(7, 43, 79, 0.1);
  margin-top: 1rem;
  display: none;
}

.leilao-video-container.active {
  display: block;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.leilao-galeria {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.leilao-galeria .thumb {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
}

.leilao-galeria .thumb:hover {
  border-color: var(--blue-300);
  transform: scale(1.05);
}

.leilao-galeria .thumb.active {
  border-color: var(--blue-500);
}

/* Coluna de Informações */
.leilao-info-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.leilao-lance-atual {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(42, 135, 198, 0.3);
}

.lance-label {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lance-valor {
  font-size: 3rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.lance-info {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-top: 0.5rem;
}

.leilao-descricao {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(7, 43, 79, 0.08);
}

.leilao-descricao h2 {
  color: var(--blue-900);
  margin-top: 0;
  font-size: 1.5rem;
}

.leilao-descricao h3 {
  color: var(--blue-700);
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.leilao-descricao p {
  color: #555;
  line-height: 1.7;
}

.leilao-descricao ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.leilao-descricao ul li {
  padding: 0.5rem 0;
  color: #444;
  font-size: 1rem;
}

.leilao-form {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(7, 43, 79, 0.08);
}

.leilao-form h3 {
  color: var(--blue-900);
  margin-top: 0;
  font-size: 1.3rem;
}

.info-usuario {
  background: #e3f2fd;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: none;
  color: var(--blue-900);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  color: var(--blue-900);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--blue-500);
}

.btn-dar-lance {
  width: 100%;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-dar-lance:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-dar-lance:active {
  transform: translateY(0);
}

.leilao-contato {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #eee;
  text-align: center;
  color: #666;
  font-size: 0.95rem;
}

.leilao-contato p {
  margin: 0.5rem 0;
}

/* Histórico de Lances */
.leilao-lances {
  margin-top: 3rem;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(7, 43, 79, 0.08);
}

.leilao-lances h2 {
  color: var(--blue-900);
  margin-top: 0;
  font-size: 1.5rem;
}

.lances-lista {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.lance-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid var(--blue-500);
}

.lance-item:first-child {
  background: linear-gradient(90deg, #fff3cd, #f8f9fa);
  border-left-color: #ffc107;
}

.lance-usuario {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lance-posicao {
  background: var(--blue-500);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.lance-item:first-child .lance-posicao {
  background: #ffc107;
  color: #000;
}

.lance-dados {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

.lance-valor-lista {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-900);
}

.lance-tempo {
  font-size: 0.85rem;
  color: #666;
}

/* Responsividade */
@media(max-width: 900px) {
  .leilao-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .leilao-header h1 {
    font-size: 1.8rem;
  }
  
  .lance-valor {
    font-size: 2.5rem;
  }
  
  .leilao-imagem-principal img {
    height: 400px;
  }
}

@media(max-width: 600px) {
  .leilao-galeria {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .lance-item {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .lance-dados {
    align-items: center;
  }
}

/* Contador Regressivo */
.contador-regressivo {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px dashed #e3f2fd;
}

.contador-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #0b4f8a 0%, #072b4f 100%);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  min-width: 80px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contador-item.hidden {
  display: none;
}

.contador-numero {
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  line-height: 1;
}

.contador-texto {
  font-size: 0.75rem;
  color: #6fb2e0;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Compartilhar */
.compartilhar-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f2f9ff;
  border-radius: 12px;
  border-left: 4px solid #2a87c6;
}

.compartilhar-section h3 {
  margin-top: 0;
  color: #072b4f;
  font-size: 1.2rem;
}

.compartilhar-botoes {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn-compartilhar {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  flex: 1;
  min-width: 140px;
}

.btn-compartilhar.whatsapp {
  background: #25D366;
  color: white;
}

.btn-compartilhar.whatsapp:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-compartilhar.facebook {
  background: #1877F2;
  color: white;
}

.btn-compartilhar.facebook:hover {
  background: #145dbf;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.btn-compartilhar.link {
  background: #6fb2e0;
  color: white;
}

.btn-compartilhar.link:hover {
  background: #2a87c6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(111, 178, 224, 0.3);
}

/* Características Lista */
.caracteristicas-lista {
  list-style: none;
  padding: 0;
}

.caracteristicas-lista li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e3f2fd;
}

.caracteristicas-lista li:last-child {
  border-bottom: none;
}

/* FAQ */
.leilao-faq {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(7, 43, 79, 0.1);
}

.leilao-faq h2 {
  text-align: center;
  color: #072b4f;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.faq-lista {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 2px solid #e3f2fd;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #6fb2e0;
  box-shadow: 0 4px 12px rgba(111, 178, 224, 0.2);
}

.faq-pergunta {
  width: 100%;
  background: linear-gradient(135deg, #f2f9ff 0%, #e3f2fd 100%);
  border: none;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: #072b4f;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-pergunta:hover {
  background: linear-gradient(135deg, #e3f2fd 0%, #d4e9f7 100%);
}

.faq-icone {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2a87c6;
  transition: transform 0.3s ease;
}

.faq-item.ativo .faq-icone {
  transform: rotate(45deg);
}

.faq-resposta {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: white;
}

.faq-item.ativo .faq-resposta {
  max-height: 500px;
  padding: 1.5rem;
}

.faq-resposta p {
  margin: 0;
  color: #333;
  line-height: 1.6;
}

/* Responsividade Mobile Adicional */
@media (max-width: 768px) {
  .leilao-alerta {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
    gap: 1rem;
  }
  
  .alerta-icone {
    font-size: 2.5rem;
    min-width: auto;
  }
  
  .alerta-titulo {
    font-size: 1.3rem;
  }
  
  .alerta-mensagem {
    font-size: 1rem;
  }
  
  .alerta-submensagem {
    font-size: 0.9rem;
  }

  .contador-regressivo {
    gap: 0.5rem;
  }

  .contador-item {
    padding: 0.75rem 1rem;
    min-width: 70px;
  }

  .contador-numero {
    font-size: 1.5rem;
  }

  .contador-texto {
    font-size: 0.65rem;
  }

  .compartilhar-botoes {
    flex-direction: column;
  }

  .btn-compartilhar {
    width: 100%;
  }

  .leilao-faq {
    padding: 1.5rem;
    margin: 2rem 1rem;
  }

  .faq-pergunta {
    font-size: 1rem;
    padding: 1rem;
  }
}
