/*
 * Base Styles
 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #ff2957;
  --primary-dark: #cc1f44;
  --primary-light: #ff98b2;
  --secondary: #b829ff;
  --secondary-dark: #8f1acc;
  --secondary-light: #deacff;
  --accent: #2bfff2;
  --accent-dark: #1ac7bd;
  --accent-light: #7ffffa;
  --background: #120318;
  --text: #ffffff;
  --grid-color: rgba(255, 41, 87, 0.1);
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  margin: 0;
}

/*
 * Layout Components
 */
.grid-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  perspective: 1000px;
  transform-style: preserve-3d;
  z-index: -1;
}

.grid {
  position: absolute;
  width: 200%;
  height: 200%;
  background-image:
    linear-gradient(transparent 95%, var(--grid-color) 95%),
    linear-gradient(90deg, transparent 95%, var(--grid-color) 95%);
  background-size: 40px 40px;
  transform: rotateX(45deg);
  animation: gridMove 20s linear infinite;
  bottom: -100%;
  left: -50%;
}

.layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2rem;
  position: relative;
  z-index: 1;
}

/*
 * Title Styles
 */
.title-container {
  text-align: center;
  margin-bottom: 2rem;
  animation: neonFlicker 10s infinite;
}

.title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 0.5rem;
  margin-top: 1rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--text);
  animation: titlePulse 3s infinite;
  white-space: nowrap;
}

.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  text-shadow: 0 0 10px var(--accent);
}

.blink {
  display: inline-block;
  width: 8px;
  height: 24px;
  background-color: var(--accent);
  margin-left: 8px;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  box-shadow: 0 0 10px var(--accent);
}

/*
 * Navigation
 */
/*
 * Navigation
 */
 .nav {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.nav-button {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.8);
  background: linear-gradient(
    45deg,
    rgba(255, 41, 87, 0.3),
    rgba(184, 41, 255, 0.3)
  );
  border: 2px solid rgba(184, 41, 255, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow:
    0 0 10px rgba(255, 41, 87, 0.2),
    0 0 20px rgba(184, 41, 255, 0.1),
    inset 0 0 10px rgba(255, 41, 87, 0.2);
}

.nav-button:hover {
  color: var(--text);
  background: linear-gradient(
    45deg,
    rgba(255, 41, 87, 0.4),
    rgba(184, 41, 255, 0.4)
  );
  border-color: rgba(184, 41, 255, 0.4);
  box-shadow:
    0 0 15px rgba(255, 41, 87, 0.3),
    0 0 30px rgba(184, 41, 255, 0.2),
    inset 0 0 15px rgba(255, 41, 87, 0.3);
}

.nav-button.active {
  color: var(--text);
  background: linear-gradient(
    45deg,
    var(--primary),
    var(--secondary),
    var(--primary),
    var(--secondary)
  );
  border: 2px solid var(--secondary);
  text-shadow: 0 0 10px rgba(255, 41, 87, 0.8);
  box-shadow:
    0 0 20px rgba(255, 41, 87, 0.4),
    0 0 40px rgba(184, 41, 255, 0.2),
    inset 0 0 15px rgba(255, 41, 87, 0.4);
  animation: lavaFlow 3s infinite;
}

.nav-button.active::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: rotate(45deg);
  animation: lavaShine 3s infinite;
}

.nav-button.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  animation: lavaBurn 2s infinite;
}

/*
 * Content Container
 */
.content-container {
  background: transparent;
  padding: 0;
  width: 90%;
  max-width: 1200px;
  min-height: 400px;
  margin: 0 auto;
  box-shadow: none;
}

/*
 * Blog Posts
 */
.blog-post {
  border: 1px solid var(--primary);
  position: relative;
  padding: 2rem;
  margin: 1rem;
  background: linear-gradient(
    170deg,
    rgba(43, 255, 242, 0.05) 0%,
    rgba(24, 7, 31, 0.9) 30%
  );
  box-shadow:
    0 0 30px rgba(255, 41, 87, 0.1),
    inset 0 0 30px rgba(43, 255, 242, 0.05);
}

.blog-post .blog-content img {
  width: 80%;
  border: 1px solid rgba(184, 41, 255, 0.3);
}

.blog-header {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  position: relative;
}

.blog-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -20px;
  right: -20px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--primary) 20%,
    var(--secondary) 50%,
    var(--primary) 80%,
    transparent 100%
  );
  box-shadow: 0 0 15px rgba(255, 41, 87, 0.5);
}

.blog-avatar {
  width: 80px;
  height: 80px;
  border: 2px solid var(--primary);
  box-shadow:
    0 0 15px rgba(255, 41, 87, 0.3),
    inset 0 0 15px rgba(255, 41, 87, 0.3);
  transition: all 0.3s ease;
}

.blog-avatar:hover {
  border-color: var(--secondary);
  box-shadow:
    0 0 20px rgba(184, 41, 255, 0.4),
    inset 0 0 20px rgba(184, 41, 255, 0.4);
}

.blog-title-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow:
    0 0 10px rgba(255, 41, 87, 0.5),
    2px 2px rgba(24, 7, 31, 0.8);
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  color: var(--accent);
  margin: 0;
}

.blog-author::before {
  content: '>';
  color: var(--accent);
  animation: terminalBlink 5s infinite;
}

