/* The platform look (loaded after app.css, so it wins where they both say something).

   Same colours as before (white boxes, blue buttons and links), except the bars at the
   top and the big banners are red now, like the logo. What changes beyond that is
   the design: a wider, busier "portal" page in the spirit of the big Flash-era portal
   sites, with heavy uppercase headings, chunky boxes with thick borders, product tabs
   with their own second bar, and big banners and tiles on the front pages.

   Everything here only uses the colour tokens from app.css (--blue, --panel, --line...),
   so dark mode and Gutstober keep working, and changing a colour is still a one-line job
   in app.css. To go back to the old design, remove the <link> to this file. */

:root { --gb-page-width: 1060px; --gb-radius: 0; --gb-thick: 2px; --gb-red: #d4202a; }

/* A faint diagonal hatch behind the page, so the background isn't a flat sheet. */
body {
  background-color: var(--bg);
  background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.035) 0 2px, transparent 2px 9px);
}

/* --- The bars at the top: red, like the logo ------------------------------------------ */
.topbar { background: linear-gradient(#d0242c, #8a0f15); border-bottom: 1px solid #5a080c; }
.topbar .topsearch input[type=search] { border-color: #5a080c; }
.nav { background: linear-gradient(#f26a6a 0%, #e0383c 50%, #cc2228 51%, #b01a20 100%); border-top: 1px solid #ff9b9b;
  border-bottom: 1px solid #7d1015; }
.nav .badge, .nav .unread { background: #fff; color: var(--gb-red); text-shadow: none; }
.topbar .wrap { min-height: 60px; }
.logo img { height: 52px; }
.nav a { text-transform: uppercase; letter-spacing: .4px; font-family: var(--gb-font); font-size: 13px;
  padding: 10px 16px; }
.nav a.on { background: linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,.1)); box-shadow: inset 0 -3px 0 #fff; }
.soon-tag { display: inline-block; margin-left: 3px; padding: 0 5px; border-radius: 2px; vertical-align: 1px;
  font: bold 9px/15px var(--gb-font); letter-spacing: .4px; text-transform: uppercase; text-shadow: none;
  color: #fff; background: var(--gb-red); }
.nav .soon-tag { color: var(--gb-red); background: #fff; }

/* Each product's own second bar (Games: Discover, Catalog, Create...). */
.section-bar { background: linear-gradient(var(--head1), var(--head2)); border-bottom: var(--gb-thick) solid var(--gb-red); }
.section-bar[hidden] { display: none; }
.section-bar .wrap { gap: 0; flex-wrap: wrap; min-height: 34px; }
.section-name { margin-right: 10px; padding: 0 10px 0 0; border-right: var(--gb-thick) solid var(--line);
  font: 15px/34px var(--gb-font); text-transform: uppercase; letter-spacing: .3px; color: var(--headText); }
.section-bar a { padding: 8px 11px; font-weight: bold; font-size: 12px; color: var(--headText); text-transform: uppercase; }
.section-bar a:hover { background: rgba(0,0,0,.06); text-decoration: none; }
.section-bar a.on { color: #fff; background: var(--gb-red); text-decoration: none; }
.subnav a { text-transform: uppercase; letter-spacing: .2px; }

/* --- The page and its boxes ------------------------------------------------------- */
.content { border-width: var(--gb-thick); padding: 16px 18px 24px; }
h1 { font-size: 26px; text-transform: uppercase; letter-spacing: -.2px; line-height: 1.1; }
h2, .boxhead { font-family: var(--gb-font); text-transform: uppercase; letter-spacing: .3px; font-size: 14px;
  border-width: 0 0 var(--gb-thick); border-bottom-color: var(--blue); border-left: 6px solid var(--blue);
  padding: 7px 10px; }
.box { border-width: var(--gb-thick); box-shadow: 0 2px 0 rgba(0,0,0,.08); }
.btn { text-transform: uppercase; letter-spacing: .3px; }
.btn.big { font-family: var(--gb-font); font-size: 17px; padding: 10px 26px; }
.chip { font-weight: bold; text-transform: uppercase; font-size: 11px; letter-spacing: .3px; border-radius: 2px; }

/* Game and item tiles: a thick frame, a heavy name, and a small lift on hover. */
.card .pic { border-width: var(--gb-thick); transition: transform .12s ease, box-shadow .12s ease; }
.card:hover .pic { outline: none; transform: translateY(-2px); box-shadow: 0 4px 0 var(--blue); border-color: var(--blue); }
.card .name { font-family: var(--gb-font); font-size: 13px; }
.grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

/* --- Big banners on the front pages ---------------------------------------------- */
.portal-hero { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin: 0 0 14px; padding: 22px 24px;
  color: #fff; border: var(--gb-thick) solid #5a080c; background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 10px),
    linear-gradient(#d0242c, #8a0f15); }
.portal-hero > div:first-child { flex: 1; min-width: 240px; }
.portal-hero h1 { color: #fff; font-size: 34px; margin: 4px 0 8px; text-shadow: 0 3px 0 rgba(0,0,0,.35); }
.portal-hero p { font-size: 14px; max-width: 560px; }
.portal-hero a:not(.btn) { color: #ffd65a; }
.portal-kicker { display: inline-block; padding: 2px 8px; font: 11px/18px var(--gb-font); letter-spacing: 1px;
  color: var(--gb-red); background: #fff; }
.welcome.portal-hero { color: #fff; border-color: #5a080c; }
/* (beats app.css's dark-mode welcome colours, which are more specific) */
body .content .welcome.portal-hero { color: #fff; border-color: #5a080c; background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 10px),
    linear-gradient(#d0242c, #8a0f15); }
.welcome.portal-hero h1 { font-size: 34px; }
.games-hero-search { display: flex; gap: 6px; flex: 0 1 340px; }
.games-hero-search input[type=search] { flex: 1; min-width: 0; }
.soon-plans { font-size: 14px; line-height: 1.7; }

/* The product tiles on Home. */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.product-card { display: flex; gap: 10px; align-items: flex-start; padding: 10px; color: var(--text);
  border: var(--gb-thick) solid var(--line); background: var(--panel2); text-decoration: none !important;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease; }
.product-card:hover { transform: translateY(-2px); border-color: var(--blue); box-shadow: 0 4px 0 var(--blue); }
.product-card b { font: 16px var(--gb-font); text-transform: uppercase; color: var(--headText); }
.product-text > span:last-child { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.product-icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; color: #fff;
  font: 24px var(--gb-font); background: var(--blue); box-shadow: inset 0 -4px 0 rgba(0,0,0,.25); }
.product-videos .product-icon { background: var(--gb-red); }
.product-live .product-icon { background: var(--green); }
.product-communities .product-icon { background: var(--gold); }
.product-chat .product-icon { background: var(--blue-dark); }
.product-fyxa .product-icon { background: #3a3f4a; }
.product-sysfix .product-icon { background: #16a34a; }       /* the download apps (products.js APPS) */
.product-contentforge .product-icon { background: #7c5cff; }
.product-group .small { float: right; text-transform: none; }
.product-card.is-soon, .product-card.is-studio { border-style: dashed; }

/* Phones: everything in one column, smaller banner type. */
@media (max-width: 720px) {
  .portal-hero { padding: 16px; }
  .portal-hero h1, .welcome.portal-hero h1 { font-size: 26px; }
  .games-hero-search { flex-basis: 100%; }
  .section-name { display: none; }
  .nav a { padding: 8px 10px; font-size: 12px; }
}
