/*
  Stylesheet for the Cute 16‑Bit Gaming website. This file defines a
  playful and nostalgic design inspired by 16‑bit pixel art and pastel
  colour palettes. Colours are drawn from the “Candy coated joy” pastel
  palette【902232724345242†L686-L693】 to maintain a joyful, cohesive look.
*/

/* CSS variables for colours */
:root {
  /*
    Gender‑neutral pastel palette with no pinks. Colors are from the
    “Green, Purple & Blue Pastels” scheme【535494802830404†L96-L147】.
    - Eggshell (cream)
    - Light Moss Green
    - Light Pastel Purple
    - Columbia Blue
    - Azureish White
  */
  --cream: #e7f2d0;     /* Eggshell */
  --green: #beddb3;     /* Light Moss Green */
  --purple: #b2a3d4;    /* Light Pastel Purple */
  --blue: #c1dde6;      /* Columbia Blue */
  --light: #d5ebed;     /* Azureish White */
  --dark: #3a2f42;      /* deep purple for contrast */
}

/* Base styles */
html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--blue);
  color: var(--dark);
  line-height: 1.6;
  /* Prevent horizontal scroll on narrow screens */
  overflow-x: hidden;
}

/* Navigation bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Use pastel blue for the nav background to soften the feminine feel */
  background: var(--blue);
  padding: 1rem 2rem;
  border-bottom: 4px solid var(--purple);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.05);
}

.navbar .logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.2rem;
  color: var(--dark);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--dark);
  transition: color 0.2s ease;
}

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

/* Hero section */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 2rem;
  /* Gradient blends pastel blue into pastel green for a neutral vibe */
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
}

.hero-content {
  flex: 1 1 400px;
  max-width: 600px;
}

.hero-content h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.hero-content p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.btn {
  display: inline-block;
  /* Main button uses pastel purple to stand out */
  background: var(--purple);
  color: #fff;
  padding: 0.8rem 1.2rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8rem;
  text-decoration: none;
  border: 4px solid var(--dark);
  border-radius: 6px;
  box-shadow: 0 4px 0 var(--dark);
  transition: transform 0.1s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-image {
  flex: 1 1 300px;
  text-align: center;
}

.hero-img {
  width: 100%;
  max-width: 400px;
  height: auto;
}

/* Categories section */
.categories-section {
  padding: 3rem 2rem;
  background: var(--light);
  border-top: 4px solid var(--purple);
  border-bottom: 4px solid var(--purple);
}

.categories-section h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.category-card {
  /* Category cards use a cream background for neutral warmth */
  background: var(--cream);
  border: 4px solid var(--dark);
  padding: 1.5rem;
  width: 280px;
  text-align: center;
  box-shadow: 0 4px 0 var(--dark);
  border-radius: 8px;
  transition: transform 0.1s ease;
}

.category-card:hover {
  transform: translateY(-4px);
}

.cat-img {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.category-card h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.category-card p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.cat-btn {
  display: inline-block;
  /* Category buttons use pastel purple */
  background: var(--purple);
  color: #fff;
  padding: 0.6rem 1rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  text-decoration: none;
  border: 4px solid var(--dark);
  border-radius: 6px;
  box-shadow: 0 4px 0 var(--dark);
}

.cat-btn:hover {
  background: var(--green);
}

/* Disabled category buttons for upcoming games */
.cat-btn.disabled {
  background: var(--light);
  color: var(--dark);
  box-shadow: none;
  border: 4px solid var(--dark);
  cursor: default;
  pointer-events: none;
}

/* About section */
.about-section {
  padding: 3rem 2rem;
  background: var(--blue);
  color: var(--dark);
}

.about-section h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.about-section p {
  max-width: 800px;
  margin: 0 auto 1rem auto;
  font-size: 1rem;
}

/* Contact section */
.contact-section {
  padding: 3rem 2rem;
  background: var(--light);
  color: var(--dark);
  text-align: center;
}

.contact-section h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-section a {
  color: var(--purple);
  text-decoration: none;
  font-weight: 600;
}

.contact-section a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  /* Use the light pastel colour for the footer instead of pink (undefined).
     This ensures consistent colours across the palette and avoids
     referencing an undefined variable. */
  background: var(--light);
  color: var(--dark);
  text-align: center;
  padding: 1rem 0;
  border-top: 4px solid var(--purple);
}

.footer p {
  margin: 0;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    max-width: none;
    margin-bottom: 2rem;
  }
  .categories {
    flex-direction: column;
    align-items: center;
  }
  .category-card {
    width: 100%;
    max-width: 320px;
  }
}

/* Additional responsive rules for very small screens (e.g., iPhone width <= 600px).
   Stack the navigation links below the logo and center them. */
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }
  .nav-links {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    align-items: center;
  }
  .nav-links li {
    margin: 0;
  }
}