:root {
  /* Base background & text */
  --bg-color: #1e064b;           /* dark arcade background */
  --text-color: #ffffff;         /* readable white text */

  /* Primary colors */
  --primary-blue: #028dff;
  --primary-pink: #cc02a7;
  --primary-purple: #7a3aff;

  /* Accent / secondary */
  --accent-light: #ff79d1;

  /* Gradient for subtle backgrounds */
  --gradient-one: linear-gradient(360deg, var(--primary-purple), var(--bg-color));
  --gradient-two: linear-gradient(150deg, var(--bg-color), var(--primary-pink), var(--primary-purple));
}

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

body {
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  background: var(--bg-color);
  color: var(--text-color);
  padding: 0 15px;
}

h1, h3 {
  margin-bottom: 10px;
  color: var(--text-color);
}

p {
  margin-bottom: 10px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ====== Layout ====== */
header {
  text-align: center;
  padding: 40px 20px 20px;
  background: var(--gradient-one);
  border-radius: 0 0 12px 12px;
}

header h1 {
  font-size: 2rem;
}

header p {
  font-size: 1.1rem;
  color: #ffffff;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0 60px;
}

footer {
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
  color: var(--text-color);
  background: var(--gradient-two);
  border-top: 1px solid var(--bg-color);
  border-radius: 10px;
}

/* ====== Gallery Grid ====== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* ====== Game Card with Gradient Border ====== */
.game-card {
  border-radius: 12px; /* outer radius for gradient border */
  background: var(--gradient-two); /* gradient as border */
  padding: 3px; /* thickness of border */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card-inner {
  border-radius: 9px; /* slightly smaller than outer to show gradient */
  background: #222; /* card background */
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover .game-card-inner {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.6);
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.6);
  border-color: var(--primary-purple);
}

.game-card img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 8px;
}

.game-card h3 {
  font-size: 1.25rem;
  margin: 10px 0 5px;
  color: var(--primary-blue);
}

.game-card p {
  font-size: 0.95rem;
  color: #ffffff;
  min-height: 45px;
}

/* ====== Buttons ====== */
.play-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 14px;
  background: var(--primary-blue);
  color: #fff;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.2s ease, transform 0.2s ease;
}

.play-btn:hover {
  background: var(--primary-pink);
  transform: scale(1.05);
}

.game-thumbnail {
  width: 280px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  background-color: #444;
}

/* ====== Hidden details ====== */
.game-details {
  display: none;
  margin-top: 8px;
  font-size: 0.9rem;
  color: #ccc;
}

/* Toggle button */
.toggle-btn {
  display: inline-block;
  background-color: #333;
  color: #fff;
  border: none;
  margin: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.toggle-btn:hover {
  background: var(--primary-purple);
  transform: scale(1.05);
}

/* ====== Tag Pills ====== */
.tag-pill {
  display: inline-block;
  margin: 3px 4px;
  padding: 4px 10px;
  border: 1px solid #fff;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  user-select: none;
  color: #fff;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tag-pill:hover {
  background: #fff;
  color: #000000;
  transform: scale(1.05);
}

/* ====== Home Button ====== */
.header-top {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 10px;
}

.home-btn {
  font-size: 3rem;
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.home-btn:hover {
  color: var(--primary-pink);
  transform: scale(1.1);
}

footer a {
  color: inherit; /* keep same text color unless hovered */
  text-decoration: none; /* remove underline */
  padding: 2px 4px; /* add space so bg highlight looks neat */
  border-radius: 3px; /* optional rounded corners */
  transition: background-color 0.3s ease;
}

footer a:hover {
  background-color: #007BFF; /* bootstrap blue */
  color: #fff; /* white text for contrast */
}