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

:root {
  /* Color System - Light Mode */
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 222.2 84% 4.9%;
  --primary: 142 76% 36%;
  --primary-foreground: 355.7 100% 97.3%;
  --secondary: 210 40% 96.1%;
  --secondary-foreground: 222.2 47.4% 11.2%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --accent: 210 40% 96.1%;
  --accent-foreground: 222.2 47.4% 11.2%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 142 76% 36%;
  --radius: 0.5rem;
}

/* Dark Mode */
[data-theme="dark"] {
  --background: 222.2 84% 4.9%;
  --foreground: 210 40% 98%;
  --card: 217.2 32.6% 17.5%;
  --card-foreground: 210 40% 98%;
  --popover: 222.2 84% 4.9%;
  --popover-foreground: 210 40% 98%;
  --primary: 142 70% 50%;
  --primary-foreground: 355.7 100% 97.3%;
  --secondary: 217.2 32.6% 17.5%;
  --secondary-foreground: 210 40% 98%;
  --muted: 217.2 32.6% 17.5%;
  --muted-foreground: 215 20.2% 65.1%;
  --accent: 217.2 32.6% 17.5%;
  --accent-foreground: 210 40% 98%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 210 40% 98%;
  --border: 217.2 32.6% 17.5%;
  --input: 217.2 32.6% 17.5%;
  --ring: 142 70% 50%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

main {
  flex: 1;
}

/* Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid hsl(var(--border));
  background: hsla(var(--background), 0.95);
  backdrop-filter: blur(10px);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding: 0 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: hsl(var(--foreground));
}

.logo svg {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--primary));
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: hsl(var(--primary));
}

.nav-links svg {
  width: 1rem;
  height: 1rem;
}

.discord-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--primary-foreground));
  background: hsl(var(--primary));
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s;
  cursor: pointer;
}

.discord-btn:hover {
  background: hsla(var(--primary), 0.9);
}

/* Dark Mode Toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  background: transparent;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: all 0.2s;
  margin-right: 0.5rem;
}

.theme-toggle:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.theme-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  border-top: 1px solid hsl(var(--border));
  overflow-x: auto;
  white-space: nowrap;
}

.mobile-nav-links {
  display: flex;
  padding: 0.5rem 1rem;
  gap: 0.5rem;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: hsl(var(--muted-foreground));
  background: transparent;
  border: none;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: all 0.2s;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.mobile-nav-links svg {
  width: 1rem;
  height: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  background: hsla(var(--primary), 0.9);
}

.btn-outline {
  background: transparent;
  color: hsl(var(--foreground));
  border-color: hsl(var(--input));
}

.btn-outline:hover {
  background: hsl(var(--accent));
}

.btn-lg {
  height: 3rem;
  padding: 0 2rem;
  font-size: 1rem;
}

.btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Cards */
.card {
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  transition: all 0.2s;
}

.card:hover {
  border-color: hsla(var(--primary), 0.5);
}

.card-header {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.card-content {
  padding: 0 1.5rem 1.5rem;
}

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: hsla(var(--primary), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--primary));
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
}

.badge-primary {
  background: hsla(var(--primary), 0.1);
  color: hsl(var(--primary));
}

.badge-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.badge-success {
  background: hsla(142, 76%, 36%, 0.1);
  color: hsl(142, 76%, 36%);
}

.badge-warning {
  background: hsla(45, 93%, 47%, 0.1);
  color: hsl(45, 93%, 47%);
}