.blog-date {
  font-family: inherit;
  color: inherit;
  position: relative;
  padding-left: 1rem;
}

.blog-date::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-dark);
}

.blog-content {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  padding: 0 1rem;
}

.blog-content p {
  margin-bottom: 1.5rem;
}

.blog-content p:last-child {
  margin-bottom: 0;
}

.blog-post::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(43, 255, 242, 0.03) 2px,
    rgba(43, 255, 242, 0.03) 4px
  );
  pointer-events: none;
}

/*
 * Games Grid
 */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.game-card {
  background: linear-gradient(170deg, rgba(43, 255, 242, 0.1) 0%, rgba(24, 7, 31, 0.95) 30%);
  border: 1px solid var(--primary);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow:
    0 0 20px rgba(255, 41, 87, 0.2),
    inset 0 0 30px rgba(43, 255, 242, 0.05);
}

.game-screen {
  aspect-ratio: 4/3;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--primary);
  overflow: hidden;
  position: relative;
}

.game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-info {
  text-align: center;
}

.game-title {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow:
    0 0 10px rgba(43, 255, 242, 0.5),
    2px 2px rgba(24, 7, 31, 0.8);
}

.game-description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.play-button {
  background: linear-gradient(
    45deg,
    var(--primary),
    var(--secondary),
    var(--primary),
    var(--secondary)
  );
  padding: 0.75rem 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  display: inline-block;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--secondary);
  text-shadow: 0 0 10px rgba(255, 41, 87, 0.8);
  box-shadow:
    0 0 20px rgba(255, 41, 87, 0.4),
    0 0 40px rgba(184, 41, 255, 0.2),
    inset 0 0 15px rgba(255, 41, 87, 0.4);
  animation: lavaFlow 3s infinite;
}

.play-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: rotate(45deg);
  animation: lavaShine 3s infinite;
}

.play-button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  animation: lavaBurn 2s infinite;
}

.game-card:hover .play-button {
  background: linear-gradient(
    45deg,
    var(--secondary),
    var(--primary),
    var(--secondary),
    var(--primary)
  );
  box-shadow:
    0 0 30px rgba(255, 41, 87, 0.6),
    0 0 60px rgba(184, 41, 255, 0.3),
    inset 0 0 20px rgba(255, 41, 87, 0.6);
}

/* Coming Soon Card */
.coming-soon {
  cursor: default;
  opacity: 0.7;
}

.coming-soon .game-screen {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: var(--accent-dark);
}

.power-light {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: powerBlink 2s infinite;
}

.power-text {
  font-family: 'Courier New', monospace;
  color: var(--accent);
  letter-spacing: 2px;
  animation: powerBlink 2s infinite;
}

/* Scanline effect */
.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(43, 255, 242, 0.03) 2px,
    rgba(43, 255, 242, 0.03) 4px
  );
  pointer-events: none;
}

/*
 * Responsive Adjustments
 */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    width: 90%;
    max-width: 300px;
  }

  .nav-button {
    width: 100%;
    text-align: center;
  }

  .blog-post {
    padding: 1.5rem;
    margin: 0.5rem;
  }

  .blog-header {
    grid-template-columns: 60px 1fr;
    gap: 1rem;
  }

  .blog-avatar {
    width: 60px;
    height: 60px;
  }

  .blog-title {
    font-size: 1.4rem;
  }

  .blog-author {
    font-size: 0.9rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0.5rem;
  }
}

/*
 * In line styles
 */
span.gamer-tag {
  font-family: 'Courier New', monospace;
  font-weight: bold;
  color: var(--accent);
  background: rgba(100, 255, 100, 0.25);
  letter-spacing: 1px;
  padding: 0 0.5rem;
  animation: powerBlink 2s infinite;
}

/*
 * Animations
 */
 @keyframes gridMove {
  0% { transform: rotateX(45deg) translateY(0); }
  100% { transform: rotateX(45deg) translateY(-50%); }
}

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

@keyframes terminalBlink {
  0%, 98%, 100% { opacity: 1; }
  98.2%, 98.4%, 98.6% { opacity: 0; }
  98.8% { opacity: 1; }
  99%, 99.2% { opacity: 0; }
  99.4% { opacity: 1; }
}

@keyframes titlePulse {
  0%, 100% {
    text-shadow:
      2px 2px #ff2957,
      4px 4px #b829ff,
      0 0 20px rgba(255, 41, 87, 0.5);
  }
  50% {
    text-shadow:
      2px 2px #ff2957,
      4px 4px #b829ff,
      0 0 40px rgba(255, 41, 87, 0.8);
  }
}

@keyframes neonFlicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.8; }
  94% { opacity: 1; }
  96% { opacity: 0.9; }
  97% { opacity: 1; }
}

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

@keyframes lavaShine {
  0% {
    transform: rotate(45deg) translateX(-100%);
  }
  100% {
    transform: rotate(45deg) translateX(100%);
  }
}

@keyframes lavaBurn {
  0%, 100% {
    box-shadow:
      0 0 10px var(--primary),
      0 0 20px var(--primary),
      0 0 30px var(--secondary);
  }
  50% {
    box-shadow:
      0 0 15px var(--primary),
      0 0 25px var(--primary),
      0 0 35px var(--secondary);
  }
}

@keyframes powerBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}