/*
Theme Name: Videojuegos
Theme URI: https://cazandogangas.es
Description: Plantilla hija de Cazando Gangas para contenidos y utilidades de Videojuegos.
Author: CazandoGangas
Author URI: https://cazandogangas.es
Template: esgalla
Version: 0.1.8
Text Domain: cg-videojuegos
*/

body.cg-videojuegos-theme {
  background:
    radial-gradient(circle at top right, rgba(72, 108, 255, .18), transparent 34%),
    linear-gradient(180deg, #131620 0%, #0f1118 100%);
  color: #eef1ff;
}

.cg-games-shell {
  max-width: 1220px;
  margin: 0 auto;
  padding: 26px 18px 56px;
}

.cg-games-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.cg-games-meta {
  margin: 0;
  color: #ff7b6c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.cg-games-title {
  margin: 6px 0 0;
  color: #f4f6ff;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

.cg-games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.cg-games-panel,
.cg-games-strip article {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  padding: 18px 20px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
}

.cg-games-panel--feature {
  display: grid;
  grid-template-columns: minmax(140px, 190px) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 244px;
}

.cg-games-feature-copy {
  display: grid;
  align-content: center;
  gap: 14px;
}

.cg-games-panel strong,
.cg-games-strip article strong {
  display: block;
  margin-bottom: 10px;
  color: #ff8d6f;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.cg-games-cover {
  width: min(100%, 190px);
  margin: 0 auto;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), transparent 42%),
    rgba(0, 0, 0, .22);
  box-shadow: 0 16px 24px rgba(0, 0, 0, .28);
}

.cg-games-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.cg-games-panel h2,
.cg-games-strip article h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1.06;
}

.cg-games-panel p,
.cg-games-strip article p,
.cg-games-ranking-empty {
  margin: 0;
  color: #c4cce3;
  line-height: 1.55;
}

.cg-games-description {
  max-width: 56ch;
  font-size: 19px;
  line-height: 1.56;
}

.cg-games-description.is-short {
  max-width: 38ch;
  font-size: 24px;
  line-height: 1.34;
}

.cg-games-description.is-medium {
  max-width: 48ch;
  font-size: 21px;
  line-height: 1.46;
}

.cg-games-description.is-long {
  font-size: 18px;
  line-height: 1.62;
}

.cg-games-strip .cg-games-description {
  font-size: 16px;
  line-height: 1.54;
}

.cg-games-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  padding: 10px 14px;
  border: 1px solid rgba(255, 141, 111, .65);
  color: #fff;
  background: #d9271d;
  font-weight: 700;
  text-decoration: none;
}

.cg-games-button:hover,
.cg-games-button:focus {
  color: #fff;
  background: #f43a2f;
}

.cg-games-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.cg-games-upcoming {
  margin-top: 24px;
  padding: 14px 18px;
  border: 1px dashed rgba(255, 255, 255, .18);
}

.cg-games-upcoming strong {
  display: block;
  color: #ff8d6f;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.cg-games-upcoming p {
  margin: 0;
  color: #c4cce3;
}

.cg-games-upcoming--quiet {
  opacity: .82;
}

.cg-games-panel--ranking {
  display: flex;
  flex-direction: column;
  min-height: 244px;
}

.cg-games-ranking-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.cg-games-ranking-head strong {
  margin-bottom: 0;
}

.cg-games-ranking-head span {
  color: #9fa8c0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
}

.cg-games-ranking-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cg-games-ranking-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(0, 0, 0, .18);
  color: #eef1ff;
}

.cg-games-ranking-pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: #d9271d;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.cg-games-ranking-name {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.cg-games-ranking-score {
  color: #ffdf75;
  font-size: 18px;
  font-weight: 800;
}

.cg-games-ranking-empty {
  grid-template-columns: 1fr !important;
}

@media (max-width: 980px) {
  .cg-games-header,
  .cg-games-grid,
  .cg-games-strip {
    grid-template-columns: 1fr;
  }

  .cg-games-header {
    display: grid;
    justify-items: start;
  }

  .cg-games-panel--feature {
    grid-template-columns: 1fr;
  }

  .cg-games-description,
  .cg-games-description.is-short,
  .cg-games-description.is-medium,
  .cg-games-description.is-long {
    max-width: 100%;
    font-size: 18px;
    line-height: 1.56;
  }

  .cg-games-cover {
    max-width: 220px;
  }
}