.badge-danger {
  background: hsla(0, 84%, 60%, 0.1);
  color: hsl(0, 84%, 60%);
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: hsl(142, 76%, 36%);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Sections */
.hero-section {
  padding: 5rem 0;
  text-align: center;
}

.hero-section .container {
  max-width: 56rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  color: hsl(var(--primary));
}

.hero-description {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  padding-top: 1rem;
}

/* Features Grid */
.features-section {
  padding: 4rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 48rem;
  margin: 0 auto;
}

/* Info Section */
.info-section {
  padding: 4rem 0;
  background: hsla(var(--muted), 0.3);
  margin: 0 -1rem;
}

.info-section .container {
  max-width: 40rem;
  text-align: center;
}

.server-ip-card {
  background: hsl(var(--card));
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.server-ip-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.server-ip {
  font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Mono", "Droid Sans Mono", "Source Code Pro", monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

.server-ip-large {
  font-size: 1.875rem;
}

/* Copy Button */
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3rem;
  padding: 0 2rem;
  font-size: 1rem;
  font-weight: 500;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
}

.copy-btn:hover {
  background: hsla(var(--primary), 0.9);
}

.copy-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.copy-btn.copied {
  background: hsl(142, 76%, 36%);
}

/* Page Header */
.page-header {
  text-align: center;
  padding: 4rem 0;
}

.page-header .container {
  max-width: 40rem;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.page-description {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
}

/* Rules Page */
.rules-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 40rem;
  margin: 0 auto;
}

.rule-card {
  border: 2px solid;
  border-radius: var(--radius);
  padding: 1.5rem;
  background: hsl(var(--card));
}

.rule-card.warning {
  border-color: hsla(45, 93%, 47%, 0.2);
}

.rule-card.info {
  border-color: hsla(210, 100%, 50%, 0.2);
}

.rule-card.danger {
  border-color: hsla(0, 84%, 60%, 0.2);
}

.rule-content {
  display: flex;
  gap: 1rem;
}

.rule-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rule-icon.warning {
  background: hsla(45, 93%, 47%, 0.1);
}

.rule-icon.warning svg {
  color: hsl(45, 93%, 47%);
}

.rule-icon.info {
  background: hsla(210, 100%, 50%, 0.1);
}

.rule-icon.info svg {
  color: hsl(210, 100%, 50%);
}

.rule-icon.danger {
  background: hsla(0, 84%, 60%, 0.1);
}

.rule-icon.danger svg {
  color: hsl(0, 84%, 60%);
}

.rule-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.rule-text h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.rule-text p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* Events Grid */
.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 48rem;
  margin: 2rem auto;
}

/* Steps */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.step-card {
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  transition: border-color 0.2s;
}

.step-card:hover {
  border-color: hsla(var(--primary), 0.5);
}

.step-content {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
}

.step-number {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-text {
  flex: 1;
}

.step-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.step-title svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--primary));
}

.step-description {
  color: hsl(var(--muted-foreground));
}

/* Requirements List */
.requirements-list {
  list-style: none;
}

.requirements-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  color: hsl(var(--muted-foreground));
}

.requirements-list li::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: hsl(var(--primary));
  flex-shrink: 0;
}

/* Footer */
footer {
  width: 100%;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  margin-top: auto;
}

.footer-content {
  padding: 2rem 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--primary));
}

.footer-logo-text {
  font-size: 1.125rem;
  font-weight: 700;
}

.footer-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  max-width: 20rem;
}

.footer-section h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: hsl(var(--primary));
}

.footer-connect {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-connect a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.2s;
}

.footer-connect a:hover {
  color: hsl(var(--primary));
}

.footer-connect svg {
  width: 1rem;
  height: 1rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.footer-bottom p:last-child {
  margin-top: 0.25rem;
}

/* Links */
.link {
  color: hsl(var(--primary));
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: text-decoration 0.2s;
}

.link:hover {
  text-decoration: underline;
}

.link svg {
  width: 1rem;
  height: 1rem;
}

/* Responsive */
@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-title {
    font-size: 3.75rem;
  }

  .page-title {
    font-size: 3.75rem;
  }
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
  }

  .mobile-nav {
    display: block;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }

/* Code */
code {
  font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Mono", "Droid Sans Mono", "Source Code Pro", monospace;
  background: hsla(var(--muted), 0.5);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}
