/*
Theme Name: Info2All
Theme URI: https://info2all.com
Author: Info2All
Description: Games portal theme — dark/light mode, admin settings panel, per-post game controls, ad zones, sidebar, responsive.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: info2all
Tags: games, portal, dark-mode, responsive, sidebar
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --bg-primary:    #0f1117;
  --bg-secondary:  #161b27;
  --bg-card:       #1a2035;
  --bg-hover:      #222840;
  --text-primary:  #e8eaf0;
  --text-secondary:#9ba3bf;
  --text-muted:    #5c6480;
  --accent:        #6c63ff;
  --accent-h:      #8079ff;
  --accent-glow:   rgba(108,99,255,.20);
  --border:        rgba(255,255,255,.07);
  --border-h:      rgba(255,255,255,.14);
  --sb-width:      260px;
  --hdr-h:         64px;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px;
  --font: 'Sora', sans-serif;
  --ease: .2s ease;
}
[data-theme="light"] {
  --bg-primary:    #f0f2f8;
  --bg-secondary:  #ffffff;
  --bg-card:       #ffffff;
  --bg-hover:      #f5f6fa;
  --text-primary:  #1a1f36;
  --text-secondary:#4a5568;
  --text-muted:    #9ba3bf;
  --accent:        #5b4ef8;
  --accent-h:      #4338e0;
  --accent-glow:   rgba(91,78,248,.12);
  --border:        rgba(0,0,0,.07);
  --border-h:      rgba(0,0,0,.14);
}

/* ============================================================
   RESET
   ============================================================ */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0 }
html { font-size:16px; scroll-behavior:smooth }
body {
  font-family:var(--font);
  background:var(--bg-primary);
  color:var(--text-primary);
  min-height:100vh;
  transition:background var(--ease),color var(--ease);
  overflow-x:hidden;
}
a { color:inherit; text-decoration:none }
img { max-width:100%; height:auto; display:block }
ul { list-style:none }
button { cursor:pointer; border:none; background:none; font-family:inherit }
input,textarea { font-family:inherit }

/* ============================================================
   LAYOUT
   ============================================================ */
.i2a-wrapper { display:flex; min-height:100vh }

/* ============================================================
   SIDEBAR
   ============================================================ */
.i2a-sidebar {
  width:var(--sb-width);
  background:var(--bg-secondary);
  border-right:1px solid var(--border);
  display:flex; flex-direction:column;
  position:fixed; top:0; left:0; height:100vh;
  z-index:100; overflow-y:auto; overflow-x:hidden;
  transition:transform var(--ease),background var(--ease);
  scrollbar-width:thin; scrollbar-color:var(--border) transparent;
}
.i2a-sidebar::-webkit-scrollbar { width:4px }
.i2a-sidebar::-webkit-scrollbar-thumb { background:var(--border-h); border-radius:2px }

.sb-logo { padding:18px 20px; border-bottom:1px solid var(--border); flex-shrink:0 }
.sb-logo a { display:flex; align-items:center; gap:10px; font-size:1.1rem; font-weight:700; color:var(--text-primary) }
.sb-logo img { width:34px; height:34px; border-radius:var(--r-sm) }

.sb-search { padding:12px 16px; border-bottom:1px solid var(--border) }
.sb-search input {
  width:100%; background:var(--bg-primary); border:1px solid var(--border);
  border-radius:var(--r-sm); padding:8px 12px 8px 34px;
  color:var(--text-primary); font-size:.85rem; outline:none;
  transition:border-color var(--ease);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239ba3bf' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:10px center;
}
.sb-search input:focus { border-color:var(--accent) }

.sb-nav { flex:1; padding:10px 0 }
.sb-label {
  display:block; font-size:.63rem; font-weight:700;
  letter-spacing:.1em; text-transform:uppercase;
  color:var(--text-muted); padding:12px 20px 5px;
}
.sb-nav a {
  display:flex; align-items:center; gap:9px;
  padding:9px 20px; font-size:.875rem; color:var(--text-secondary);
  transition:color var(--ease),background var(--ease); position:relative;
}
.sb-nav a:hover, .sb-nav a.active { color:var(--text-primary); background:var(--bg-hover) }
.sb-nav a.active::before {
  content:''; position:absolute; left:0; top:50%; transform:translateY(-50%);
  width:3px; height:20px; background:var(--accent); border-radius:0 2px 2px 0;
}
.sb-nav svg { width:15px; height:15px; flex-shrink:0 }

