/* Root container */
.home-page {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: #1a1a1a;
}

/* Header */
.home-page__header {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff;
  padding: 3rem 1rem;
  text-align: center;
}

.home-page__header-inner {
  max-width: 900px;
  margin: 0 auto;
}

.home-page__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.home-page__subtitle {
  font-size: 1.1rem;
  opacity: 0.85;
}

/* Main content */
.home-page__main {
  padding: 2rem 1rem;
  background-color: #f8fafc;
}

.home-page__content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

/* Card wrapper for view */
.home-page__view.card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-page__view.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
}

/* Empty state */
.home-page__empty {
  text-align: center;
  padding: 3rem;
  background: #fff;
  border-radius: 10px;
  border: 2px dashed #cbd5f5;
  color: #64748b;
}

/* ================================
   Games View Styling (Scoped)
   ================================ */

.view-games {
  background: transparent;
}

/* Container around table */
.view-games .table-responsive {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  background: #fff;
}

/* Table base */
.view-games .views-table {
  width: 100%;
  border: none;
  margin: 0;
  font-size: 0.95rem;
}

/* Header */
.view-games .views-table thead {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff;
}

.view-games .views-table th {
  border: none !important;
  padding: 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.view-games .views-table th a {
  color: #fff;
  text-decoration: none;
}

.view-games .views-table th a:hover {
  text-decoration: underline;
}

/* Rows */
.view-games .views-table tbody tr {
  transition: background 0.15s ease, transform 0.1s ease;
}

.view-games .views-table tbody tr:hover {
  background: #f1f5f9;
}

/* Cells */
.view-games .views-table td {
  padding: 0.9rem 1rem;
  border-top: 1px solid #e2e8f0;
  vertical-align: middle;
}

/* Title column (make clickable content stand out) */
.view-games .views-field-title a {
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
}

.view-games .views-field-title a:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Author column */
.view-games .views-field-uid a {
  color: #475569;
  font-size: 0.9rem;
}

/* Date column */
.view-games .views-field-timestamp {
  color: #94a3b8;
  font-size: 0.85rem;
}

/* Zebra striping override */
.view-games .views-table tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

/* Active sort column highlight */
.view-games .is-active {
  color: #2563eb;
}

/* Hover micro-interaction */
.view-games .views-table tbody tr:hover td {
  transform: translateX(2px);
}
/* Games page */
.home-page__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.game-card {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Keep the like buttons clickable above the card's stretched link. */
.game-card .like-button,
.game-card .golden-heart-button {
  position: relative;
  z-index: 2;
}

/* Golden heart: each player has one to give (see Museum). Outline gold
 * until it is given here, then shining gold. */
.golden-heart-button {
  border: 1px solid #d4a72c;
  color: #d4a72c;
  background: transparent;
  font-weight: 700;
}
.golden-heart-button:hover { border-color: #f5c542; color: #f5c542; }
.golden-heart-button.is-on {
  border-color: #f5c542;
  background: linear-gradient(135deg, #b8860b, #f5c542 45%, #fff1b8 55%, #f5c542 70%, #b8860b);
  background-size: 220% 100%;
  color: #1a1300;
  box-shadow: 0 0 12px rgba(245, 197, 66, 0.55);
  animation: lsx-golden-shine 3s linear infinite;
}
@keyframes lsx-golden-shine { from { background-position: 0 0; } to { background-position: 220% 0; } }
@media (prefers-reduced-motion: reduce) { .golden-heart-button.is-on { animation: none; } }

/* Like button: Bootstrap danger buttons plus a little pop when liked. */
.like-button .js-like-icon {
  transition: transform 0.15s ease;
}

.like-button.is-liked .js-like-icon {
  transform: scale(1.15);
}

/* Bar above each game */
.game-hub-bar {
  gap: 0.5rem 0;
}

.home-page__sort .nav-link:not(.active) {
  color: #0d6efd;
  background: #fff;
  border: 1px solid #0d6efd;
  margin-left: 0.5rem;
}

/* Rarity Index: with many mutations the table scrolls sideways and the
   rarity column stays in view. */
.lsx-rarity-table {
  max-width: 100%;
  margin-bottom: 1rem;
}
.lsx-rarity-table th,
.lsx-rarity-table td {
  white-space: nowrap;
}
.lsx-rarity-table th:first-child,
.lsx-rarity-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}
/* Body cells need a solid background so scrolled columns don't show
   through (the header keeps the theme's own). */
.lsx-rarity-table td:first-child {
  background-color: var(--bs-body-bg, #fff);
}
.lsx-rarity-table td:first-child span,
.lsx-rarity-table td:first-child {
  white-space: normal;
  min-width: 140px;
}
