/* Reset */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: 'Segoe UI', sans-serif; line-height: 1.6; color: #dcdfe4; background: #0d0f11; }

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

/* Header */
.site-header {
  background: rgba(0,0,0,0.8);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}
.logo img { height: 64px; }
.mobile { display: none; }

/* Link formating */
nav a {
  color: #fff; margin-left: 2rem; text-decoration: none; font-weight: 600;
  transition: color 0.3s;
}

nav a:hover, nav a.active { color: #0f8; }  /* base hover */

a { color: #8ac6ff; }

a:hover, a:focus { color: #cde8ff; }

a:visited { color: #b3d4ff; }

/* Hero (for pages with background) */
.hero {
  min-height: 40vh;
  background-size: contain;
  // background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
}
.hero-content {
  position: relative; z-index: 1; max-width: 800px;
}
.hero h1 { font-size: 4rem; margin-bottom: 1rem; }
.hero p { font-size: 1.5rem; }

/* Game Cards (on /games/) */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 8rem;
  padding: 2rem;
}
.game-card {
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s;
  backdrop-filter: blur(5px);
}
.game-card:hover { transform: translateY(-15px); }
.game-card img {
  width: 100%; height: 200px; object-fit: cover;
}
.game-card h3 { padding: 1rem 1.5rem 0; }
.game-card p { padding: 0 1.5rem 1.5rem; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 768px) {
  .desktop { display: none; }
  .mobile { display: block; }
  .hero h1 { font-size: 2.5rem; }
}

footer .copyright {
  color: #9d9fb4;        /* matches footer text tone */
  font-size: 0.85rem;
  margin: 0;
}

.social-links {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.social-links a {
  color: #8ac6ff;    /* matches your link color */
  display: inline-flex;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.social-links a:hover {
  opacity: 1;
  color: #cde8ff;     /* slight hover brighten */
}

/* Make images in markdown look nice */
article img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  display: block;
  margin: 3rem auto;
}


/* Markdown overrides */
.markdown-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem;
  
  background-color: transparent;
  color: #eee;
}

/* Make markdown headings match the site’s light-on-dark palette */
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  color: #fff;        /* brighten headings */
}

/* So the h1/h2 underline rules aren’t too bright */
.markdown-body h1,
.markdown-body h2 {
  border-color: #333;
}

/* Dark theme table override */
.markdown-body table {
  background-color: #15171a;      /* dark neutral panel */
  color: #e0e3e6;
  border-color: #2b2d31;          /* outer border */
}

.markdown-body th,
.markdown-body td {
  background-color: #1a1c1f;      /* slightly lighter than page bg */
  color: #e0e3e6;                 /* readable */
  border: 1px solid #2b2d31;
  padding: 0.5rem 0.75rem;
}

/* optional: make header row pop slightly */
.markdown-body th {
  background-color: #202326;
  color: #fff;
  font-weight: 600;
}
