/* =========================================================
   Global Styles & Variables
   ========================================================= */
:root {
  --primary-bg: #121212;
  --secondary-bg: #1e1e1e;
  --primary-text: #e0e0e0;
  --accent-color: #00b894;
  --link-hover-color: #00e8b8;
  --visited-link-color: #008775;
  --font-body: sans-serif;
  --header-height: 10vh;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: var(--primary-bg);
  color: var(--primary-text);
  margin: 0;
  padding: var(--header-height) 0 0;
}

/* =========================================================
   Utility Classes
   ========================================================= */
.text-center {
  text-align: center;
}

.highlight {
  background-color: var(--link-hover-color);
  color: var(--primary-bg);
  padding: 0 4px;
  border-radius: 2px;
  font-weight: bold;
}

/* =========================================================
   Links
   ========================================================= */
a:link {
  color: var(--link-hover-color);
  text-decoration: none;
}

a:visited {
  color: var(--visited-link-color);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover-color);
}

/* =========================================================
   Header and Navigation
   ========================================================= */
.page-header {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--secondary-bg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  height: var(--header-height);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  padding: 0 2rem;
}

.logo-link img {
  height: 100%;
  max-height: calc(var(--header-height) * 0.7);
  width: auto;
}

.primary-nav {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  color: var(--primary-text);
  text-decoration: none;
  font-size: 20px;
  padding: 0.5rem 0;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
}

/* =========================================================
   Main Content
   ========================================================= */
.content-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.page-title {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.section-title {
  color: var(--primary-text);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

/* =========================================================
   About Us Page
   ========================================================= */
.about-intro p, .our-mission p {
  text-align: left;
  margin-bottom: 1.5rem;
}

.dedicated-to {
  font-style: italic;
  font-size: 1rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
  opacity: 0.7;
}

.join-us-section {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.join-us-section a {
  font-weight: bold;
}

.member-list-section {
  text-align: left;
}

.member-list {
  list-style-type: disc;
  margin: 0;
  padding: 0 0 0 1.5rem;
}

.member-item {
  margin-bottom: 0.5rem;
}

/* =========================================================
   Game Collection Page
   ========================================================= */
.search-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

#search-bar {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem 1rem;
  background: var(--secondary-bg);
  border: 1px solid var(--primary-text);
  border-radius: 8px;
  color: var(--primary-text);
  font-size: 1rem;
  transition: all 0.3s ease;
}

#search-bar::placeholder {
  color: #a0a0a0;
}

#search-bar:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 184, 148, 0.4);
}

#search-button {
  padding: 0.75rem 1.5rem;
  background: var(--accent-color);
  color: var(--primary-bg);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

#search-button:hover {
  background: var(--link-hover-color);
}

.game-collection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  min-height: 25vh;
}

.game-card {
  background-color: var(--secondary-bg);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out forwards;
}

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

.game-card img {
  width: 100%;
  height: auto;
  display: block;
}

.game-info {
  padding: 1.5rem;
  text-align: center;
}

.game-title {
  margin-top: 0;
  font-size: 1.5rem;
  color: var(--primary-text);
}

.game-description {
  color: var(--primary-text);
}

.play-button, .play-button:link, .play-button:visited {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--accent-color);
  color: var(--primary-bg);
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.play-button:hover {
  background-color: var(--link-hover-color);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}