/* ============================================================
   DYSFUNCTIONAL GAMES – GLOBAL BRAND STYLESHEET
   Playful, stylized, neon-chaotic aesthetic
   Inspired by the logo colors and cartoon character artwork
   ============================================================ */

/* ------------------------------------------------------------
   COLOR SYSTEM (Brand Palette)
   ------------------------------------------------------------ */

:root {
  /* Primary brand colors from the logo */
  --brand-purple: #7800CC;
  --brand-pink: #B6003E;
  --brand-blue: #2AA8FF;
  --brand-yellow: #FFB800;
  --brand-orange: #FF6A00;

  /* Supporting colors */
  --bg-dark: #FFFFFF;
  --bg-panel: #F5F5F5;
  --text-light: #1A1A1A;
  --text-muted: #666666;

  /* Gradients */
  --brand-gradient: linear-gradient(90deg, #7800CC 0%, #B6003E 100%);
  --accent-gradient: linear-gradient(90deg, #2AA8FF 0%, #FF6A00 100%);
}

/* ------------------------------------------------------------
   GLOBAL RESET + BASE TYPOGRAPHY
   ------------------------------------------------------------ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

p {
  font-size: 1rem;
  color: var(--text-light);
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: 0.2s ease;
}

a:hover {
  color: var(--brand-yellow);
}

/* ------------------------------------------------------------
   LAYOUT CONTAINERS
   ------------------------------------------------------------ */

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.section {
  padding: 4rem 0;
}

/* ------------------------------------------------------------
   NAVIGATION BAR
   ------------------------------------------------------------ */

nav {
  width: 100%;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #DDDDDD;
}

nav .logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  font-weight: 600;
  color: var(--text-light);
}

nav ul li a:hover {
  color: var(--brand-yellow);
  transform: scale(1.05);
}

/* ------------------------------------------------------------
   HERO SECTION (Start Screen Style)
   ------------------------------------------------------------ */

.hero {
  text-align: center;
  padding: 6rem 0;
  background: var(--brand-gradient);
  color: white;
}

.hero h1 {
  font-size: 3.5rem;
  text-shadow: 0 0 10px rgba(255,255,255,0.4);
}

.hero .cta-buttons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* ------------------------------------------------------------
   BUTTONS (Retro / Game UI Style)
   ------------------------------------------------------------ */

.btn {
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  color: white;
  background: var(--accent-gradient);
  box-shadow: 0 0 10px rgba(255,255,255,0.2);
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 15px rgba(255,255,255,0.4);
}

/* ------------------------------------------------------------
   GAME CARDS (Cartridge / Glitch Style)
   ------------------------------------------------------------ */

.game-card {
  background: var(--bg-panel);
  border: 2px solid var(--brand-purple);
  border-radius: 12px;
  padding: 1.5rem;
  transition: 0.25s ease;
  position: relative;
  overflow: hidden;
}

.game-card:hover {
  transform: translateY(-6px) rotate(-1deg);
  border-color: var(--brand-pink);
  box-shadow: 0 0 20px rgba(186, 0, 255, 0.4);
}

.game-card:hover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.05),
    rgba(255,255,255,0.05) 10px,
    rgba(255,255,255,0.02) 10px,
    rgba(255,255,255,0.02) 20px
  );
  animation: glitch 0.3s infinite;
}

@keyframes glitch {
  0% { transform: translate(0,0); }
  33% { transform: translate(-2px,1px); }
  66% { transform: translate(2px,-1px); }
  100% { transform: translate(0,0); }
}

/* ------------------------------------------------------------
   BLOG / TERMINAL STYLE
   ------------------------------------------------------------ */

.terminal {
  background: #F9F9F9;
  border: 2px solid var(--brand-blue);
  padding: 2rem;
  font-family: "Courier New", monospace;
  color: var(--brand-blue);
  box-shadow: 0 0 15px rgba(0, 150, 255, 0.2);
}

.terminal .entry {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */

footer {
  background: #F5F5F5;
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid #DDDDDD;
}

footer a {
  color: var(--brand-blue);
}

footer a:hover {
  color: var(--brand-yellow);
}

/* ------------------------------------------------------------ 
   HOMEPAGE STYLES
   ------------------------------------------------------------ */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #FFFFFF;
  border-bottom: 1px solid #DDDDDD;
}

.logo {
  height: 50px;
}

.nav {
  display: flex;
  gap: 1rem;
}

.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(45deg, #ff00ff, #00ff00);
  color: white;
}

