/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand colors extracted from logo and banner */
  --brand-green: #00ff41;
  --brand-teal: #00ffff;
  --brand-pink: #ff00ff;
  --brand-yellow: #ffff00;
  --brand-purple: #8000ff;
  --brand-dark: #1a1a2e;
  --brand-navy: #2d2d4a;
  --brand-darker: #0f0f1a;
  --brand-white: #ffffff;
  --text-light: #b8b8b8;
  --text-muted: #666;
}

body {
  background: linear-gradient(135deg, var(--brand-dark), #16213e, #0f3460);
  color: var(--brand-white);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

/* Add subtle animated background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 40% 40%, rgba(255, 255, 0, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 0, 255, 0.2);
  z-index: 1000;
  padding: 15px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--brand-white);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--brand-teal);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(45deg, var(--brand-pink), var(--brand-teal));
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.banner-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: blur(1px);
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 60px 20px;
}

.hero-logo img {
  max-width: 400px;
  width: 100%;
  height: auto;
  margin-bottom: 30px;
  filter: drop-shadow(0 0 20px rgba(0, 255, 65, 0.5));
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
  background: linear-gradient(45deg, var(--brand-green), var(--brand-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.tagline {
  font-size: 1.3rem;
  margin-bottom: 40px;
  color: var(--text-light);
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* About section */
.about {
  padding: 100px 0;
  background: rgba(15, 15, 26, 0.8);
}

.about h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  background: linear-gradient(45deg, var(--brand-pink), var(--brand-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.8;
}

.about-stats {
  display: grid;
  gap: 30px;
}

.stat {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.stat h3 {
  font-size: 2.5rem;
  color: var(--brand-teal);
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.stat p {
  color: var(--text-light);
  font-weight: 500;
}

/* Games section */
.games {
  padding: 100px 0;
  background: var(--brand-dark);
}

.games h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  background: linear-gradient(45deg, var(--brand-green), var(--brand-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.game-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 0, 255, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover::before {
  opacity: 1;
}

.game-card:hover {
  transform: translateY(-10px);
  border-color: var(--brand-pink);
  box-shadow: 0 20px 40px rgba(255, 0, 255, 0.2);
}

.game-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  text-align: center;
}

.game-card h3 {
  color: var(--brand-pink);
  margin-bottom: 15px;
  font-size: 1.5rem;
  text-align: center;
}

.game-card p {
  color: var(--text-light);
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.6;
}

.game-card ul {
  list-style: none;
  padding: 0;
}

.game-card li {
  color: var(--brand-teal);
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.game-card li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--brand-green);
}

/* Features section */
.features {
  padding: 100px 0;
  background: rgba(15, 15, 26, 0.8);
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  background: linear-gradient(45deg, var(--brand-teal), var(--brand-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.feature {
  text-align: center;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.feature:hover {
  transform: translateY(-5px);
  border-color: var(--brand-teal);
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature h3 {
  color: var(--brand-teal);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.feature p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Getting Started section */
.getting-started {
  padding: 100px 0;
  background: var(--brand-dark);
  text-align: center;
}

.getting-started h2 {
  font-size: 2.5rem;
  margin-bottom: 60px;
  background: linear-gradient(45deg, var(--brand-pink), var(--brand-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.step {
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(255, 0, 255, 0.2);
  backdrop-filter: blur(10px);
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--brand-pink), var(--brand-purple));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 20px;
}

.step h3 {
  color: var(--brand-pink);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.step p {
  color: var(--text-light);
  line-height: 1.6;
}

.cta-section {
  margin-top: 60px;
}

.disclaimer {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* Footer */
.footer {
  background: var(--brand-darker);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 0, 255, 0.2);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 60px;
  margin-bottom: 20px;
}

.footer-logo p {
  color: var(--text-light);
  font-size: 1.1rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 40px;
}

.footer-links h4 {
  color: var(--brand-teal);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--brand-pink);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Buttons */
.cta-button, .secondary-button {
  display: inline-block;
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button {
  background: linear-gradient(45deg, var(--brand-pink), var(--brand-purple));
  color: var(--brand-white);
  box-shadow: 0 10px 30px rgba(255, 0, 255, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 0, 255, 0.4);
}

.secondary-button {
  background: transparent;
  color: var(--brand-teal);
  border: 2px solid var(--brand-teal);
}

.secondary-button:hover {
  background: var(--brand-teal);
  color: var(--brand-dark);
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* Simple hide for mobile - could add hamburger menu */
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-logo img {
    max-width: 280px;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .stat {
    padding: 20px;
  }
  
  .stat h3 {
    font-size: 1.8rem;
  }
  
  .game-cards,
  .features-grid,
  .steps {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .hero {
    padding-top: 100px;
  }
  
  .hero h1 {
    font-size: 1.6rem;
  }
  
  .tagline {
    font-size: 1.1rem;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
  }
  
  section {
    padding: 60px 0;
  }
  
  .features {
    padding: 60px 0;
  }
  
  .games {
    padding: 60px 0;
  }
  
  .getting-started {
    padding: 60px 0;
  }
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.user-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #ff00ff;
}

.user-details {
  text-align: center;
}

.user-details h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
  color: #00ffff;
}

.user-details p {
  color: #b8b8b8;
}

.login-prompt {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.login-prompt h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #00ffff;
}

.login-prompt p {
  margin-bottom: 30px;
  color: #b8b8b8;
}

/* Buttons */
.cta-button, .discord-button, .secondary-button {
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.cta-button {
  background: linear-gradient(45deg, #ff00ff, #ff6600);
  color: white;
  box-shadow: 0 5px 20px rgba(255, 0, 255, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 0, 255, 0.4);
}

.discord-button {
  background: #5865F2;
  color: white;
  box-shadow: 0 5px 20px rgba(88, 101, 242, 0.3);
}

.discord-button:hover {
  background: #4752C4;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.discord-icon {
  flex-shrink: 0;
}

.privacy-note {
  font-size: 0.85rem;
  color: #888;
  margin-top: 15px;
}

/* Features section */
.features {
  padding: 80px 20px;
  background: rgba(0, 0, 0, 0.2);
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #00ffff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature {
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.feature h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #ff00ff;
}

.feature p {
  color: #b8b8b8;
  line-height: 1.6;
}

/* Utilities */
.hidden {
  display: none !important;
}

/* Responsive design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .game-card {
    padding: 20px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .login-prompt, .user-info {
    padding: 25px;
  }
}

/* Game Arena Styles */
.arena-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.arena-header {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-panel {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-panel img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #ff00ff;
}

.lobby {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
}

.games-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-list {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}

.game-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.game-item:hover {
  border-color: #ff00ff;
  transform: translateY(-2px);
}

.game-type {
  color: #00ffff;
  font-weight: 600;
  margin-bottom: 5px;
}

.game-players {
  color: #b8b8b8;
  font-size: 0.9rem;
}

.create-game-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: fit-content;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #00ffff;
  font-weight: 600;
}

.form-group select, .form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1rem;
}

.form-group select:focus, .form-group input:focus {
  outline: none;
  border-color: #ff00ff;
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.2);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}

.modal.show {
  display: block;
}

.modal-content {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  margin: 5% auto;
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 15px;
  right: 25px;
  cursor: pointer;
}

.modal-close:hover {
  color: #ff00ff;
}

/* Loading styles */
.loading {
  text-align: center;
  padding: 40px;
  color: #b8b8b8;
  font-style: italic;
}

/* Game item status indicators */
.game-item.waiting {
  border-left: 4px solid #00ffff;
}

.game-item.playing {
  border-left: 4px solid #ff6600;
}

.game-item.full {
  opacity: 0.6;
  cursor: not-allowed;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.game-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.game-status.waiting {
  background: rgba(0, 255, 255, 0.2);
  color: #00ffff;
}

.game-status.playing {
  background: rgba(255, 102, 0, 0.2);
  color: #ff6600;
}

.game-status.full {
  background: rgba(255, 255, 255, 0.1);
  color: #999;
}