/* ====================================== */
/* 🧬 PULSAR CATEGORIAS VIVAS v10.5       */
/* ====================================== */

/* ====================================== */
/* VARIÁVEIS DE CATEGORIAS                */
/* ====================================== */
:root {
  --cat-musica: #FF0080;
  --cat-arte: #9D4EDD;
  --cat-infantil: #FFD60A;
  --cat-esportes: #06FFA5;
  --cat-gastronomia: #FF6B35;
  --cat-baladas: #FF006E;
  --cat-feiras: #E63946;
  --cat-educacao: #2A9D8F;
  --cat-cinema: #457B9D;
  --cat-pets: #BC6C25;
  --cat-natureza: #52B788;
  --cat-tecnologia: #00D9FF;
  --cat-social: #DC2F02;
}

/* ====================================== */
/* CARD DE CATEGORIA                      */
/* ====================================== */
.category-card {
  position: relative;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.category-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(var(--category-color-rgb), 0.4);
}

/* ====================================== */
/* HEADER DA CATEGORIA                    */
/* ====================================== */
.category-header {
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.category-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  to {
    left: 100%;
  }
}

.category-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.category-icon {
  font-size: 2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.category-name {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.category-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  margin: 0;
}

/* ====================================== */
/* CONTEÚDO DO EVENTO                     */
/* ====================================== */
.event-content {
  padding: 1.5rem;
}

.event-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: white;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.event-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ====================================== */
/* META INFORMAÇÕES                       */
/* ====================================== */
.event-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.meta-item i {
  font-size: 1rem;
}

/* ====================================== */
/* ESTATÍSTICAS                           */
/* ====================================== */
.event-stats {
  display: flex;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

/* ====================================== */
/* FEATURES DA CATEGORIA                  */
/* ====================================== */
.category-features {
  display: flex;
  gap: 0.5rem;
  padding: 0 1.5rem 1rem;
  flex-wrap: wrap;
}

.feature-btn {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: white;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(5px);
}

.feature-btn:hover {
  background: var(--category-color);
  border-color: var(--category-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--category-color-rgb), 0.4);
}

/* ====================================== */
/* AÇÕES DO EVENTO                        */
/* ====================================== */
.event-actions {
  display: flex;
  gap: 0.75rem;
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary {
  flex: 1;
  padding: 0.75rem 1.5rem;
  background: var(--category-gradient);
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(var(--category-color-rgb), 0.5);
}

.btn-favorite,
.btn-share {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-favorite:hover,
.btn-share:hover {
  background: var(--category-color);
  border-color: var(--category-color);
  transform: scale(1.1);
}

.btn-favorite.active {
  background: #FF0064;
  border-color: #FF0064;
  animation: heartbeat 1s infinite;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* ====================================== */
/* SISTEMA DE PARTÍCULAS                  */
/* ====================================== */
.category-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s;
}

.category-card:hover .category-particles {
  opacity: 1;
}

.particle {
  position: absolute;
  bottom: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: particle-rise 3s infinite;
}

@keyframes particle-rise {
  0% {
    bottom: 0;
    opacity: 1;
  }
  100% {
    bottom: 100%;
    opacity: 0;
  }
}

/* Partículas específicas */
.particle-sound-waves {
  width: 30px;
  height: 3px;
  border-radius: 10px;
  animation: wave-pulse 1s infinite;
}

@keyframes wave-pulse {
  0%, 100% {
    transform: scaleX(1);
  }
  50% {
    transform: scaleX(1.5);
  }
}

.particle-balloons {
  width: 20px;
  height: 25px;
  border-radius: 50% 50% 50% 0;
  animation: balloon-float 4s infinite;
}

@keyframes balloon-float {
  0% {
    bottom: 0;
    transform: translateX(0) rotate(0deg);
  }
  50% {
    transform: translateX(20px) rotate(10deg);
  }
  100% {
    bottom: 100%;
    transform: translateX(-10px) rotate(-5deg);
  }
}

.particle-neon {
  box-shadow: 0 0 20px currentColor;
  animation: neon-flicker 2s infinite;
}

@keyframes neon-flicker {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.particle-hearts {
  width: 15px;
  height: 15px;
  animation: heart-float 3s infinite;
}

@keyframes heart-float {
  0% {
    bottom: 0;
    opacity: 1;
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    bottom: 100%;
    opacity: 0;
    transform: scale(0.8);
  }
}

.particle-leaves {
  width: 12px;
  height: 18px;
  border-radius: 0 100% 100% 0;
  animation: leaf-fall 5s infinite;
}

@keyframes leaf-fall {
  0% {
    top: -10%;
    transform: rotate(0deg) translateX(0);
  }
  25% {
    transform: rotate(90deg) translateX(20px);
  }
  50% {
    transform: rotate(180deg) translateX(-20px);
  }
  75% {
    transform: rotate(270deg) translateX(20px);
  }
  100% {
    top: 110%;
    transform: rotate(360deg) translateX(0);
  }
}

.particle-digital {
  width: 2px;
  height: 20px;
  animation: digital-stream 1.5s infinite;
}

@keyframes digital-stream {
  0% {
    top: -10%;
    opacity: 1;
  }
  100% {
    top: 110%;
    opacity: 0;
  }
}

/* ====================================== */
/* EFEITOS ESPECIAIS POR CATEGORIA        */
/* ====================================== */
.effect-sound-wave {
  animation: pulse-glow 1s infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px var(--category-color);
  }
  50% {
    box-shadow: 0 0 40px var(--category-color);
  }
}

.effect-mask-animation .category-icon {
  animation: mask-flip 1s;
}

@keyframes mask-flip {
  0% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(180deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.effect-confetti-burst {
  animation: confetti-shake 0.5s;
}

@keyframes confetti-shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px) rotate(-2deg);
  }
  75% {
    transform: translateX(5px) rotate(2deg);
  }
}

.effect-steam-rise .category-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(transparent, var(--category-color));
  opacity: 0.3;
  animation: steam-float 2s infinite;
}

@keyframes steam-float {
  0% {
    transform: translateY(0);
    opacity: 0.3;
  }
  100% {
    transform: translateY(-50px);
    opacity: 0;
  }
}

.effect-neon-pulse {
  animation: neon-border-pulse 1.5s infinite;
}

@keyframes neon-border-pulse {
  0%, 100% {
    box-shadow: 0 0 10px var(--category-color),
                inset 0 0 10px var(--category-color);
  }
  50% {
    box-shadow: 0 0 30px var(--category-color),
                inset 0 0 20px var(--category-color);
  }
}

/* ====================================== */
/* HUB DE CATEGORIAS                      */
/* ====================================== */
.categories-hub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.category-tile {
  background: var(--category-gradient);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.category-tile:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.category-tile::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.category-tile:hover::before {
  opacity: 1;
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.category-tile-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}

.category-tile-name {
  font-size: 1.3rem;
  font-weight: bold;
  color: white;
  margin-bottom: 0.5rem;
}

.category-tile-count {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ====================================== */
/* RESPONSIVO                             */
/* ====================================== */
@media (max-width: 768px) {
  .category-header {
    padding: 1rem;
  }
  
  .event-content {
    padding: 1rem;
  }
  
  .event-actions {
    padding: 1rem;
  }
  
  .event-title {
    font-size: 1.1rem;
  }
  
  .categories-hub {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1rem;
  }
  
  .category-tile {
    padding: 1.5rem;
  }
  
  .category-tile-icon {
    font-size: 3rem;
  }
}