.sb-dm { padding:6px 16px }
.sb-dm button {
  display:flex; align-items:center; gap:8px; width:100%;
  padding:8px 10px; border-radius:var(--r-sm);
  border:1px solid var(--border); background:var(--bg-hover);
  color:var(--text-secondary); font-size:.82rem; transition:color var(--ease);
}
.sb-dm button:hover { color:var(--text-primary) }
.dm-lbl { flex:1; text-align:left }
.tgl {
  width:30px; height:17px; background:var(--border-h);
  border-radius:9px; position:relative; transition:background var(--ease); flex-shrink:0;
}
.tgl::after {
  content:''; position:absolute; width:11px; height:11px;
  background:#fff; border-radius:50%; top:3px; left:3px; transition:transform var(--ease);
}
[data-theme="light"] .tgl { background:var(--accent) }
[data-theme="light"] .tgl::after { transform:translateX(13px) }

.sb-ad-zone {
  margin:12px 16px; background:var(--bg-card);
  border:1px dashed var(--border-h); border-radius:var(--r-md);
  min-height:250px; display:flex; align-items:center; justify-content:center;
  color:var(--text-muted); font-size:.7rem; overflow:hidden;
}

.sb-footer { padding:14px 16px; border-top:1px solid var(--border); flex-shrink:0 }
.sb-links { display:flex; flex-wrap:wrap; gap:5px 10px; margin-bottom:8px }
.sb-links a { font-size:.73rem; color:var(--text-muted); transition:color var(--ease) }
.sb-links a:hover { color:var(--text-primary) }
.sb-copy { font-size:.68rem; color:var(--text-muted) }

/* ============================================================
   HEADER
   ============================================================ */
.i2a-header {
  position:fixed; top:0; left:var(--sb-width); right:0;
  height:var(--hdr-h); background:var(--bg-secondary);
  border-bottom:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between;
  padding:0 24px; z-index:99; gap:16px;
  transition:background var(--ease),left var(--ease);
}
.hdr-l, .hdr-r { display:flex; align-items:center; gap:12px }

.hamburger {
  display:none; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:var(--r-sm);
  background:var(--bg-hover); border:1px solid var(--border);
  color:var(--text-secondary); transition:color var(--ease);
}
.hamburger:hover { color:var(--text-primary) }
.hamburger svg { width:18px; height:18px }

.hdr-search {
  display:flex; align-items:center; gap:8px;
  background:var(--bg-primary); border:1px solid var(--border);
  border-radius:var(--r-sm); padding:7px 14px; min-width:240px;
  transition:border-color var(--ease);
}
.hdr-search:focus-within { border-color:var(--accent) }
.hdr-search svg { width:14px; height:14px; color:var(--text-muted); flex-shrink:0 }
.hdr-search input {
  background:none; border:none; outline:none;
  color:var(--text-primary); font-size:.85rem; width:100%;
}
.hdr-search input::placeholder { color:var(--text-muted) }

.hdr-dm {
  display:flex; align-items:center; gap:6px;
  padding:6px 10px; border-radius:var(--r-sm);
  border:1px solid var(--border); background:var(--bg-hover);
  color:var(--text-secondary); font-size:.8rem; transition:color var(--ease);
}
.hdr-dm:hover { color:var(--text-primary) }
.hdr-dm svg { width:14px; height:14px }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.i2a-main { margin-left:var(--sb-width); margin-top:var(--hdr-h); flex:1; min-width:0 }
.wrap { max-width:1400px; padding:24px; margin:0 auto }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.sec-hdr { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px }
.sec-hdr h2 {
  font-size:1.05rem; font-weight:700; color:var(--text-primary);
  display:flex; align-items:center; gap:8px;
}
.sec-hdr h2::before {
  content:''; display:inline-block; width:3px; height:17px;
  background:var(--accent); border-radius:2px;
}