.press-start {
  font-size: 2rem;
  font-family: monospace;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.start-button {
  background: #ffff00;
  color: black;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  cursor: pointer;
  margin-top: 2rem;
}

.featured-games {
  padding: 2rem;
  text-align: center;
}

.game-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.game-card {
  background: #F5F5F5;
  border: 2px solid #00ff00;
  padding: 1rem;
  width: 200px;
  transition: transform 0.3s;
}

.game-card:hover {
  transform: rotate(5deg) scale(1.1);
  animation: wiggle 0.5s infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(5deg) scale(1.1); }
  25% { transform: rotate(-5deg) scale(1.1); }
  50% { transform: rotate(5deg) scale(1.1); }
  75% { transform: rotate(-5deg) scale(1.1); }
}

.studio-intro, .devlog-preview, .community {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
}

/* ------------------------------------------------------------
   ABOUT PAGE FIXES - ensure panels match white theme
   ------------------------------------------------------------ */

.quest-intro,
.team .member,
.skill-tree .skill {
  background: var(--bg-panel);
  color: var(--text-light);
  padding: 1rem;
  border: 1px solid var(--brand-blue);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.skill-tree {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

/* photo for team members */
.member-photo {
  width: 100%;
  max-width: 150px;
  display: block;
  margin: 0 auto 0.75rem auto;
  border-radius: 50%;
}

.bio {
  background: #F9F9F9;
  padding: 1rem;
  border: 1px solid #2AA8FF;
}

.quest-entries .entry {
  background: #F5F5F5;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid #FF6A00;
}

.community-links a {
  display: block;
  margin: 1rem 0;
  color: #FFB800;
}

/* ------------------------------------------------------------ 
   GAMES LISTING STYLES
   ------------------------------------------------------------ */

.level-select {
  padding: 2rem;
}

.filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.game-item {
  background: #F5F5F5;
  border: 2px solid #B6003E;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s;
}

.game-item:hover .stats {
  display: block;
}

.stats {
  display: none;
  background: #EEEEEE;
  padding: 0.5rem;
  margin-top: 1rem;
}

.enter-button {
  background: #7800CC;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  margin-top: 1rem;
}

/* ------------------------------------------------------------ 
   INDIVIDUAL GAME STYLES
   ------------------------------------------------------------ */

.game-hero {
  text-align: center;
  padding: 2rem;
}

.crt-frame {
  border: 10px solid #000;
  background: #0b0b0d;
  padding: 1rem;
  display: inline-block;
  margin-bottom: 2rem;
}

.game-description, .features, .screenshots, .requirements, .press-quotes {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
}

.gallery {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stat-block {
  background: #1a1a1d;
  padding: 1rem;
  border: 1px solid #2AA8FF;
}

.quote-popup {
  background: #FFB800;
  color: black;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 5px;
}

.loot-button {
  background: #FF6A00;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  cursor: pointer;
  display: block;
  margin: 2rem auto;
}

/* ------------------------------------------------------------ 
   ABOUT STYLES (light theme)
   ------------------------------------------------------------ */

.origin-story, .team, .values, .artifacts {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
}

/* panels already styled above; remove additional dark overrides */

.team-members {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.skill-tree {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

/* note: .quest-intro, .member, .skill rules are handled earlier in file */

/* ------------------------------------------------------------ 
   BLOG STYLES
   ------------------------------------------------------------ */

.log-entries .entry {
  background: #0b0b0d;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid #FF6A00;
  font-family: monospace;
}

.categories {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* ------------------------------------------------------------ 
   PRESS KIT STYLES
   ------------------------------------------------------------ */

.press-kit {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
}

.logo-downloads a {
  display: inline-block;
  margin: 0 1rem;
  color: #FFB800;
}

/* ------------------------------------------------------------ 
   CONTACT STYLES
   ------------------------------------------------------------ */

.contact-form {
  max-width: 600px;
  margin: auto;
  padding: 2rem;
}

.contact-form label {
  display: block;
  margin-top: 1rem;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.5rem;
  background: #1a1a1d;
  border: 1px solid #2AA8FF;
  color: white;
}

.direct-contact, .social-links {
  text-align: center;
  padding: 2rem;
}

/* ------------------------------------------------------------ 
   STORE STYLES
   ------------------------------------------------------------ */

.store {
  text-align: center;
  padding: 4rem 2rem;
}

.coming-soon img {
  max-width: 100%;
  height: auto;
}

.coming-soon p {
  margin-top: 2rem;
  font-size: 1.2rem;
  color: #FFB800;
}

/* ------------------------------------------------------------ 
   STYLE GUIDE STYLES
   ------------------------------------------------------------ */

.colors {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.color {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  text-shadow: 0 0 5px black;
}

/* ------------------------------------------------------------ 
   FOOTER
   ------------------------------------------------------------ */

.footer {
  background: #111114;
  padding: 2rem;
  text-align: center;
  color: #FFFFFF; /* white text for readability */
}

.footer p {
  color: #FFFFFF;
}

.footer a {
  color: var(--brand-blue);
}

.footer a:hover {
  color: var(--brand-yellow);
}

.footer nav {
  margin-top: 1rem;
}