/* Gaming Hub Custom Styles */
:root {
  --neon-blue: #00f0ff;
  --electric-purple: #8a2be2;
  --dark-black: #0a0a0a;
  --glass-bg: rgba(20, 20, 30, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
}

.gaming-theme {
  background-color: var(--dark-black);
  color: #fff;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Typography */
.gaming-theme h1, .gaming-theme h2, .gaming-theme h3 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.glow-text {
  color: #fff;
  text-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue);
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar overrides for gaming theme */
.gaming-theme .header {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--electric-purple);
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}
.gaming-theme .nav-link {
  color: #fff;
  transition: color 0.3s;
}
.gaming-theme .nav-link:hover {
  color: var(--neon-blue);
  text-shadow: 0 0 8px var(--neon-blue);
}

/* Hero Section */
.gaming-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(45deg, #0a0a0a, #1a0b2e, #0a1128);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  overflow: hidden;
  padding: 100px 20px;
}

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

/* Particles */
.particles {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.particle {
  position: absolute;
  background: var(--neon-blue);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-blue);
  animation: floatUp 10s linear infinite;
  opacity: 0.5;
}

@keyframes floatUp {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  20% { opacity: 0.8; scale: 1; }
  80% { opacity: 0.8; }
  100% { transform: translateY(-100px) scale(0); opacity: 0; }
}

.gaming-hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.gaming-hero-title {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: fadeUp 1s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

.gaming-hero-subtitle {
  font-size: 1.5rem;
  color: #ccc;
  margin-bottom: 30px;
  animation: fadeUp 1s ease-out 0.3s forwards;
  opacity: 0;
  transform: translateY(30px);
}

.prize-pool-highlight {
  display: inline-block;
  background: rgba(138, 43, 226, 0.2);
  border: 1px solid var(--electric-purple);
  padding: 10px 25px;
  border-radius: 30px;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--neon-blue);
  margin-bottom: 40px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
  animation: fadeUp 1s ease-out 0.6s forwards, pulse 2s infinite;
  opacity: 0;
}

/* CTA Buttons */
.btn-gaming {
  display: inline-block;
  background: transparent;
  color: #fff;
  border: 2px solid var(--neon-blue);
  padding: 15px 40px;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  z-index: 1;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.btn-gaming::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--neon-blue);
  transition: all 0.4s ease;
  z-index: -1;
}

.btn-gaming:hover {
  color: #000;
  box-shadow: 0 0 20px var(--neon-blue);
  transform: scale(1.05);
}

.btn-gaming:hover::before {
  left: 0;
}

.btn-gaming-alt {
  border-color: var(--electric-purple);
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.2);
}
.btn-gaming-alt::before {
  background: var(--electric-purple);
}
.btn-gaming-alt:hover {
  color: #fff;
  box-shadow: 0 0 20px var(--electric-purple);
}

/* Tournament Cards (Glassmorphism & 3D Tilt) */
.section-heading {
  text-align: center;
  font-size: 2.5rem;
  margin: 60px 0 40px;
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.tournament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.tournament-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  cursor: pointer;
}

.tournament-card:hover {
  transform: translateY(-10px) perspective(1000px) rotateX(5deg) rotateY(2deg);
  border-color: var(--neon-blue);
  box-shadow: 0 15px 30px rgba(0, 240, 255, 0.2), inset 0 0 20px rgba(0,240,255,0.05);
}

.card-image-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #111;
}
.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: transform 0.5s;
}
.tournament-card:hover .card-image-wrap img {
  transform: scale(1.1);
  opacity: 1;
}

.live-badge {
  position: absolute;
  top: 15px; right: 15px;
  background: #ff003c;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.8rem;
  letter-spacing: 1px;
  animation: blink 2s infinite;
  box-shadow: 0 0 10px #ff003c;
}

.card-content {
  padding: 25px;
}
.card-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #fff;
}
.card-details {
  list-style: none;
  padding: 0; margin: 0 0 20px;
}
.card-details li {
  margin-bottom: 8px;
  color: #aaa;
  display: flex;
  justify-content: space-between;
}
.card-details li span.highlight {
  color: var(--neon-blue);
  font-weight: bold;
}
.card-action {
  text-align: center;
}