/* view-more as 7th grid cell on desktop */
.view-more {
  font-size:.77rem; font-weight:600; color:var(--accent);
  padding:5px 13px; border:1px solid var(--accent-glow);
  border-radius:20px; transition:background var(--ease);
  /* inline usage (mobile / archive header) */
}
.view-more:hover { background:var(--accent-glow) }

/* view-more inside game-grid — acts as a card cell */
.game-grid .view-more-cell {
  display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:8px;
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--r-md); aspect-ratio:1;
  color:var(--accent); font-size:.82rem; font-weight:700;
  text-align:center; padding:10px;
  transition:background var(--ease), border-color var(--ease);
  /* span all remaining rows so it fills the card height including label */
  grid-row: span 1;
}
.game-grid .view-more-cell:hover {
  background:var(--accent-glow); border-color:var(--accent);
}
.game-grid .view-more-cell svg {
  width:28px; height:28px; opacity:.7;
}
/* On desktop: fix grid to exactly 7 columns so view-more lands in col 7 */
@media (min-width:1025px) {
  .game-grid--home {
    grid-template-columns: repeat(7, 1fr);
  }
}
/* Mobile: hide view-more cell, show it in header instead */
@media (max-width:1024px) {
  .game-grid .view-more-cell { display:none }
  .sec-hdr .view-more { display:inline-flex }
}
@media (min-width:1025px) {
  .sec-hdr .view-more { display:none }
}

/* ============================================================
   AD BANNERS
   ============================================================ */
.ad-banner {
  width:100%; background:var(--bg-card); border:1px dashed var(--border-h);
  border-radius:var(--r-md); min-height:90px; display:flex;
  align-items:center; justify-content:center;
  margin-bottom:22px; overflow:hidden;
  color:var(--text-muted); font-size:.7rem;
}

/* ============================================================
   GAME GRID & CARDS
   ============================================================ */
.game-grid {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(128px,1fr));
  gap:11px; margin-bottom:30px;
}
.game-grid--lg { grid-template-columns:repeat(auto-fill,minmax(148px,1fr)) }

