/*
Theme Name: S18 - Trà sữa
Theme URI: https://nguyentronghieu.io.vn
Description: WordPress theme cho bang hội Trà Sữa - Server S18 Thời gian. Theme gaming với hiệu ứng neon và animation.
Author: NGUYỄN TRỌNG HIẾU
Author URI: https://nguyentronghieu.io.vn
Version: 2.1.0
Text Domain: s18-tra-sua
Tags: gaming, dark, neon, tailwind, custom-theme
*/

/* Custom neon glow effects */
.neon-text {
  text-shadow: 0 0 3px rgba(0, 255, 255, 0.6), 0 0 6px rgba(0, 255, 255, 0.4),
    0 0 9px rgba(0, 255, 255, 0.3), 0 0 12px rgba(0, 255, 255, 0.2);
}

.neon-border {
  box-shadow: 0 0 6px rgba(0, 255, 255, 0.4),
    inset 0 0 8px rgba(0, 255, 255, 0.06);
  border: 1px solid rgba(0, 255, 255, 0.7);
}

.neon-button {
  background: linear-gradient(45deg, #001122, #003366);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
  border: 2px solid rgba(0, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.neon-button:hover {
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.35);
  transform: translateY(-2px);
}

.video-overlay {
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.4), rgba(0, 17, 34, 0.5));
}

.parallax-content {
  position: relative;
  z-index: 10;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #001122;
}

::-webkit-scrollbar-thumb {
  background: #00ffff;
  border-radius: 4px;
}

/* Member card animations */
.member-card {
  backdrop-filter: blur(10px);
  background: rgba(0, 17, 34, 0.8);
  transition: all 0.3s ease;
  cursor: pointer;
}

.member-card:hover {
  background: rgba(0, 34, 68, 0.9);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.25),
    inset 0 0 12px rgba(0, 255, 255, 0.06);
  border-color: rgba(0, 255, 255, 0.7);
  transform: translateY(-5px) scale(1.02);
}

.member-card:hover .rank-badge {
  transform: scale(1.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.member-card:hover h3 {
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

.rank-badge {
  background: linear-gradient(45deg, #ff6b00, #ffa500);
  transition: all 0.3s ease;
}

.rank-leader {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  transition: all 0.3s ease;
}

.rank-vice {
  background: linear-gradient(45deg, #c0c0c0, #e5e5e5);
  transition: all 0.3s ease;
}

.rank-elite {
  background: linear-gradient(45deg, #cd7f32, #daa520);
  transition: all 0.3s ease;
}

/* Hero title pulse animation */
.hero-title {
  animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
  0%,
  100% {
    text-shadow: 0 0 3px rgba(0, 255, 255, 0.6), 0 0 6px rgba(0, 255, 255, 0.4),
      0 0 9px rgba(0, 255, 255, 0.3), 0 0 12px rgba(0, 255, 255, 0.2);
  }
  50% {
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.7), 0 0 10px rgba(0, 255, 255, 0.5),
      0 0 15px rgba(0, 255, 255, 0.4), 0 0 20px rgba(0, 255, 255, 0.3);
  }
}

/* Winner cards styling */
.winner-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.winner-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hall-of-fame .winner-card:nth-child(1):hover {
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.25);
}

.hall-of-fame .winner-card:nth-child(2):hover {
  box-shadow: 0 10px 30px rgba(192, 192, 192, 0.25);
}

.hall-of-fame .winner-card:nth-child(3):hover {
  box-shadow: 0 10px 30px rgba(205, 127, 50, 0.25);
}

/* Music control button */
#musicToggle {
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.2);
  border: 1px solid rgba(0, 255, 255, 0.4);
}

#musicToggle:hover {
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.35);
  border-color: rgba(0, 255, 255, 0.6);
}

#musicToggle.playing {
  background: rgba(0, 255, 255, 0.08);
  border-color: rgba(0, 255, 255, 0.5);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.25);
}

#musicToggle.playing:hover {
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

/* Scroll Down Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  animation: bounce 2s infinite;
}

.scroll-indicator:hover {
  transform: translateX(-50%) translateY(-5px);
  color: rgba(0, 255, 255, 0.8);
}

.scroll-indicator .arrow-down {
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  animation: arrowBounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes arrowBounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: rotate(45deg) translateY(0);
  }
  40% {
    transform: rotate(45deg) translateY(-3px);
  }
  60% {
    transform: rotate(45deg) translateY(-1px);
  }
}

/* Avatar Modal */
#avatarModal.show {
  opacity: 1;
  visibility: visible;
}

.avatar-clickable {
  cursor: pointer;
  transition: all 0.3s ease;
}

.avatar-clickable:hover {
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.3);
}

#modalAvatar {
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

/* Modal entrance animation */
.modal-content {
  transform: scale(0.9) translateY(30px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-content.show {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Avatar zoom animation */
#modalAvatar {
  transform: scale(0.95);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#modalAvatar.show {
  transform: scale(1);
}
