/* Theme "gamxo": a dark gaming-news/esports magazine look modeled on the
   Gamxo WordPress theme (radiustheme.com/demo/wordpress/themes/gamxo).
   Dark utility bar + full-bleed dark hero with a strong outlined CTA,
   a horizontal "ticker strip" of circular-thumbnail mini stories right
   under the hero (this theme's signature, distinct from every other
   theme's hero treatment), flat red section-header blocks over an
   otherwise light/white content body, and category badges colored per
   category (not a single flat accent) the way gaming sites tag genres.
   Same renderHome/renderCategory/renderPost/renderTag/renderSearch/
   renderAbout contract as every other theme (see
   functions/_themes/gamxo.js). */
:root {
  --ink: #14151b; --muted: #75798a; --line: #e7e7ec; --paper: #ffffff;
  --accent: #ff2d55; --accent-ink: #ffffff; --sidebar-bg: #f4f4f7; --badge: #14151b;
  --cat-1: #7c3aed; --cat-2: #ff2d55; --cat-3: #0ea5e9; --cat-4: #16a34a; --cat-5: #f59e0b;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
body { font-family: 'Inter', -apple-system, sans-serif; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: 'Inter', -apple-system, sans-serif; margin: 0; font-weight: 800; letter-spacing: -.01em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.placeholder-img {
  display: flex; align-items: center; justify-content: center; width: 100%; object-fit: cover;
  background: linear-gradient(135deg, #23242c, #14151b); color: #6c6f7c;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}

/* --- Utility bar + masthead + nav --- */
.utility-bar { background: var(--badge); color: #9a9ba5; font-size: 12px; border-bottom: 1px solid #24252d; }
.utility-bar .wrap { display: flex; align-items: center; justify-content: space-between; padding: 9px 24px; flex-wrap: wrap; gap: 8px; }
.utility-left { display: flex; gap: 8px; align-items: center; }
.icon-dot { width: 24px; height: 24px; border-radius: 50%; background: #23242c; display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 800; color: #fff; }
.icon-dot:hover { background: var(--accent); }
.utility-right { display: flex; gap: 16px; align-items: center; font-weight: 700; color: #c3c4cc; text-transform: uppercase; font-size: 11px; letter-spacing: .05em; }
.utility-right a:hover { color: var(--accent); }

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; gap: 20px; flex-wrap: wrap; }
.logo-group { display: flex; align-items: center; gap: 12px; }
.logo-box { width: 42px; height: 42px; flex-shrink: 0; border-radius: 8px; background: var(--ink); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 19px; }
.logo-img { height: 72px; width: auto; max-width: 420px; object-fit: contain; flex-shrink: 0; }
.site-name { font-size: 22px; font-weight: 900; }
.site-tagline { font-size: 10px; color: var(--muted); margin-top: 1px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }

.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a { display: inline-block; color: var(--ink); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 10px 13px; border-radius: 6px; }
.main-nav a.home { color: var(--accent); }
.main-nav a:hover:not(.home) { color: var(--accent); }

.layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; padding: 34px 24px 20px; max-width: 1180px; margin: 0 auto; align-items: start; }

.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { font-weight: 700; color: var(--ink); }
.breadcrumb .sep { margin: 0 8px; color: #ccc; }

/* --- Category pill: colored per-category via inline style, not one flat accent --- */
.cat-pill { display: inline-block; color: #fff; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 5px 12px; border-radius: 4px; }
.featured-ribbon { display: inline-flex; align-items: center; gap: 4px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 4px 11px; border-radius: 4px; }
.meta { color: var(--muted); font-size: 12.5px; font-weight: 600; display: inline-flex; gap: 14px; flex-wrap: wrap; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }

/* --- Hero: full-bleed dark card + outlined CTA --- */
.hero-main { position: relative; display: block; border-radius: 0; overflow: hidden; background: var(--ink); margin-bottom: 0; }
.hero-main .placeholder-img, .hero-main > img { height: 460px; }
.hero-main::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,14,.92) 0%, rgba(10,10,14,.55) 45%, rgba(10,10,14,.15) 100%); }
.hero-main-body { position: relative; z-index: 1; max-width: 620px; padding: 60px 24px; margin: 0 auto; }
.hero-main .cat-pill { margin-bottom: 16px; }
.hero-main h1 { font-size: 34px; line-height: 1.2; margin: 0 0 16px; color: #fff; }
.hero-main .meta { color: #cfd0d8; margin-bottom: 22px; }
.hero-main .meta svg, .hero-main .meta span { color: #cfd0d8; }
.btn-outline { display: inline-block; border: 1.5px solid var(--accent); color: #fff; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 12px 26px; border-radius: 2px; }
.btn-outline:hover { background: var(--accent); }

/* --- Ticker strip: horizontal row of circular-thumbnail mini stories,
   this theme's signature element, sitting directly under the hero --- */
.ticker-strip { background: var(--badge); border-top: 3px solid var(--accent); }
.ticker-strip .wrap { display: flex; gap: 0; overflow-x: auto; }
.ticker-item { display: flex; align-items: center; gap: 14px; padding: 20px 22px; flex-shrink: 0; border-right: 1px solid #23242c; min-width: 260px; }
.ticker-item .placeholder-img, .ticker-item > img { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; font-size: 8px; }
.ticker-item h3 { font-size: 13.5px; line-height: 1.3; color: #fff; margin-bottom: 5px; }
.ticker-item .meta { color: #8b8d99; font-size: 11.5px; }

/* --- Section headings: flat red block, gaming-site style --- */
.section-heading { display: flex; align-items: stretch; gap: 0; margin: 0 0 22px; }
.section-heading h2 { background: var(--accent); color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; font-weight: 800; padding: 11px 18px; white-space: nowrap; min-width:0; overflow:hidden; text-overflow:ellipsis; }
.section-heading::after { content: ""; flex: 1; border-bottom: 2px solid var(--line); margin-bottom: 1px; }
.section-heading .see-all { font-size: 12px; font-weight: 700; color: var(--accent); white-space: nowrap; align-self: center; margin-left: 12px; }
section.cat-section { margin-bottom: 44px; }

/* --- Standard post card (grid) --- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.post-card .placeholder-img, .post-card > img { aspect-ratio: 16 / 9; height: auto; }
.post-card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card .cat-pill { align-self: flex-start; }
.post-card h3 { font-size: 15.5px; line-height: 1.32; }
.post-card p { font-size: 13px; color: var(--muted); margin: 0; font-weight: 400; }
.post-card .meta { margin-top: auto; padding-top: 4px; }

/* --- Section layout variants --- */
.split-section { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; background: var(--sidebar-bg); border-radius: 8px; overflow: hidden; }
.split-feature { display: block; position: relative; }
.split-feature .placeholder-img, .split-feature > img { height: 100%; min-height: 260px; }
.split-feature::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.82) 100%); }
.split-feature-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 20px; }
.split-feature .cat-pill { margin-bottom: 8px; }
.split-feature h3 { font-size: 19px; line-height: 1.28; color: #fff; margin: 0 0 6px; }
.split-feature .meta { color: #d8d9e0; }
.split-list { list-style: none; margin: 0; padding: 20px; counter-reset: split; }
.split-list li { counter-increment: split; display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.split-list li:last-child { border-bottom: none; }
.split-list li::before { content: counter(split); font-size: 19px; font-weight: 900; color: var(--accent); width: 24px; flex-shrink: 0; }
.split-list .s-title { font-size: 13.5px; font-weight: 700; line-height: 1.32; }

.row-list { display: flex; flex-direction: column; gap: 0; }
.row-item { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.row-item:last-child { border-bottom: none; }
.row-item .placeholder-img, .row-item > a > img { width: 92px; height: 68px; border-radius: 6px; flex-shrink: 0; font-size: 8px; }
.row-item h3 { font-size: 14.5px; line-height: 1.3; margin-bottom: 4px; }

/* --- Spotlight section: big card with a play-icon overlay --- */
.spotlight-card { position: relative; display: block; border-radius: 8px; overflow: hidden; }
.spotlight-card .placeholder-img, .spotlight-card > img { height: 340px; }
.spotlight-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.8) 100%); }
.spotlight-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.16); border: 2px solid #fff; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; backdrop-filter: blur(2px); }
.spotlight-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 24px; }
.spotlight-body .cat-pill { margin-bottom: 8px; }
.spotlight-body h3 { font-size: 22px; line-height: 1.26; color: #fff; margin: 0 0 6px; }
.spotlight-body .meta { color: #d8d9e0; }

/* --- Sidebar --- */
.widget { background: var(--sidebar-bg); border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.widget h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; margin-bottom: 16px; color: var(--ink); border-left: 3px solid var(--accent); padding-left: 10px; }
.trending-list { list-style: none; margin: 0; padding: 0; counter-reset: trend; }
.trending-list li { counter-increment: trend; display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.trending-list li:last-child { border-bottom: none; padding-bottom: 0; }
.trending-list li::before { content: counter(trend); font-size: 19px; font-weight: 900; color: var(--accent); flex-shrink: 0; width: 22px; }
.trending-list .t-title { font-size: 13.5px; font-weight: 700; line-height: 1.32; }
.trending-list .t-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.newsletter-widget p { font-size: 13px; color: var(--muted); margin: 0 0 14px; font-weight: 400; }
.newsletter-widget input { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 4px; font-size: 13.5px; margin-bottom: 10px; font-family: inherit; }
.newsletter-widget button { width: 100%; padding: 10px; background: var(--accent); color: #fff; border: none; border-radius: 4px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 6px 14px; font-size: 12.5px; font-weight: 700; }
.tag-cloud a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.social-row { display: flex; gap: 10px; }
.social-row a { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 4px; text-align: center; padding: 12px 6px; font-size: 12px; font-weight: 800; }
.social-row a:hover { border-color: var(--accent); color: var(--accent); }
.ad-widget { border: 1px dashed #cfcfd6; background: transparent; border-radius: 8px; text-align: center; color: #a5a6b0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 60px 10px; }

.category-title { font-size: 30px; margin: 0 0 8px; }
.category-desc { font-size: 14px; color: var(--muted); margin: 0 0 26px; font-weight: 400; }
.pagination { display: flex; justify-content: space-between; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 700; }
.pagination a { color: var(--accent); }

/* --- Single post --- */
.single-post { max-width: 760px; }
.single-post-header h1 { font-size: 34px; line-height: 1.22; margin: 10px 0 14px; }
.single-post-headline { width: 100%; max-height: 460px; object-fit: cover; margin: 20px 0 30px; border-radius: 8px; }
.single-post-content { font-size: 18px; font-weight: 400; }
.single-post-content p { margin: 0 0 22px; }
.single-post-content h2 { font-size: 24px; margin: 34px 0 16px; }
.single-post-content h3 { font-size: 20px; margin: 26px 0 12px; }
.single-post-content img { margin: 24px 0; width: 100%; border-radius: 8px; }
.single-post-content a { color: var(--accent); text-decoration: underline; }
.single-post-header .cat-pill { display: inline-block; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.tag-pill-link { background: var(--sidebar-bg); color: var(--ink); font-size: 12.5px; font-weight: 700; padding: 5px 14px; border-radius: 4px; }
.tag-pill-link:hover { background: var(--accent); color: #fff; }

.related-posts { max-width: 760px; margin: 60px 0 0; border-top: 1px solid var(--line); padding-top: 30px; }
.related-posts h2 { font-size: 19px; margin-bottom: 20px; }

.search-form { display: flex; gap: 10px; margin: 0 0 22px; }
.search-form input { flex: 1; padding: 11px 16px; border: 1px solid var(--line); border-radius: 4px; font-size: 15px; font-family: inherit; }
.search-form button { background: var(--accent); color: #fff; border: none; border-radius: 4px; padding: 0 22px; font-weight: 700; cursor: pointer; }

.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty-state h1 { color: var(--ink); font-size: 28px; }
.btn { display: inline-block; margin-top: 16px; background: var(--accent); color: #fff; padding: 10px 20px; border-radius: 4px; font-weight: 700; }

/* --- Footer --- */
.site-footer { background: var(--badge); color: #a4a5b0; padding: 48px 24px 20px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 32px; padding-bottom: 30px; border-bottom: 1px solid #23242c; }
.footer-grid h4 { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 14px; }
.footer-grid p { font-size: 13px; color: #82838f; line-height: 1.6; font-weight: 400; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; font-size: 13px; }
.footer-grid li a:hover { color: var(--accent); }
.footer-newsletter input { width: 100%; padding: 10px 14px; border: 1px solid #2a2b34; border-radius: 4px; background: #1c1d24; color: #fff; font-size: 13.5px; margin-bottom: 10px; font-family: inherit; }
.footer-newsletter button { width: 100%; padding: 10px; background: var(--accent); color: #fff; border: none; border-radius: 4px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; }
.footer-bottom { padding-top: 18px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; color: #5f6069; }
.footer-social { display: flex; gap: 8px; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