.game-card {
  position:relative; border-radius:var(--r-md); overflow:hidden;
  background:var(--bg-card); border:1px solid var(--border); display:block;
  transition:transform var(--ease),border-color var(--ease),box-shadow var(--ease);
}
.game-card:hover {
  transform:translateY(-3px); border-color:var(--accent);
  box-shadow:0 8px 24px rgba(108,99,255,.15);
}
.gc-thumb { width:100%; aspect-ratio:1; background:var(--bg-hover); overflow:hidden }
.gc-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .3s ease }
.game-card:hover .gc-thumb img { transform:scale(1.05) }
.gc-info { padding:7px 9px }
.gc-info h3 {
  font-size:.77rem; font-weight:600; color:var(--text-primary); line-height:1.3;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.gc-overlay {
  position:absolute; inset:0; background:rgba(108,99,255,.82);
  display:flex; align-items:center; justify-content:center;
  opacity:0; transition:opacity var(--ease);
}
.game-card:hover .gc-overlay { opacity:1 }
.play-btn {
  width:46px; height:46px; background:#fff; border-radius:50%;
  display:flex; align-items:center; justify-content:center; color:var(--accent);
}
.play-btn svg { width:19px; height:19px; margin-left:3px }

.gc-badges { position:absolute; top:5px; left:5px; display:flex; gap:3px }
.gc-badge { font-size:.58rem; font-weight:700; padding:2px 6px; border-radius:20px; text-transform:uppercase }
.gc-badge--new { background:#22c55e; color:#fff }
.gc-badge--hot { background:#f97316; color:#fff }

/* ============================================================
   CATEGORIES GRID
   ============================================================ */
.cat-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:8px; margin-bottom:28px }
.cat-item {
  display:flex; align-items:center; gap:9px; padding:11px 14px;
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--r-md); color:var(--text-secondary);
  font-size:.875rem; font-weight:500; transition:all var(--ease);
}
.cat-item:hover { background:var(--accent-glow); border-color:var(--accent); color:var(--accent) }
.cat-icon {
  width:30px; height:30px; border-radius:var(--r-sm);
  background:var(--bg-hover); display:flex; align-items:center;
  justify-content:center; font-size:.95rem; flex-shrink:0;
}

/* ============================================================
   HOME HERO
   ============================================================ */
/* ── Home Hero (editable text block at top of home page) ── */
.home-hero {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-hover) 100%);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  padding:36px 32px;
  margin-bottom:28px;
  position:relative;
  overflow:hidden;
}
.home-hero::before {
  content:'';
  position:absolute; top:0; left:0; right:0;
  height:3px;
  background:linear-gradient(90deg, var(--accent), var(--accent-h));
}
.home-hero h1 {
  font-size:1.7rem; font-weight:800; margin-bottom:12px;
  color:var(--text-primary); line-height:1.2; text-align:center;
}
.home-hero h2 { font-size:1.3rem; font-weight:700; margin-bottom:10px; color:var(--text-primary); text-align:center }
.home-hero h3 { font-size:1.1rem; font-weight:700; margin-bottom:8px; color:var(--text-primary); text-align:center }
.home-hero p { color:var(--text-secondary); font-size:.92rem; line-height:1.75; margin-bottom:10px; max-width:720px; margin-left:auto; margin-right:auto; text-align:center }
.home-hero p:last-child { margin-bottom:0 }
.home-hero a { color:var(--accent); text-decoration:underline }
.home-hero ul,.home-hero ol { padding-left:20px; color:var(--text-secondary); font-size:.92rem; line-height:1.8; margin-bottom:10px; max-width:720px; margin-left:auto; margin-right:auto }
.home-hero strong { color:var(--text-primary) }
.home-hero { text-align:center }

/* ── Home Bottom Text (editable block after all game rows) ── */
.home-bottom-text {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  padding:32px;
  margin-top:4px;
  margin-bottom:28px;
}
.home-bottom-text h2 { font-size:1.2rem; font-weight:700; margin-bottom:10px; color:var(--text-primary) }
.home-bottom-text h3 { font-size:1rem; font-weight:700; margin-bottom:8px; color:var(--text-primary) }
.home-bottom-text p { color:var(--text-secondary); font-size:.9rem; line-height:1.7; margin-bottom:10px }
.home-bottom-text p:last-child { margin-bottom:0 }
.home-bottom-text a { color:var(--accent); text-decoration:underline }
.home-bottom-text ul,.home-bottom-text ol { padding-left:18px; color:var(--text-secondary); font-size:.9rem; line-height:1.8; margin-bottom:10px }
.home-bottom-text strong { color:var(--text-primary) }

/* ============================================================
   SINGLE GAME PAGE
   ============================================================ */
.breadcrumb {
  font-size:.78rem; color:var(--text-muted); margin-bottom:12px;
  display:flex; align-items:center; flex-wrap:wrap; gap:4px;
}
.breadcrumb a { color:var(--text-secondary); transition:color var(--ease) }
.breadcrumb a:hover { color:var(--accent) }

.game-page-title {
  font-size:1.6rem;
  font-weight:800;
  color:var(--text-primary);
  margin-bottom:18px;
  line-height:1.2;
}

.game-above {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--r-md); padding:18px; margin-bottom:18px;
  font-size:.9rem; color:var(--text-secondary); line-height:1.7;
}
.game-above h2,.game-above h3 { color:var(--text-primary); font-size:1rem; font-weight:700; margin-bottom:7px }

