/* /slots/ archive — filter pills + grid of slot cards.
   Scoped under body.ccs-rev-fullwidth (added when ccs_slots_v2_is_active()). */

body.ccs-rev-fullwidth .ccs-slot-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: var(--ccs-radius-xl);
  box-shadow: var(--ccs-shadow-card);
  padding: 14px 18px;
  margin: 0 0 24px;
  font-family: var(--ccs-font-display);
}
body.ccs-rev-fullwidth .ccs-slot-filter__label {
  font-family: var(--ccs-font-label, "Inter"), sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ccs-outline);
  margin-right: 4px;
}
body.ccs-rev-fullwidth .ccs-slot-filter__pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--ccs-radius-full, 999px);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ccs-primary);
  background: var(--ccs-primary-fixed, #f3e9ff);
  transition: background 0.15s, color 0.15s;
}
body.ccs-rev-fullwidth .ccs-slot-filter__pill:hover {
  background: var(--ccs-primary);
  color: #fff;
}
body.ccs-rev-fullwidth .ccs-slot-filter__pill.is-active {
  background: var(--ccs-primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(49, 0, 88, 0.25);
}

body.ccs-rev-fullwidth .ccs-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0 0 32px;
}
@media (min-width: 600px)  { body.ccs-rev-fullwidth .ccs-slot-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { body.ccs-rev-fullwidth .ccs-slot-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
@media (min-width: 1400px) { body.ccs-rev-fullwidth .ccs-slot-grid { grid-template-columns: repeat(5, 1fr); } }

body.ccs-rev-fullwidth .ccs-slot-card {
  background: #fff;
  border-radius: var(--ccs-radius-xl);
  box-shadow: var(--ccs-shadow-card);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
body.ccs-rev-fullwidth .ccs-slot-card:hover {
  box-shadow: var(--ccs-shadow-card-hover);
  transform: translateY(-2px);
}
body.ccs-rev-fullwidth .ccs-slot-card__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
body.ccs-rev-fullwidth .ccs-slot-card__image {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--ccs-primary, #310058), var(--ccs-cta-orange, #f7a335));
  overflow: hidden;
}
body.ccs-rev-fullwidth .ccs-slot-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
body.ccs-rev-fullwidth .ccs-slot-card__mono {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ccs-font-display);
  font-size: 56px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
body.ccs-rev-fullwidth .ccs-slot-card__body {
  display: block;
  padding: 14px 16px 18px;
}
body.ccs-rev-fullwidth .ccs-slot-card__title {
  font-family: var(--ccs-font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ccs-primary);
  margin: 0 0 4px;
}
body.ccs-rev-fullwidth .ccs-slot-card__provider {
  font-family: var(--ccs-font-label, "Inter"), sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ccs-outline);
}

body.ccs-rev-fullwidth .ccs-slot-pager {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding: 8px 0 32px;
  font-family: var(--ccs-font-display);
}
body.ccs-rev-fullwidth .ccs-slot-pager a {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: #fff;
  border-radius: var(--ccs-radius-full, 999px);
  box-shadow: var(--ccs-shadow-card);
  color: var(--ccs-primary);
  font-weight: 700;
  text-decoration: none;
}
body.ccs-rev-fullwidth .ccs-slot-pager a:hover {
  background: var(--ccs-primary);
  color: #fff;
}
body.ccs-rev-fullwidth .ccs-slot-empty {
  background: #fff;
  border-radius: var(--ccs-radius-xl);
  box-shadow: var(--ccs-shadow-card);
  padding: 32px;
  text-align: center;
  color: var(--ccs-on-surface-variant);
}

/* ============================================================
   Single slot page — review-style layout. The default markup is:
     <article class="game">
       <header class="entry-header"><h1 class="entry-title">...</h1></header>
       <div class="featured-image"><img ...></div>
       <div class="entry-content">
         <p>... copy ...</p>
         <h2>Theme</h2> ... etc.
         <h2 class="info-headings">{Title} Slot Details</h2>
         <table class="slot-info-table"> ... </table>
       </div>
     </article>
   We re-skin this in-place with V2 tokens — no template rewrite.
   ============================================================ */

body.ccs-rev-fullwidth.single-game .inside-article,
body.ccs-rev-fullwidth.single-game article.game {
  background: transparent;
  padding: 0;
  margin: 0;
}

body.ccs-rev-fullwidth.single-game article.game > .inside-article,
body.ccs-rev-fullwidth.single-game article.game {
  display: block;
  max-width: var(--ccs-container-max, 1700px);
  margin: 0 auto;
  padding: 0 16px;
}

/* Hero: featured image left, title + meta right at desktop; stacked on mobile. */
body.ccs-rev-fullwidth.single-game article.game .entry-header {
  display: none !important;  /* render an in-content hero instead */
}
body.ccs-rev-fullwidth.single-game article.game .featured-image {
  background: #fff;
  border-radius: var(--ccs-radius-xl);
  box-shadow: var(--ccs-shadow-card);
  padding: 24px;
  margin: 0 0 24px;
  text-align: center;
}
body.ccs-rev-fullwidth.single-game article.game .featured-image img {
  max-width: 360px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: var(--ccs-radius-lg, 12px);
}

/* Editorial body — same white-card treatment as listing-body. The !important
   here overrides the broad `.entry-content` transparency rule in tokens.css.
   `display: flow-root` establishes a new block formatting context so the
   floated featured image inside is contained within the white card (otherwise
   the card collapses to text height and the image bleeds out the bottom). */
body.ccs-rev-fullwidth.single-game article.game .entry-content {
  background: #fff !important;
  border-radius: var(--ccs-radius-xl);
  box-shadow: var(--ccs-shadow-card);
  padding: 32px !important;
  margin: 0 0 32px !important;
  display: flow-root;
  font-family: var(--ccs-font-display);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ccs-on-surface-variant);
}
@media (max-width: 1023px) {
  body.ccs-rev-fullwidth.single-game article.game .entry-content { padding: 20px 16px !important; }
}
@media (max-width: 600px) {
  body.ccs-rev-fullwidth.single-game article.game .entry-content { padding: 16px 12px !important; }
}
body.ccs-rev-fullwidth.single-game article.game .entry-content > p { margin: 0 0 16px; }
body.ccs-rev-fullwidth.single-game article.game .entry-content > p:first-child {
  font-size: 19px;
  color: var(--ccs-on-surface);
}
body.ccs-rev-fullwidth.single-game article.game .entry-content h2 {
  font-family: var(--ccs-font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--ccs-primary);
  margin: 28px 0 12px;
  line-height: 1.3;
}
body.ccs-rev-fullwidth.single-game article.game .entry-content h2.info-headings {
  border-top: 1px solid var(--ccs-outline-variant);
  padding-top: 24px;
  margin-top: 32px;
  font-size: 22px;
}
body.ccs-rev-fullwidth.single-game article.game .entry-content h3 {
  font-family: var(--ccs-font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--ccs-primary);
  margin: 20px 0 10px;
}
body.ccs-rev-fullwidth.single-game article.game .entry-content a {
  color: var(--ccs-primary);
  text-decoration: underline;
}
/* Float-left/right images in the article body need breathing room from the
   wrapping text — both the featured slot thumbnail and any inline images. */
body.ccs-rev-fullwidth.single-game article.game .entry-content img.alignleft,
body.ccs-rev-fullwidth.single-game article.game .entry-content .alignleft img,
body.ccs-rev-fullwidth.single-game article.game .entry-content .wp-caption.alignleft {
  float: left;
  margin: 4px 24px 16px 0;
  max-width: 35%;
  height: auto;
}
body.ccs-rev-fullwidth.single-game article.game .entry-content img.alignright,
body.ccs-rev-fullwidth.single-game article.game .entry-content .alignright img,
body.ccs-rev-fullwidth.single-game article.game .entry-content .wp-caption.alignright {
  float: right;
  margin: 4px 0 16px 24px;
  max-width: 35%;
  height: auto;
}
@media (max-width: 600px) {
  body.ccs-rev-fullwidth.single-game article.game .entry-content img.alignleft,
  body.ccs-rev-fullwidth.single-game article.game .entry-content img.alignright {
    float: none;
    margin: 0 auto 16px;
    display: block;
    max-width: 100%;
  }
}

/* "Slot Details" heading rendered by GP element 32383 — sits outside the
   entry-content, on generate_after_entry_content. Wrap it visually so it
   matches the V2 card pattern. */
body.ccs-rev-fullwidth.single-game .info-headings,
body.ccs-rev-fullwidth.single-game h2.info-headings {
  background: #fff;
  border-radius: var(--ccs-radius-xl) var(--ccs-radius-xl) 0 0;
  padding: 24px 32px 0;
  margin: 0;
  font-family: var(--ccs-font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--ccs-primary);
  line-height: 1.3;
}
/* Slot info table */
body.ccs-rev-fullwidth.single-game .slot-info-table {
  width: calc(100% - 0px);
  border-collapse: collapse;
  margin: 0 0 32px;
  background: #fff;
  padding: 16px 32px 32px;
  border-radius: 0 0 var(--ccs-radius-xl) var(--ccs-radius-xl);
  box-shadow: var(--ccs-shadow-card);
  font-family: var(--ccs-font-display);
  /* The table is inline-collapsed; use display:table inside a block parent
     so padding & border-radius render correctly. */
  display: table;
}
/* The two H2 + table sit as siblings on generate_after_entry_content, but the
   shadow + radius look right if they stack flush. Pull the table up to meet
   the heading. */
body.ccs-rev-fullwidth.single-game .info-headings + .slot-info-table {
  margin-top: 0;
}
body.ccs-rev-fullwidth.single-game .slot-info-table tr {
  border-bottom: 1px solid var(--ccs-outline-variant);
}
body.ccs-rev-fullwidth.single-game .slot-info-table tr:last-child {
  border-bottom: 0;
}
body.ccs-rev-fullwidth.single-game .slot-info-table td {
  padding: 12px 8px;
  font-size: 15px;
  vertical-align: top;
}
body.ccs-rev-fullwidth.single-game .slot-info-table td:first-child {
  width: 38%;
  font-family: var(--ccs-font-label, "Inter"), sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ccs-outline);
}
body.ccs-rev-fullwidth.single-game .slot-info-table td:last-child {
  font-weight: 600;
  color: var(--ccs-on-surface);
}

/* Auto-injected byline + author box already styled via author-box.css. We just
   make sure the byline at the top of the slot doesn't bump up against
   the featured image. */
body.ccs-rev-fullwidth.single-game .sf-byline {
  margin-bottom: 16px;
}
