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

:root {
  /* Color palette - dark theme with blood-red accents */
  --background: 0 0% 5%;
  --foreground: 0 0% 98%;
  --primary: 0 84% 60%;
  --primary-foreground: 0 0% 98%;
  --secondary: 0 0% 15%;
  --secondary-foreground: 0 0% 98%;
  --accent: 0 84% 60%;
  --accent-foreground: 0 0% 98%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 98%;
  --muted: 0 0% 15%;
  --muted-foreground: 0 0% 65%;
  --card: 0 0% 8%;
  --card-foreground: 0 0% 98%;
  --popover: 0 0% 8%;
  --popover-foreground: 0 0% 98%;
  --border: 0 0% 20%;
  --input: 0 0% 20%;
  --ring: 0 84% 60%;
  --radius: 0.5rem;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, hsl(0, 84%, 60%), hsl(0, 100%, 45%));
  --gradient-dark: linear-gradient(135deg, hsl(0, 0%, 5%), hsl(0, 0%, 10%));
  --gradient-glow: radial-gradient(circle, hsl(0, 84%, 60% / 0.3), transparent 70%);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.5;
  cursor: none;
  overflow-x: hidden;
}

/* Custom Cursor */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: var(--gradient-glow);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  transform: translate(-50%, -50%);
}

.cursor-trail {
  position: fixed;
  width: 4px;
  height: 4px;
  background: hsl(var(--primary));
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.2s ease-out;
  transform: translate(-50%, -50%);
}

/* Hide default cursor */
* {
  cursor: none !important;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: hsl(var(--background) / 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(var(--border));
}

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

.nav-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: hsl(var(--primary));
  text-decoration: none;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-link {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
}

/* Main Content */
.main-content {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

/* Pages */
.page {
  display: none;
  min-height: calc(100vh - 160px);
  padding: 2rem 0;
}

.page.active {
  display: block;
}

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

/* Hero Section */
.hero {
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.2rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Game Card */
.game-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem auto;
  max-width: 800px;
  box-shadow: 0 10px 30px -10px hsl(var(--primary) / 0.3);
}

.game-header {
  text-align: center;
  margin-bottom: 2rem;
}

.game-header h2 {
  font-size: 2rem;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

.game-content {
  position: relative;
}

.game-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  background: hsl(var(--muted));
  border-radius: var(--radius);
  text-align: center;
}

.placeholder-content {
  padding: 2rem;
}

.placeholder-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.load-game-btn {
  background: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1rem;
  transition: transform 0.2s ease;
}

.load-game-btn:hover {
  transform: scale(1.05);
}

.game-iframe-container {
  position: relative;
}

.game-iframe {
  width: 100%;
  height: 600px;
  border-radius: var(--radius);
  background: hsl(var(--muted));
}

.game-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.control-btn {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border: 1px solid hsl(var(--border));
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.control-btn:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

/* Content Pages */
.content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.content h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: hsl(var(--primary));
}

.content h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem 0;
  color: hsl(var(--foreground));
}

.content p {
  margin-bottom: 1rem;
  color: hsl(var(--muted-foreground));
}

.content ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.content li {
  margin-bottom: 0.5rem;
  color: hsl(var(--muted-foreground));
}

/* Blog */
.blog-post {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}

.post-date {
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  padding: 3rem 0 1rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

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

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.keywords {
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}

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

/* Fullscreen Modal */
.fullscreen-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: hsl(var(--background));
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-modal.hidden {
  display: none;
}

.fullscreen-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.fullscreen-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-iframe {
  width: 100%;
  height: 100%;
}

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

/* Responsive */
@media (max-width: 768px) {
  .nav-container {
    padding: 1rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .game-card {
    margin: 1rem;
    padding: 1rem;
  }
  
  .container {
    padding: 0 1rem;
  }
}

/* Animations */
@keyframes pulse-glow {
  0%, 100% { 
    box-shadow: 0 0 5px hsl(var(--primary)), 0 0 10px hsl(var(--primary)), 0 0 15px hsl(var(--primary));
  }
  50% { 
    box-shadow: 0 0 10px hsl(var(--primary)), 0 0 20px hsl(var(--primary)), 0 0 30px hsl(var(--primary));
  }
}

.game-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}