.game-start {
  width:100%; aspect-ratio:16/9; background:var(--bg-card);
  border:1px solid var(--border); border-radius:var(--r-lg);
  overflow:hidden; display:flex; flex-direction:column;
  align-items:center; justify-content:center; position:relative; margin-bottom:14px;
}
.game-start-bg {
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  filter:blur(5px) brightness(.35);
}
.game-start-inner {
  position:relative; z-index:2;
  display:flex; flex-direction:column;
  align-items:center; gap:14px; text-align:center; padding:24px;
}
.game-start-title { font-size:1.35rem; font-weight:800; color:#fff; text-shadow:0 2px 12px rgba(0,0,0,.6) }

/* Ad slots inside the start-game screen */
.start-ad-slot {
  width:100%; max-width:728px;
  background:rgba(0,0,0,.55);
  border-radius:var(--r-md);
  padding:4px;
  display:flex; align-items:center; justify-content:center;
  min-height:90px;
  backdrop-filter:blur(4px);
  position:relative; z-index:3;
}
.start-ad-label {
  color:rgba(255,255,255,.45);
  font-size:.7rem;
  letter-spacing:.08em;
}
.btn-start {
  display:flex; align-items:center; gap:9px;
  background:var(--accent); color:#fff; padding:13px 34px;
  border-radius:40px; font-size:.95rem; font-weight:700;
  box-shadow:0 4px 20px rgba(108,99,255,.4);
  transition:background var(--ease),transform var(--ease);
}
.btn-start:hover { background:var(--accent-h); transform:scale(1.04) }
.btn-start svg { width:18px; height:18px }

.game-frame-wrap {
  width:100%; aspect-ratio:16/9; background:#000;
  border-radius:var(--r-lg); overflow:hidden; margin-bottom:14px; display:none;
}
.game-frame-wrap.active { display:block }
.game-frame-wrap iframe { width:100%; height:100%; border:none; display:block }

.game-info-bar {
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--r-md); padding:13px 16px; margin-bottom:14px; flex-wrap:wrap;
}
.gib-l { display:flex; align-items:center; gap:11px }
.gib-thumb { width:46px; height:46px; border-radius:var(--r-sm); object-fit:cover }
.game-t { font-size:1.05rem; font-weight:700; margin-bottom:4px }
.game-meta { display:flex; align-items:center; gap:7px; flex-wrap:wrap }
.cat-badge {
  font-size:.68rem; font-weight:600; padding:2px 9px; border-radius:20px;
  background:var(--accent-glow); color:var(--accent); border:1px solid var(--accent-glow);
  transition:background var(--ease);
}
.cat-badge:hover { background:var(--accent); color:#fff }
.plays { font-size:.73rem; color:var(--text-muted); display:flex; align-items:center; gap:3px }

/* ── Star Rating in info bar ── */
.gib-rating {
  display:flex; flex-direction:column; align-items:center;
  gap:4px; padding:0 4px;
}
.star-row { display:flex; gap:2px; line-height:1 }
.star { font-size:1.2rem; line-height:1 }
.star-full  { color:#f59e0b }
.star-half  { color:#f59e0b; opacity:.6 }
.star-empty { color:var(--border-h) }
.rating-text {
  font-size:.72rem; color:var(--text-secondary);
  display:flex; align-items:center; gap:2px; white-space:nowrap;
}
.rating-text span[itemprop="ratingValue"] { font-weight:700; color:var(--text-primary) }
.rating-sep { color:var(--text-muted) }
.rating-count { color:var(--text-muted) }

.game-desc,.game-above {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--r-md); padding:18px;
  font-size:.9rem; color:var(--text-secondary); line-height:1.7;
}
.game-desc { margin-top:14px }
.game-desc h2,.game-desc h3 { color:var(--text-primary); font-size:1rem; font-weight:700; margin-bottom:7px }

.game-howto {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--r-md); padding:18px; margin-top:14px;
}
.game-howto h4 {
  font-size:.9rem; font-weight:700; margin-bottom:10px;
  display:flex; align-items:center; gap:7px; color:var(--text-primary);
}
.game-howto h4 svg {
  width:16px; height:16px; flex-shrink:0;
}
.howto-content { color:var(--text-secondary); font-size:.875rem; line-height:1.8 }
.howto-content ul,.howto-content ol { padding-left:20px; margin-bottom:10px }
.howto-content li { margin-bottom:4px }
.howto-content p { margin-bottom:8px }
.howto-content strong { color:var(--text-primary) }
.howto-content h2,.howto-content h3 { color:var(--text-primary); font-weight:700; margin-bottom:8px }

.game-layout { display:grid; grid-template-columns:1fr 275px; gap:18px; align-items:start }
.game-layout-main { min-width:0 }
.game-layout-side { display:flex; flex-direction:column; gap:14px }

.similar-box { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--r-md); padding:14px }
.similar-title { font-size:.875rem; font-weight:700; margin-bottom:11px; padding-bottom:8px; border-bottom:1px solid var(--border) }
.similar-item { display:flex; gap:9px; padding:7px; border-radius:var(--r-sm); transition:background var(--ease) }
.similar-item:hover { background:var(--bg-hover) }
.similar-item img { width:50px; height:50px; border-radius:5px; object-fit:cover; flex-shrink:0 }
.sim-info { display:flex; flex-direction:column; justify-content:center; min-width:0 }
.sim-info span { font-size:.79rem; font-weight:600; color:var(--text-primary); line-height:1.3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden }
.sim-info small { font-size:.7rem; color:var(--text-muted); margin-top:2px }

