/* Layout for the /games/ section pages. Game boards themselves are styled by
   the puzzle engine bundle (static/css/games/puzzle-engine.css). */

.games-section-header h1 {
  font-family: Alata, sans-serif;
  margin-bottom: 1rem;
}

.games-section-intro {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  color: var(--text-secondary-color);
}

.games-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.games-card {
  border-radius: 12px;
  background: var(--secondary-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.games-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.games-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  color: var(--text-color) !important;
  text-decoration: none !important;
}

.games-card-kind {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary-color);
}

.games-card-title {
  font-family: Alata, sans-serif;
  font-size: 1.3rem;
  margin: 0.4rem 0 0.6rem;
}

.games-card-desc {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text-secondary-color);
}

.games-card-meta {
  display: flex;
  gap: 1.5rem;
  margin: 0 0 1rem;
  font-size: 0.85rem;
}

.games-card-meta dt {
  font-weight: 400;
  color: var(--text-secondary-color);
}

.games-card-meta dd {
  margin: 0;
  font-weight: 600;
}

.games-card-cta {
  font-weight: 600;
}

.games-difficulty {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #d8e4f0;
  color: #1f3a56;
}

.games-difficulty-easy { background: #d4edda; color: #1d5a2c; }
.games-difficulty-medium { background: #fff1c2; color: #6b4f00; }
.games-difficulty-hard { background: #f8d7da; color: #7a1c26; }

.games-single {
  padding-top: 2rem;
}

.games-breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.games-single-header h1 {
  margin: 0.4rem 0 0.75rem;
}

.games-single-meta {
  color: var(--text-secondary-color);
  font-size: 0.9rem;
}

.games-single-meta .list-inline-item:not(:last-child)::after {
  content: "·";
  margin-left: 0.5rem;
}

.games-single-content {
  max-width: 920px;
  margin: 1.5rem auto 0;
}

.games-single-tags {
  max-width: 920px;
  margin: 2rem auto 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
}
