/* Botões Modernos com Efeito Glow - Baseado nos códigos fornecidos */

/* Botão principal com efeito glow */
.glow-btn {
  position: relative;
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: #111;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 1;
  text-decoration: none;
  text-align: center;
  min-width: 160px;
}

.glow-btn:before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  animation: glowing 20s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  border-radius: 10px;
}

.glow-btn:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #111;
  z-index: -1;
  border-radius: 10px;
}

.glow-btn:hover:before {
  opacity: 1;
}

.glow-btn:active {
  color: #000;
  transform: scale(0.98);
}

.glow-btn:active:after {
  background: transparent;
}

@keyframes glowing {
  0% { background-position: 0 0; }
  50% { background-position: 400% 0; }
  100% { background-position: 0 0; }
}

/* Variações de cores para os botões */
.glow-btn.primary:after {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.glow-btn.primary:before {
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #667eea, #764ba2, #f093fb, #667eea);
}

.glow-btn.success:after {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.glow-btn.success:before {
  background: linear-gradient(45deg, #10b981, #059669, #34d399, #10b981, #059669, #34d399, #10b981);
}

.glow-btn.warning:after {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.glow-btn.warning:before {
  background: linear-gradient(45deg, #f59e0b, #d97706, #fbbf24, #f59e0b, #d97706, #fbbf24, #f59e0b);
}

.glow-btn.danger:after {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.glow-btn.danger:before {
  background: linear-gradient(45deg, #ef4444, #dc2626, #f87171, #ef4444, #dc2626, #f87171, #ef4444);
}

.glow-btn.info:after {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.glow-btn.info:before {
  background: linear-gradient(45deg, #06b6d4, #0891b2, #22d3ee, #06b6d4, #0891b2, #22d3ee, #06b6d4);
}

/* Tamanhos dos botões */
.glow-btn.small {
  padding: 8px 16px;
  font-size: 14px;
  min-width: 120px;
}

.glow-btn.large {
  padding: 16px 32px;
  font-size: 18px;
  min-width: 200px;
}

.glow-btn.full-width {
  width: 100%;
  min-width: auto;
}

/* Botões para o admin */
.admin-glow-btn {
  position: relative;
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: #2c3e50;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 1;
  margin: 4px;
  min-width: 140px;
}

.admin-glow-btn:before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #3498db, #9b59b6, #e74c3c, #f39c12, #2ecc71, #1abc9c);
  background-size: 300%;
  z-index: -1;
  filter: blur(3px);
  animation: admin-glowing 15s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  border-radius: 8px;
}

.admin-glow-btn:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #2c3e50;
  z-index: -1;
  border-radius: 8px;
}

.admin-glow-btn:hover:before {
  opacity: 1;
}

@keyframes admin-glowing {
  0% { background-position: 0 0; }
  50% { background-position: 300% 0; }
  100% { background-position: 0 0; }
}

/* Botões de ação específicos para o sistema de rifa */
.raffle-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #fff;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 1;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.raffle-btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s ease;
}

.raffle-btn:hover:before {
  left: 100%;
}

.raffle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

.raffle-btn i {
  margin-right: 8px;
  font-size: 1.1em;
}

/* Botão de participar */
.btn-participar {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-participar:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Botão de ver detalhes */
.btn-detalhes {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-detalhes:hover {
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

/* Botão de comprar */
.btn-comprar {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-comprar:hover {
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Responsividade para botões */
@media (max-width: 768px) {
  .glow-btn {
    padding: 10px 20px;
    font-size: 15px;
    min-width: 140px;
  }
  
  .glow-btn.small {
    padding: 6px 12px;
    font-size: 13px;
    min-width: 100px;
  }
  
  .glow-btn.large {
    padding: 14px 28px;
    font-size: 17px;
    min-width: 180px;
  }
  
  .raffle-btn {
    padding: 12px 24px;
    font-size: 15px;
  }
  
  .admin-glow-btn {
    padding: 8px 16px;
    font-size: 13px;
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .glow-btn {
    padding: 8px 16px;
    font-size: 14px;
    min-width: 120px;
  }
  
  .glow-btn.small {
    padding: 6px 10px;
    font-size: 12px;
    min-width: 90px;
  }
  
  .glow-btn.large {
    padding: 12px 24px;
    font-size: 16px;
    min-width: 160px;
  }
  
  .raffle-btn {
    padding: 10px 20px;
    font-size: 14px;
    letter-spacing: 0.5px;
  }
  
  .admin-glow-btn {
    padding: 6px 12px;
    font-size: 12px;
    min-width: 100px;
  }
}

/* Botões desabilitados */
.glow-btn:disabled,
.raffle-btn:disabled,
.admin-glow-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.glow-btn:disabled:before,
.raffle-btn:disabled:before,
.admin-glow-btn:disabled:before {
  display: none;
}

/* Grupo de botões */
.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .btn-group {
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .btn-group {
    flex-direction: column;
    gap: 12px;
  }
  
  .btn-group .glow-btn,
  .btn-group .raffle-btn {
    width: 100%;
  }
}

/* Efeitos especiais para botões de destaque */
.glow-btn.featured {
  position: relative;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.8), 0 0 30px rgba(102, 126, 234, 0.6);
  }
}

/* Botão flutuante */
.floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
}

.floating-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

@media (max-width: 768px) {
  .floating-btn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