/* ============================================================
   ARCHIVE PAGE
   ============================================================ */
/* ── Category page: 5 columns desktop ── */
.game-grid--cat {
  grid-template-columns: repeat(5, 1fr);
}

/* Inline ad card — same size as a game card */
.game-card--ad {
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px dashed var(--border-h);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 1 / 1.25; /* thumb + label height approx */
  min-height: 0;
}
.game-card--ad ins,
.game-card--ad iframe,
.game-card--ad > * { width:100%; height:100%; display:block }
.ad-card-label {
  font-size:.65rem;
  color: var(--text-muted);
  letter-spacing:.05em;
}

/* Load More button */
.load-more-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0 28px;
}
.btn-load-more {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-h);
  border-radius: 40px;
  padding: 11px 28px;
  color: var(--text-primary);
  font-size: .9rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease);
}
.btn-load-more:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
}
.btn-load-more.loading { opacity:.6; pointer-events:none }
.load-more-done { color: var(--text-muted); font-size:.85rem }

/* Category bottom text block */
.cat-bottom-text {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  margin-top: 4px;
  margin-bottom: 28px;
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.75;
}
.cat-bottom-text h2 { font-size:1.15rem; font-weight:700; color:var(--text-primary); margin-bottom:8px }
.cat-bottom-text h3 { font-size:1rem; font-weight:700; color:var(--text-primary); margin-bottom:6px }
.cat-bottom-text p  { margin-bottom:10px }
.cat-bottom-text p:last-child { margin-bottom:0 }
.cat-bottom-text a  { color:var(--accent); text-decoration:underline }
.cat-bottom-text ul,.cat-bottom-text ol { padding-left:20px; margin-bottom:10px }

/* Responsive – cat grid */
@media(max-width:1024px) {
  .game-grid--cat { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)) }
}

.archive-hdr {
  display:flex; align-items:center; gap:14px; margin-bottom:22px;
  padding:18px; background:var(--bg-card); border:1px solid var(--border); border-radius:var(--r-lg);
}
.archive-icon {
  font-size:2rem; width:56px; height:56px; background:var(--bg-hover);
  border-radius:var(--r-md); display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.archive-t { font-size:1.25rem; font-weight:800; margin-bottom:4px }
.archive-sub { font-size:.83rem; color:var(--text-secondary) }
.cat-desc {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--r-md); padding:18px; margin-bottom:22px;
  font-size:.9rem; color:var(--text-secondary); line-height:1.7;
}
.archive-layout { display:grid; grid-template-columns:1fr 275px; gap:18px; align-items:start }
.archive-main { min-width:0 }
.archive-side { display:flex; flex-direction:column; gap:14px }

