/*
 * Playno public client — additive styles only.
 *
 * Loaded AFTER the GamePlex v1 theme (assets/css/style.css) and only adds the
 * pieces the catalogue needs: dynamic-state blocks, badges, spec lists,
 * placeholder flags and the unavailable download/trailer treatment.
 * The theme itself is never rewritten.
 */

/* ------------------------------------------------------------------ shared */

.playno-ltr {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

.playno-paragraph {
  color: rgb(var(--n6));
  line-height: 2.1;
  margin-bottom: 16px;
}

.playno-section-head {
  margin-bottom: 24px;
}

.playno-section-title {
  font-size: 22px;
}

.playno-section-sub {
  font-size: 14px;
}

.playno-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.playno-chip {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgb(var(--n5));
  border: 1px solid rgb(var(--n3));
  color: rgb(var(--n6));
  font-size: 13px;
  line-height: 1.8;
}

.playno-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.playno-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgb(var(--n3));
  background: rgba(var(--n1), 0.06);
  color: rgb(var(--n1));
  font-size: 13px;
}

.playno-badge--featured {
  background: rgb(var(--p1));
  border-color: transparent;
}

/* ----------------------------------------------------------------- buttons */

.playno-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border: 1px solid transparent;
  border-radius: 50px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.playno-btn--primary {
  background: rgb(var(--p1));
  color: rgb(var(--n1));
}

.playno-btn--primary:hover {
  background: rgb(var(--p2));
  color: rgb(var(--n0));
}

.playno-btn--ghost {
  background: transparent;
  border-color: rgb(var(--n3));
  color: rgb(var(--n1));
}

.playno-btn--ghost:hover {
  border-color: rgb(var(--p1));
  color: rgb(var(--p1));
}

.playno-btn--sm {
  padding: 8px 18px;
  font-size: 13px;
}

.playno-btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

/* Forced LTR inside the button label keeps "58.52 GB" readable. */
.playno-btn .playno-ltr::before {
  content: "";
}

/* ------------------------------------------------------------------- states */

.playno-state {
  padding: 110px 0 90px;
  text-align: center;
}

.playno-state-loader {
  margin: 0 auto 24px;
}

.playno-state-icon {
  display: block;
  font-size: 54px;
  color: rgb(var(--p1));
  margin-bottom: 16px;
}

.playno-state-title {
  font-size: 24px;
  margin-bottom: 10px;
}

.playno-state-text {
  font-size: 15px;
  line-height: 2;
  margin-bottom: 22px;
}

.playno-state--notfound .display-one {
  line-height: 1.1;
}

/* -------------------------------------------------------------- card extras */

.playno-card-title-link {
  text-decoration: none;
}

.playno-card-sub {
  font-size: 14px;
  line-height: 1.9;
}

.playno-card-excerpt {
  font-size: 14px;
  line-height: 1.9;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.playno-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  margin-top: 12px;
}

.playno-card-meta i {
  color: rgb(var(--p1));
  margin-inline-end: 4px;
}

/* Keeps uploaded artwork undistorted inside the theme's clipped card frame. */
.game-section .game-card-wrapper .game-card .game-img img {
  object-fit: cover;
}

/* -------------------------------------------------------------- catalogue nav */

/* The catalogue header intentionally drops the theme's wallet / notification /
   profile cluster, so on wide screens the nav links sit right beside the brand
   instead of being pushed across the full row. */
@media (min-width: 992px) {
  /* `!important` is required to override Bootstrap's .w-100 utility. Without the
     wallet / profile cluster the theme's two remaining blocks would each claim
     the full row, pushing the links away from the brand. */
  .header-section .navbar-custom .top-bar,
  .header-section .navbar-custom .navbar-toggle-item {
    width: auto !important;
  }
}

/* Keeps the tab strip clear of the theme's fixed header after scrolling. */
.tournament-more-details {
  scroll-margin-top: 120px;
}

/* ----------------------------------------------------------- detail banner */

.playno-back-link {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  border: 1px solid rgb(var(--n3));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgb(var(--n1));
  transition: var(--transition);
}

.playno-back-link:hover {
  background: rgb(var(--p1));
  border-color: rgb(var(--p1));
}

.running-tournament-thumb {
  position: relative;
}

.playno-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px 22px;
}

.playno-meta-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.playno-meta-label {
  font-size: 13px;
}

