/* 
 * TRL Design System - Games List Component 
 * Styling for the games index page
 */

/* .games-list {
  width: 100%;
  max-width: 600px;
  background: linear-gradient(135deg, #00a4e4, #9900ff);
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  font-family: 'Rubik', sans-serif;
  color: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 90vh;
  max-height: 700px;
  user-select: text;
}

.games-list::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
} */

/* .games-list__header {
  padding: 20px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
} */

.games-list__table-header {
  display: grid;
  grid-template-columns: 0.7fr 1.8fr 1fr;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.2);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 1;
}

.games-list__row {
  display: grid;
  grid-template-columns: 0.7fr 1.8fr 1fr;
  padding: 12px 15px;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  color: #ffffff;
  user-select: text;
}

.games-list__row:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.02);
}

.games-list__row:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.games-list__row--host {
  background: linear-gradient(to right, rgba(255, 221, 0, 0.2), rgba(255, 255, 255, 0.05));
}

.games-list__row--host:nth-child(odd) {
  background: linear-gradient(to right, rgba(255, 221, 0, 0.2), rgba(255, 255, 255, 0.02));
}

.games-list__id {
  text-align: center;
}

.games-list__id-host {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  background-color: #ffdd00;
  color: #111111;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 0 10px rgba(255, 221, 0, 0.5);
}

.games-list__id-player {
  color: rgba(255, 255, 255, 0.7);
}

.games-list__info {
  display: flex;
  flex-direction: column;
}

.games-list__name {
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  display: flex;
  align-items: center;
}

.games-list__host-icon {
  margin-right: 6px;
}

.games-list__players {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 3px;
}

.games-list__status {
  text-align: right;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.games-list__status--active {
  color: #00ff9d;
}

.games-list__status--complete {
  color: #00a4e4;
}

.games-list__status--lobby {
  color: #ffdd00;
}

.games-list__date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 3px;
  text-align: right;
}

.games-list__count {
  display: flex;
  flex-direction: column;
}

.games-list__count-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

.games-list__count-value {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
}

.games-list__create-button {
  background-color: #ffdd00;
  color: #111111;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
  text-decoration: none;
  display: inline-block;
}

.games-list__create-button:hover {
  background-color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.games-list__create-button:active {
  transform: translateY(1px);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
}

.games-list__empty-state {
  padding: 30px 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 200px;
}

.games-list__empty-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.games-list__empty-subtitle {
  font-size: 14px;
  opacity: 0.7;
}

/* Responsive design */
@media (max-width: 480px) {
  .games-list__title {
    font-size: 24px;
  }

  .games-list__table-header,
  .games-list__row {
    grid-template-columns: 0.6fr 1.6fr 1.2fr;
    font-size: 11px;
    padding: 10px;
  }

  .games-list__name {
    font-size: 14px;
  }

  .games-list__players {
    font-size: 12px;
  }

  .games-list__status {
    font-size: 13px;
  }

  .games-list__date {
    font-size: 11px;
  }
}
