/* Platform showcase (platform-showcase.js), 2026-11-27: Minecraft / Rust / Roblox / Garry's Mod tabs get the
   FiveM home treatment. Reuses home.css (.lh card/rail/bento) and showcase.css (.sc-stats/.sc-cats); this file
   only shows the block on non-FiveM tabs and tints it with each platform's colours. Loaded after showcase.css. */
body[data-game="fivem"] .lh.lh-platform{display:none}
body:not([data-game="fivem"]) .lh.lh-platform{display:block;position:relative;isolation:isolate;padding-bottom:clamp(24px,4vw,56px)}
.lh-platform[hidden]{display:none!important}
.lh-platform .pf-section{position:relative}
.lh-platform .lh-section{padding-top:clamp(44px,5.5vw,76px)}
.lh-platform .lh-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;flex-wrap:wrap}

/* platform palettes */
body[data-game="minecraft"]{--pf-a:#5fd37a;--pf-b:#4c8dff;--pf-a-rgb:95,211,122;--pf-b-rgb:76,141,255;--pf-soft:#bff3c9}
body[data-game="rust"]{--pf-a:#e8683a;--pf-b:#c9a227;--pf-a-rgb:232,104,58;--pf-b-rgb:201,162,39;--pf-soft:#ffc9a8}
body[data-game="roblox"]{--pf-a:#3fa2ff;--pf-b:#ffc83d;--pf-a-rgb:63,162,255;--pf-b-rgb:255,200,61;--pf-soft:#bfe0ff}
body[data-game="gmod"]{--pf-a:#2fd2c8;--pf-b:#ff9f43;--pf-a-rgb:47,210,200;--pf-b-rgb:255,159,67;--pf-soft:#b8f3ee}

/* ambient page light follows the platform */
body:not([data-game="fivem"])::before{
  background:radial-gradient(28vmax 28vmax at 12% 18%,rgba(var(--pf-a-rgb),.13),transparent 70%),
             radial-gradient(30vmax 30vmax at 88% 40%,rgba(var(--pf-b-rgb),.10),transparent 70%),
             radial-gradient(26vmax 26vmax at 40% 90%,rgba(var(--pf-a-rgb),.07),transparent 70%)}
.lh-platform .pf-glow{position:absolute;inset:-40px 0 auto;height:520px;z-index:-1;pointer-events:none;
  background:radial-gradient(50% 60% at 20% 20%,rgba(var(--pf-a-rgb),.16),transparent 70%),radial-gradient(40% 60% at 85% 40%,rgba(var(--pf-b-rgb),.12),transparent 70%)}

/* stats band */
.lh-platform .sc-stats{background-image:linear-gradient(135deg,rgba(var(--pf-a-rgb),.16),rgba(17,26,44,.9) 38%,rgba(var(--pf-b-rgb),.13))}
.lh-platform .sc-stat b{background-image:linear-gradient(180deg,#fff,var(--pf-soft))}
.lh-platform .sc-trust svg{color:var(--pf-a)}
.lh-platform .sc-trust li{transition:border-color .3s,background .3s,transform .3s}
.lh-platform .sc-trust li:hover{border-color:rgba(var(--pf-a-rgb),.45);background:rgba(var(--pf-a-rgb),.06);transform:translateY(-2px)}

/* headings, eyebrows, chips */
.lh-platform .lh-eyebrow{color:var(--pf-a)}
.lh-platform .lh-head h2>span{color:var(--pf-a)}
.lh-platform .lh-head h2::after,
body:not([data-game="fivem"]) .section-heading h2::after{background:linear-gradient(90deg,var(--pf-a),var(--pf-b),transparent)}

/* featured bento + rails */
.lh-platform .lh-card:hover{border-color:rgba(var(--pf-a-rgb),.55);box-shadow:0 30px 60px -30px rgba(var(--pf-a-rgb),.55)}
.lh-platform .lh-bento .lh-card:first-child{grid-column:span 2;grid-row:span 2}
.lh-platform .lh-bento .lh-card:first-child h3{font-size:clamp(22px,2.2vw,28px)}
.lh-platform .lh-btn-primary{background:linear-gradient(135deg,var(--pf-a),color-mix(in srgb,var(--pf-a) 60%,var(--pf-b)));border-color:transparent;color:#071018}
.lh-platform .lh-btn-ghost:hover{border-color:rgba(var(--pf-a-rgb),.6)}
.lh-platform .lh-card-updated{font-size:12px;font-weight:700;color:var(--pf-soft)}
.lh-platform .lh-price{font-weight:800}

/* category tiles: 12-column grid, rows filled by platform-showcase.js */
.lh-platform .pf-cats{grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-rows:190px}
.lh-platform .sc-cat-copy>span{color:var(--pf-soft)}
.lh-platform .sc-cat:hover,.lh-platform .sc-cat:focus-visible{border-color:rgba(var(--pf-a-rgb),.6);box-shadow:0 26px 60px -30px rgba(var(--pf-a-rgb),.6)}
.lh-platform .sc-cat::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(115deg,transparent 35%,rgba(255,255,255,.10) 50%,transparent 65%);transform:translateX(-120%);transition:transform .9s cubic-bezier(.2,.7,.2,1)}
.lh-platform .sc-cat:hover::after{transform:translateX(120%)}

/* the regular collection grid on these tabs picks up the platform glow too */
body:not([data-game="fivem"]) .product-card:hover{box-shadow:0 28px 60px -32px rgba(var(--pf-a-rgb),.6)!important;border-color:rgba(var(--pf-a-rgb),.45)!important}

@media (max-width:1100px){
  .lh-platform .lh-bento{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lh-platform .lh-bento .lh-card:first-child{grid-column:span 2;grid-row:auto}
  .lh-platform .pf-cats{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:150px}
  .lh-platform .pf-cats .sc-cat{grid-column:auto!important}
}
@media (max-width:640px){
  .lh-platform .lh-bento{grid-template-columns:1fr}
  .lh-platform .lh-bento .lh-card:first-child{grid-column:auto}
  .lh-platform .lh-bento .lh-card:first-child .lh-card-media{min-height:0;aspect-ratio:16/9}
  .lh-platform .pf-cats{grid-auto-rows:120px;gap:12px}
}
@media (prefers-reduced-motion:reduce){.lh-platform .sc-cat::after{display:none}}
/* big featured card: summary + top features under the cover */
.lh-platform .pf-feats{list-style:none;margin:6px 0 4px;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}
.lh-platform .pf-feats li{position:relative;padding-left:18px;font-size:14px;line-height:1.45;color:#c9d1e2}
.lh-platform .pf-feats li::before{content:"";position:absolute;left:0;top:.55em;width:8px;height:8px;border-radius:2px;background:linear-gradient(135deg,var(--pf-a),var(--pf-b));transform:rotate(45deg)}
.lh-platform .lh-bento .lh-card:first-child p{-webkit-line-clamp:4;min-height:0}
@media (max-width:640px){.lh-platform .pf-feats{grid-template-columns:1fr}}