.playno-meta-value {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.playno-spec-list {
  display: grid;
  gap: 12px;
}

.playno-spec-list .playno-meta-row {
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgb(var(--n3));
}

.playno-spec-list .playno-meta-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.playno-spec-list .playno-meta-label {
  min-width: 118px;
}

.playno-spec-list .playno-meta-value {
  text-align: end;
}

/* ------------------------------------------------------------------- notes */

.playno-notes {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.playno-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgb(var(--n3));
  border-inline-start: 4px solid rgb(var(--n6));
  background: rgb(var(--n4));
}

.playno-note-body {
  line-height: 2;
  color: rgb(var(--n6));
}

.playno-note-icon {
  font-size: 22px;
  line-height: 1.6;
  color: rgb(var(--n6));
}

.playno-note--info {
  border-inline-start-color: rgb(var(--s3));
}

.playno-note--info .playno-note-icon {
  color: rgb(var(--s3));
}

.playno-note--warning {
  border-inline-start-color: rgb(var(--p2));
}

.playno-note--warning .playno-note-icon {
  color: rgb(var(--p2));
}

.playno-note--important {
  border-inline-start-color: rgb(var(--p1));
}

.playno-note--important .playno-note-icon {
  color: rgb(var(--p1));
}

.playno-note--success {
  border-inline-start-color: rgb(var(--s1));
}

.playno-note--success .playno-note-icon {
  color: rgb(var(--s1));
}

/* ------------------------------------------------------- placeholders / media */

.playno-placeholder-flag {
  position: absolute;
  inset-inline-start: 10px;
  bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(var(--n0), 0.72);
  color: rgb(var(--n6));
  font-size: 12px;
  line-height: 1.9;
}

.playno-gallery-media,
.playno-guide-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: rgb(var(--n5));
}

.playno-gallery-media img,
.playno-guide-media img,
.playno-trailer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playno-gallery-item figcaption {
  font-size: 13px;
  line-height: 1.9;
  padding-top: 10px;
}

.playno-trailers .playno-trailer-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgb(var(--n5));
}

.playno-trailer-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgb(var(--p1));
  color: rgb(var(--n1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.playno-trailer-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(var(--n0), 0.78);
  color: rgb(var(--n6));
  font-size: 13px;
  white-space: nowrap;
}

/* --------------------------------------------------------------- downloads */

.playno-package {
  border: 1px solid rgb(var(--n3));
}

.playno-package-description {
  font-size: 14px;
  line-height: 2;
  margin-bottom: 18px;
}

.playno-files {
  display: grid;
  gap: 12px;
}

.playno-file-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgb(var(--n5));
}

.playno-file-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.playno-file-label {
  font-weight: 600;
}

.playno-file-meta {
  font-size: 13px;
}

.playno-file-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.playno-file-unavailable {
  font-size: 12px;
}

/* ------------------------------------------------------------ installation */

.playno-guide-index {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: rgb(var(--p1));
  color: rgb(var(--n1));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.playno-guide-type {
  font-size: 13px;
}

.playno-guide-figure figcaption {
  font-size: 13px;
  line-height: 1.9;
  padding-top: 10px;
}

.playno-guide-video {
  display: inline-flex;
}

.playno-guide-video--empty {
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px dashed rgb(var(--n3));
  font-size: 14px;
}

/* ============================================================
   Homepage sections (rendered from GET /api/v1/homepage)
   ============================================================ */

/* Optional administrator-uploaded hero backdrop. */
.playno-hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.playno-hero .hero-title {
  line-height: 1.35;
}

.playno-hero .hero-text {
  font-size: 17px;
  line-height: 2;
  max-width: 560px;
}

/* Portrait covers must fill the theme's fixed-size media boxes. */
.playno-showcase-thumb img,
.playno-pick-thumb img {
  object-fit: cover;
  height: 100%;
}

.playno-showcase-thumb img {
  border-radius: 50%;
}

.playno-swiper-3d .card-3d .img-area img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.playno-collection-card .tournament-img .img-area img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Real metadata chips replace the theme's price/date/ticket boxes. */
.playno-collection-meta span {
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgb(var(--n3));
  color: rgb(var(--n1));
}

/* Feature cards: uploaded image alternative to the theme icon. */
.playno-feature-media {
  border-radius: 16px;
  overflow: hidden;
  max-height: 180px;
}

.playno-feature-media img {
  width: 100%;
  height: 100%;
  max-height: 180px;
  object-fit: cover;
  display: block;
}

/* Tabbed catalogue: keep the theme's tab paddings inside the section. */
.playno-catalog-tabs .tabcontents {
  min-height: 120px;
}

.playno-catalog-tabs .tablink {
  cursor: pointer;
}

/* Respect admin-disabled site chrome and empty catalogue/footer columns. */
.header-section[hidden],
.footer[hidden],
[data-playno-column][hidden],
[data-playno-social-column][hidden],
[data-catalog-more][hidden],
[data-playno-header-logo][hidden],
[data-playno-footer-logo][hidden],
.flogo-2[hidden] {
  display: none !important;
}

/* Show Playno as the written brand; keep optional admin-uploaded logos supported. */
.playno-footer-wordmark {
  display: block;
  width: fit-content;
  direction: ltr;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: .02em;
}