.other-cats { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--r-md); padding:14px }
.oc-link {
  display:flex; align-items:center; gap:7px; padding:6px 7px;
  border-radius:var(--r-sm); font-size:.81rem; color:var(--text-secondary);
  transition:background var(--ease);
}
.oc-link:hover { background:var(--bg-hover); color:var(--text-primary) }
.oc-link.active { color:var(--accent) }
.oc-count { margin-left:auto; font-size:.7rem; color:var(--text-muted) }

/* ============================================================
   PAGINATION
   ============================================================ */
.i2a-pager { display:flex; align-items:center; justify-content:center; gap:5px; margin:26px 0 }
.i2a-pager a,.i2a-pager span {
  width:35px; height:35px; display:flex; align-items:center; justify-content:center;
  border-radius:var(--r-sm); font-size:.84rem; border:1px solid var(--border);
  background:var(--bg-card); color:var(--text-secondary); transition:all var(--ease);
}
.i2a-pager a:hover,.i2a-pager .current { background:var(--accent); border-color:var(--accent); color:#fff }

/* ============================================================
   SEARCH DROPDOWN
   ============================================================ */
.search-drop {
  position:fixed; z-index:200; background:var(--bg-secondary);
  border:1px solid var(--border); border-radius:var(--r-md);
  box-shadow:0 16px 40px rgba(0,0,0,.3); max-height:360px; overflow-y:auto;
  min-width:200px;
}
.search-drop:empty { display:none !important; }
.sd-item { display:flex; align-items:center; gap:9px; padding:9px 13px; color:var(--text-primary); font-size:.875rem; transition:background var(--ease) }
.sd-item:hover { background:var(--bg-hover) }
.sd-item img { width:34px; height:34px; border-radius:5px; object-fit:cover }
.sd-none { padding:14px; color:var(--text-muted); font-size:.83rem; text-align:center }

/* ============================================================
   STATIC PAGES
   ============================================================ */
.i2a-page { max-width:800px }
.page-hdr { margin-bottom:22px; border-bottom:1px solid var(--border); padding-bottom:14px }
.page-hdr h1 { font-size:1.5rem; font-weight:800 }
.page-body { font-size:.93rem; line-height:1.8; color:var(--text-secondary) }
.page-body h2 { font-size:1.15rem; font-weight:700; color:var(--text-primary); margin:22px 0 7px }
.page-body p { margin-bottom:13px }

/* ============================================================
   NO RESULTS / 404
   ============================================================ */
.no-results { text-align:center; padding:60px 20px; color:var(--text-secondary) }
.no-results p { margin-bottom:18px }

/* ============================================================
   SIDEBAR OVERLAY (mobile)
   ============================================================ */
.sb-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:99; backdrop-filter:blur(2px) }

/* ============================================================
   WP CORE CLASSES
   ============================================================ */
.alignleft  { float:left;  margin:0 1.5em 1.5em 0 }
.alignright { float:right; margin:0 0 1.5em 1.5em }
.aligncenter { display:block; margin:0 auto 1.5em }
.wp-caption-text { font-size:.78rem; color:var(--text-muted); text-align:center; margin-top:4px }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:1100px) {
  .game-layout,.archive-layout { grid-template-columns:1fr }
  .game-layout-side,.archive-side { display:grid; grid-template-columns:1fr 1fr; gap:14px }
}
@media(max-width:1024px) {
  .i2a-sidebar { transform:translateX(-100%) }
  .i2a-sidebar.open { transform:translateX(0) }
  .sb-overlay.open { display:block }
  .i2a-header { left:0 }
  .i2a-main { margin-left:0 }
  .hamburger { display:flex }
}
@media(max-width:768px) {
  .wrap { padding:14px }
  .hdr-search { min-width:150px }
  .game-grid { grid-template-columns:repeat(auto-fill,minmax(105px,1fr)); gap:8px }
  .game-layout-side,.archive-side { grid-template-columns:1fr }
}
@media(max-width:480px) {
  .hdr-search { display:none }
  .game-grid { grid-template-columns:repeat(3,1fr) }
}

/* ============================================================
   CUSTOM CSS — edit here without child theme
   ============================================================ */
/* Add your own CSS overrides below this line */