/* Past Tournaments */
.past-t-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  transition: background 0.3s;
}
.past-t-card:hover {
  background: rgba(138, 43, 226, 0.1);
  border-color: var(--electric-purple);
}
.past-t-info h4 { margin: 0 0 5px; color: #fff; }
.past-t-info p { margin: 0; color: #aaa; font-size: 0.9rem; }
.past-t-prize {
  color: var(--neon-blue);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Why Join Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}
.feature-box {
  background: var(--glass-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--glass-border);
  transition: all 0.3s;
}
.feature-box:hover {
  border-color: var(--electric-purple);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(138, 43, 226, 0.15);
}
.feature-icon {
  font-size: 2.5rem;
  color: var(--neon-blue);
  margin-bottom: 15px;
}

/* Tournament Detail Page */
.detail-banner {
  height: 40vh;
  min-height: 300px;
  background: linear-gradient(to bottom, rgba(10,10,10,0.3), var(--dark-black)), url('https://picsum.photos/id/1015/1920/600') center/cover;
  display: flex;
  align-items: flex-end;
  padding-bottom: 40px;
}
.game-logos {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.game-logos img {
  height: 50px;
  filter: drop-shadow(0 0 10px rgba(0,240,255,0.5));
}
.stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  background: var(--glass-bg);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid var(--electric-purple);
  margin-top: -50px;
  position: relative;
  z-index: 10;
  justify-content: space-around;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.stat-item { text-align: center; }
.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--neon-blue);
  margin-bottom: 5px;
}
.stat-label { color: #aaa; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }

.rules-section {
  background: rgba(255,0,60,0.05);
  border-left: 4px solid #ff003c;
  padding: 30px;
  margin: 40px 0;
  border-radius: 0 10px 10px 0;
}
.rules-section h3 { color: #ff003c; margin-top: 0; }
.rules-list { padding-left: 20px; color: #ddd; }
.rules-list li { margin-bottom: 10px; }
.rules-list li strong { color: #fff; }

/* Form Page */
.registration-container {
  max-width: 800px;
  margin: 60px auto;
  background: var(--glass-bg);
  padding: 40px;
  border-radius: 15px;
  border: 1px solid var(--electric-purple);
  box-shadow: 0 0 30px rgba(138,43,226,0.1);
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}
.step-indicator::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; width: 100%; height: 2px;
  background: rgba(255,255,255,0.1);
  z-index: 0;
}
.step {
  background: var(--dark-black);
  border: 2px solid rgba(255,255,255,0.2);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}
.step.active {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  box-shadow: 0 0 15px rgba(0,240,255,0.4);
}

.form-group { margin-bottom: 25px; }
.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #ccc;
  font-size: 0.9rem;
}
.form-control {
  width: 100%;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 15px;
  color: white;
  border-radius: 5px;
  font-size: 1rem;
  transition: all 0.3s;
  box-sizing: border-box;
}
.form-control:focus {
  outline: none;
  border-color: var(--neon-blue);
  box-shadow: 0 0 10px rgba(0,240,255,0.2);
}
.form-control.error {
  border-color: #ff003c;
  animation: shake 0.4s;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

.players-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0;
}
.checkbox-wrap input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: var(--neon-blue);
}

/* Page Transitions */
.page-transition {
  animation: pageIn 0.5s ease-out forwards;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); box-shadow: 0 0 20px rgba(0, 240, 255, 0.4); }
  100% { transform: scale(1); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Trust Elements */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #888;
  font-size: 0.9rem;
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-anim 600ms linear;
  background-color: rgba(255, 255, 255, 0.4);
}
@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .gaming-hero-title { font-size: 2.5rem; }
  .gaming-hero-subtitle { font-size: 1.2rem; }
  .players-grid { grid-template-columns: 1fr; }
  .stats-bar { margin-top: 20px; flex-direction: column; gap: 15px;}
  .trust-badges { flex-direction: column; align-items: center; gap: 15px; }
}
