/* ============================================================================
   PULSAR - Estilos de Eventos Esportivos v1.0
   Design neon-fosco com tema de futebol brasileiro
   ============================================================================ */

#sports-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
  margin-top: 2rem;
}

.sports-card {
  background: linear-gradient(135deg, rgba(20, 40, 20, 0.95) 0%, rgba(20, 20, 40, 0.95) 100%);
  border-radius: 20px;
  padding: 1.5rem;
  border: 2px solid rgba(0, 255, 127, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 127, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.sports-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00FF7F 0%, #00E0FF 50%, #00FF7F 100%);
  background-size: 200% 100%;
  animation: gradientSlide 3s ease infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sports-card:hover::before {
  opacity: 1;
}

.sports-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(0, 255, 127, 0.6);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 255, 127, 0.3);
}

.sports-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 255, 127, 0.2);
}

.league-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(0, 255, 127, 0.2) 0%, rgba(0, 224, 255, 0.2) 100%);
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 127, 0.3);
  font-size: 0.85rem;
  font-weight: 600;
  color: #00FF7F;
  text-shadow: 0 0 10px rgba(0, 255, 127, 0.5);
}

.league-badge span:first-child {
  font-size: 1.2rem;
  filter: drop-shadow(0 0 5px rgba(0, 255, 127, 0.8));
}

.event-date {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.sports-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 40, 0, 0.3) 100%);
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 127, 0.1);
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.team img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid rgba(0, 255, 127, 0.3);
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 255, 127, 0.2);
  transition: all 0.3s ease;
}

.team:hover img {
  transform: scale(1.1) rotate(5deg);
  border-color: rgba(0, 255, 127, 0.6);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 255, 127, 0.4);
}

.team-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(142, 45, 226, 0.3) 0%, rgba(0, 224, 255, 0.3) 100%);
  border-radius: 50%;
  border: 2px solid rgba(0, 255, 127, 0.4);
  box-shadow: 0 0 20px rgba(0, 255, 127, 0.3);
}

.vs-text {
  font-weight: 900;
  font-size: 1rem;
  color: #00FF7F;
  text-shadow: 0 0 10px rgba(0, 255, 127, 0.8), 0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}

.sports-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 255, 127, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.location-icon {
  font-size: 1.1rem;
  filter: drop-shadow(0 0 5px rgba(0, 224, 255, 0.6));
}

.sports-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.sports-btn {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sports-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: left 0.5s ease;
}

.sports-btn:hover::before {
  left: 100%;
}

.btn-chat {
  background: linear-gradient(135deg, #8E2DE2 0%, #4A00E0 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(142, 45, 226, 0.3);
}

.btn-chat:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(142, 45, 226, 0.5);
}

.btn-weather {
  background: linear-gradient(135deg, #00E0FF 0%, #0099FF 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 224, 255, 0.3);
}

.btn-weather:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 224, 255, 0.5);
}

.btn-route {
  background: linear-gradient(135deg, #00FF7F 0%, #00CC66 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 255, 127, 0.3);
}

.btn-route:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 127, 0.5);
}

.sports-btn:active {
  transform: translateY(0) scale(0.95);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes gradientSlide {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.sports-card:nth-child(1) { animation-delay: 0.1s; }
.sports-card:nth-child(2) { animation-delay: 0.2s; }
.sports-card:nth-child(3) { animation-delay: 0.3s; }
.sports-card:nth-child(4) { animation-delay: 0.4s; }
.sports-card:nth-child(5) { animation-delay: 0.5s; }
.sports-card:nth-child(6) { animation-delay: 0.6s; }

@media (max-width: 768px) {
  #sports-events-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .sports-card { padding: 1.25rem; }
  .sports-teams {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }
  .vs-divider {
    width: 40px;
    height: 40px;
    margin: -0.5rem auto;
  }
  .team img {
    width: 50px;
    height: 50px;
  }
  .sports-actions {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .sports-btn {
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .sports-card {
    border-radius: 15px;
    padding: 1rem;
  }
  .sports-card-header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
  .league-badge {
    width: 100%;
    justify-content: center;
  }
  .team-name { font-size: 0.85rem; }
}
