/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #00eaff;
  --primary-dark: #0080ff;
  --bg: #0a0a0f;
  --bg-card: rgba(255, 255, 255, 0.03);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  cursor: none;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
}

.loading-title {
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 30px rgba(0, 234, 255, 0.5);
  margin-bottom: 2rem;
}

.loading-bar-container {
  width: 300px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto 1rem;
}

.loading-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  box-shadow: 0 0 20px var(--primary);
  transition: width 0.3s ease;
}

.loading-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Particle Canvas */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease;
  box-shadow: 0 0 15px var(--primary);
}

.custom-cursor.hover {
  width: 40px;
  height: 40px;
  background: rgba(0, 234, 255, 0.1);
}

.cursor-trail {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0.5;
  box-shadow: 0 0 10px var(--primary);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 234, 255, 0.1);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.8;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.discord-btn {
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--bg);
  font-weight: 600;
  border-radius: 0.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 234, 255, 0.3);
}

.discord-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(0, 234, 255, 0.5);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 2px;
  background: var(--primary);
  transition: transform 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10rem 1rem 3rem;
  position: relative;
}

.hero-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--primary);
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.3;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease;
}

.hero-title {
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 60px rgba(0, 234, 255, 0.5);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--text);
  opacity: 0.8;
}

/* Features Section */
.features {
  padding: 4rem 2rem;
  position: relative;
  z-index: 1;
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 234, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 234, 255, 0.3);
  box-shadow: 0 0 40px rgba(0, 234, 255, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 234, 255, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.feature-desc {
  color: var(--text-muted);
  line-height: 1.6;
}

/* CTA Section */
.cta {
  padding: 5rem 2rem;
  position: relative;
  z-index: 1;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.cta-subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 3rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--bg);
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 30px rgba(0, 234, 255, 0.4);
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px rgba(0, 234, 255, 0.6);
}

/* Footer */
.footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(0, 234, 255, 0.1);
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

/* Page Styles */
.page {
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
  position: relative;
  z-index: 1;
}

.page-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 3rem;
  text-shadow: 0 0 30px rgba(0, 234, 255, 0.3);
}

.page-subtitle {
  font-size: 1.5rem;
  color: var(--text);
  text-align: center;
  margin-bottom: 2rem;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 234, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s ease;
}

.card:hover {
  border-color: rgba(0, 234, 255, 0.3);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Rules List */
.rules-list {
  list-style: none;
  padding: 0;
}

.rules-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  line-height: 1.6;
}

.rules-list li:last-child {
  border-bottom: none;
}

.rules-list li strong {
  color: var(--text);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(0, 234, 255, 0.1);
  border-radius: 0.5rem;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  border-color: rgba(0, 234, 255, 0.3);
  color: var(--text);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--bg);
  border-color: transparent;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 234, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 234, 255, 0.3);
}

.team-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--bg);
  margin: 0 auto 1rem;
}

.team-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.team-role {
  color: var(--primary);
  font-size: 0.9rem;
}

/* Verbinden Page */
.connect-container {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.connect-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 234, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.status-item {
  padding: 1rem;
  background: rgba(0, 234, 255, 0.05);
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 234, 255, 0.1);
}

.status-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.status-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.status-value.online {
  color: #22c55e;
}

.status-value.offline {
  color: #ef4444;
}

.ip-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(0, 234, 255, 0.05);
  border: 1px solid rgba(0, 234, 255, 0.1);
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.ip-text {
  font-family: monospace;
  font-size: 1.1rem;
  color: var(--primary);
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.3s ease;
}

.copy-btn:hover {
  color: var(--primary);
}

.players-list {
  background: rgba(0, 234, 255, 0.05);
  border: 1px solid rgba(0, 234, 255, 0.1);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  max-height: 200px;
  overflow-y: auto;
}

.players-title {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.players-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.player-tag {
  padding: 0.25rem 0.75rem;
  background: rgba(0, 234, 255, 0.1);
  border: 1px solid rgba(0, 234, 255, 0.2);
  border-radius: 2rem;
  font-size: 0.85rem;
  color: var(--primary);
}

.connect-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--bg);
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 40px rgba(0, 234, 255, 0.5);
}

.connect-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 60px rgba(0, 234, 255, 0.7);
}

/* Spieler Page */
.player-count-display {
  max-width: 600px;
  margin: 0 auto 3rem;
  text-align: center;
}

.player-count-number {
  font-size: 6rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 50px rgba(0, 234, 255, 0.5);
  line-height: 1;
}

.player-count-label {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .discord-btn {
    display: none;
  }

  .hero {
    padding-top: 8rem;
  }

  .custom-cursor,
  .cursor-trail {
    display: none;
  }

  body {
    cursor: auto;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }
}
