/* Enhanced Cards - Compact Design with Unique Identity */

/* SERVICE CARDS - Ecosystem Cards */
.service-card-enhanced {
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.service-card-enhanced:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 40px var(--primary-glow);
  border-color: var(--primary) !important;
}

.service-card-enhanced:hover h3 {
  color: var(--primary);
}

/* AGENCY CARDS - Horizontal Compact */
.agency-card-compact {
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.agency-card-compact:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.8), 0 0 30px var(--primary-glow);
  border-color: var(--primary);
}

.agency-card-compact img {
  transition: transform 0.6s ease;
}

.agency-card-compact:hover img {
  transform: scale(1.1);
}

.social-icon-mini {
  transition: all 0.3s ease;
}

.social-icon-mini:hover {
  background: rgba(255,212,0,0.1) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* REWARD CARDS - Vertical Compact */
.reward-card-compact {
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.reward-card-compact:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.8), 0 0 30px rgba(35,211,102,0.4);
  border-color: #23d366;
}

.reward-card-compact img {
  transition: transform 0.6s ease;
}

.reward-card-compact:hover img {
  transform: scale(1.05);
}

/* Compact Button */
.btn-compact {
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-compact:active {
  transform: translateY(0);
}

/* Profile Card Enhanced */
.presentation-card.enhanced-profile {
  position: relative;
  overflow: visible;
}

.presentation-card.enhanced-profile .profile-avatar {
  transition: all 0.4s ease;
}

.presentation-card.enhanced-profile:hover .profile-avatar {
  transform: scale(1.05);
}

.enhanced-btn {
  position: relative;
  overflow: hidden;
}

.enhanced-btn .btn-shine {
  transition: left 0.6s ease;
}

.enhanced-btn:hover .btn-shine {
  left: 100%;
}

/* Neon Border for Internal Links */
.neon-border-link {
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box,
              linear-gradient(135deg, var(--primary), #ffed4e) border-box;
  transition: all 0.4s ease;
}

.neon-border-link::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), #ffed4e);
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.4s ease;
  z-index: -1;
}

.neon-border-link:hover::before {
  opacity: 0.8;
  animation: pulse-neon 1.5s ease-in-out infinite;
}

@keyframes pulse-neon {
  0%, 100% {
    opacity: 0.6;
    filter: blur(10px);
  }
  50% {
    opacity: 1;
    filter: blur(15px);
  }
}

/* Ecuabet Plan Card Enhanced */
.ecuabet-plan-card {
  position: relative;
  overflow: visible;
  border: 3px solid transparent;
  background: linear-gradient(#050505, #050505) padding-box,
              linear-gradient(135deg, #23d366, #10b981, #23d366) border-box;
}

.ecuabet-plan-card::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: linear-gradient(135deg, #23d366, #10b981);
  opacity: 0;
  filter: blur(20px);
  transition: opacity 0.6s ease;
  z-index: -1;
}

.ecuabet-plan-card:hover::after {
  opacity: 0.6;
  animation: rotate-glow-green 3s linear infinite;
}

@keyframes rotate-glow-green {
  0% {
    filter: blur(20px) hue-rotate(0deg);
  }
  100% {
    filter: blur(20px) hue-rotate(60deg);
  }
}

/* Grid hover effect - lift adjacent cards slightly */
.service-grid:has(.enhanced-card:hover) .enhanced-card:not(:hover) {
  transform: scale(0.98);
  opacity: 0.7;
  transition: all 0.4s ease;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .enhanced-card {
    aspect-ratio: 3/4.5 !important;
  }
  
  .enhanced-card:hover {
    transform: translateY(-5px) scale(1.01);
  }
  
  .enhanced-card::after {
    display: none;
  }
  
  /* Ajustar tarjetas de agencias en móvil */
  .agency-card {
    padding: 14px;
  }
  
  .agency-card h3 {
    font-size: 16px;
  }
  
  .agency-card p {
    font-size: 13px;
  }
  
  /* Ajustar tarjetas de recompensas */
  .reward-card {
    padding: 16px;
  }
  
  .reward-card h3 {
    font-size: 15px;
  }
  
  .reward-card p {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .enhanced-card {
    aspect-ratio: 3/4.2 !important;
  }
  
  /* Tarjetas de casino más compactas */
  .casino-card {
    padding: 14px;
  }
  
  .casino-card h3 {
    font-size: 15px;
  }
  
  .casino-card .badge {
    font-size: 10px;
    padding: 3px 8px;
  }
  
  /* Agencias más compactas */
  .agency-card {
    padding: 12px;
  }
  
  .agency-card h3 {
    font-size: 15px;
  }
  
  .agency-card p {
    font-size: 12px;
  }
  
  .agency-logo {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  /* Recompensas más compactas */
  .reward-card {
    padding: 14px;
  }
  
  .reward-card h3 {
    font-size: 14px;
  }
  
  .reward-card p {
    font-size: 11px;
  }
  
  .reward-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
}

@media (max-width: 360px) {
  .enhanced-card {
    aspect-ratio: 3/4 !important;
  }
  
  .casino-card,
  .agency-card,
  .reward-card {
    padding: 12px;
  }
  
  .casino-card h3,
  .agency-card h3,
  .reward-card h3 {
    font-size: 14px;
  }
  
  .casino-card p,
  .agency-card p,
  .reward-card p {
    font-size: 11px;
  }
}


/* Accessibility - reduce motion */
@media (prefers-reduced-motion: reduce) {
  .enhanced-card,
  .enhanced-card *,
  .enhanced-card::before,
  .enhanced-card::after,
  .blob {
    animation: none !important;
    transition: none !important;
  }
}

/* Button Neon Border for Internal Navigation - FIXED */
.btn.neon-internal {
  border: 1px solid rgba(255,212,0,0.4);
  background: rgba(255,212,0,0.05);
  position: relative;
  transition: all 0.3s ease;
}

.btn.neon-internal::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), #ffed4e);
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn.neon-internal:hover {
  border-color: var(--primary);
  background: rgba(255,212,0,0.1);
  box-shadow: 0 5px 20px var(--primary-glow);
}

.btn.neon-internal:hover::before {
  opacity: 0.6;
}

/* Topic Cards with Neon Border for Internal Links */
.topic a {
  text-decoration: none;
  display: block;
}

.topic.neon-topic {
  border: 2px solid transparent;
  background: linear-gradient(rgba(255,255,255,0.02), rgba(255,255,255,0.02)) padding-box,
              linear-gradient(135deg, var(--primary), #ffed4e) border-box;
  transition: all 0.4s ease;
}

.topic.neon-topic::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), #ffed4e);
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.4s ease;
  z-index: -1;
}

.topic.neon-topic:hover::before {
  opacity: 0.6;
}

.topic.neon-topic:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--primary-glow);
}
