/* Scoped styling for the /games/ showcase page */

.games-intro {
  font-size: 1.04rem;
  color: #37474f;
  margin-bottom: 1.15rem;
}

.games-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.15rem 0 1.75rem;
}

.game-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid var(--game-accent, #ffcd00);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(38, 50, 56, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.game-card--deste {
  --game-accent: #1e40af;
}

.game-card--harita {
  --game-accent: #c46233;
}

.game-card--soundbox {
  --game-accent: #4f46e5;
}

.game-card--wordice {
  --game-accent: #d97706;
}

.game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(38, 50, 56, 0.1);
  border-color: #cbd5e1;
  border-top-color: var(--game-accent, #ffcd00);
}

.entry-content .game-card-media {
  display: block;
  position: relative;
  height: 100%;
  min-height: 220px;
  overflow: hidden;
  background: #f8fafc;
  border-bottom: none;
  border-right: 1px solid #eef2f6;
  text-decoration: none;
}

.entry-content .game-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  transition: transform 0.25s ease;
}

.game-card:hover .game-card-media img {
  transform: scale(1.025);
}

.game-card-body {
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
}

.game-card-head {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.entry-content .game-card-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: #263238;
}

.entry-content .game-card-title a {
  color: inherit;
  border-bottom: none;
  text-decoration: none;
}

.entry-content .game-card-title a:hover,
.entry-content .game-card-title a:focus-visible {
  color: #0f172a;
  border-bottom: 2px solid #ffcd00;
}

.game-card-desc {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: #455a64;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.game-tag {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  line-height: 1.35;
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.2rem;
}

.entry-content .game-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.95rem;
  border-radius: 7px;
  background: #ffcd00;
  color: #1e293b;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
  border-bottom: none;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.entry-content .game-btn:hover,
.entry-content .game-btn:focus-visible {
  background: #f5c400;
  color: #0f172a;
  border-bottom: none;
}

.entry-content .game-post-link {
  font-size: 0.88rem;
  color: #546e7a;
  border-bottom: 1px solid #cfd8dc;
  text-decoration: none;
  line-height: 1.3;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.entry-content .game-post-link:hover,
.entry-content .game-post-link:focus-visible {
  color: #263238;
  border-bottom-color: #ffcd00;
}

.games-outro {
  color: #455a64;
  font-size: 0.96rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .game-card {
    grid-template-columns: 1fr;
  }

  .entry-content .game-card-media {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-right: none;
    border-bottom: 1px solid #eef2f6;
  }

  .game-card-body {
    padding: 1rem 1.05rem 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-card,
  .entry-content .game-card-media img,
  .entry-content .game-btn,
  .entry-content .game-post-link {
    transition: none;
  }

  .game-card:hover,
  .game-card:hover .game-card-media img {
    transform: none;
  }
}
