/* ==========================================================================
   AI Gaming Pro — Futuristic 3D Dark Gaming Theme Stylesheet
   Version: 1.0.0 | WCAG 2.2 AA | Mobile-First | Reduced-Motion Ready
   ========================================================================== */

:root {
  --aigp-bg-main: #080B14;
  --aigp-bg-secondary: #101629;
  --aigp-bg-card: #151D32;
  --aigp-bg-elevated: #1B2640;
  --aigp-primary: #8B5CF6;
  --aigp-secondary: #22D3EE;
  --aigp-accent: #EC4899;
  --aigp-text-main: #F8FAFC;
  --aigp-text-secondary: #94A3B8;
  --aigp-border: rgba(255, 255, 255, 0.08);
  --aigp-header-bg: rgba(16, 22, 41, 0.85);
  --aigp-footer-bg: #060911;
  --aigp-player-bg: #04060C;
  --aigp-ad-bg: rgba(21, 29, 50, 0.65);
  --aigp-container: 1380px;
  --aigp-sidebar: 320px;
  --aigp-header-h: 74px;
  --aigp-logo-h: 40px;
  --aigp-radius: 16px;
  --aigp-gap: 24px;
  --aigp-font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --aigp-font-heading: 'Orbitron', 'Inter', system-ui, sans-serif;
  --aigp-fs-body: 16px;
  --aigp-fs-h1: 38px;
  --aigp-fs-h2: 26px;
  --aigp-fs-card-title: 16px;
  --aigp-lh-body: 1.65;
  --aigp-ls-heading: 0.02em;
  --aigp-h-transform: none;
  --aigp-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  --aigp-glow: 0 0 24px rgba(139, 92, 246, 0.35);
}

/* Light Mode Override */
html[data-theme="light"] {
  --aigp-bg-main: #F8FAFC;
  --aigp-bg-secondary: #FFFFFF;
  --aigp-bg-card: #FFFFFF;
  --aigp-bg-elevated: #F1F5F9;
  --aigp-text-main: #0F172A;
  --aigp-text-secondary: #475569;
  --aigp-border: rgba(15, 23, 42, 0.10);
  --aigp-header-bg: rgba(255, 255, 255, 0.88);
  --aigp-footer-bg: #E2E8F0;
  --aigp-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--aigp-font-body);
  font-size: var(--aigp-fs-body);
  line-height: var(--aigp-lh-body);
  color: var(--aigp-text-main);
  background-color: var(--aigp-bg-main);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--aigp-secondary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--aigp-primary); }

/* WCAG 2.2 AA Focus States */
:focus-visible {
  outline: 3px solid var(--aigp-secondary);
  outline-offset: 2px;
}

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto;
  z-index: 99999; background: var(--aigp-primary); color: #fff; padding: 10px 18px; border-radius: 8px;
}

.aigp-particles-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: 0.45;
}
.aigp-site-wrapper { position: relative; z-index: 1; min-height: 70vh; }

.aigp-container {
  width: 100%;
  max-width: var(--aigp-container);
  margin: 0 auto;
  padding: 0 20px;
}
.aigp-narrow-container { max-width: 860px; }

h1, h2, h3, h4 {
  font-family: var(--aigp-font-heading);
  letter-spacing: var(--aigp-ls-heading);
  text-transform: var(--aigp-h-transform);
  margin: 0 0 12px;
  line-height: 1.25;
}
h1 { font-size: clamp(1.75rem, 3vw, var(--aigp-fs-h1)); }
h2 { font-size: clamp(1.35rem, 2.2vw, var(--aigp-fs-h2)); }

/* Buttons */
.aigp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: calc(var(--aigp-radius) * 0.75);
  font-weight: 700; font-size: 0.94rem; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  color: #fff; text-decoration: none;
}
.aigp-btn:hover { transform: translateY(-2px); color: #fff; }
.aigp-btn-sm { padding: 7px 14px; font-size: 0.85rem; }
.aigp-btn-lg { padding: 14px 28px; font-size: 1rem; }
.aigp-btn-primary {
  background: linear-gradient(135deg, var(--aigp-primary), #6D28D9);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}
.aigp-btn-primary:hover { box-shadow: 0 10px 28px rgba(139, 92, 246, 0.55); }
.aigp-btn-accent {
  background: linear-gradient(135deg, var(--aigp-accent), var(--aigp-primary));
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.35);
}
.aigp-btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--aigp-border);
  color: var(--aigp-text-main);
}
.aigp-btn-outline:hover { border-color: var(--aigp-secondary); color: var(--aigp-secondary); }

.aigp-icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--aigp-bg-elevated); border: 1px solid var(--aigp-border); color: var(--aigp-text-main);
  cursor: pointer; transition: border-color 0.2s, transform 0.2s;
}
.aigp-icon-btn:hover { border-color: var(--aigp-secondary); transform: translateY(-2px); }

/* Announcement Bar */
.aigp-announcement-bar {
  background: linear-gradient(90deg, rgba(139,92,246,0.22), rgba(34,211,238,0.18), rgba(236,72,153,0.22));
  border-bottom: 1px solid var(--aigp-border);
  font-size: 0.86rem; padding: 8px 0; position: relative; z-index: 100;
}
.aigp-announcement-inner { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; text-align: center; }

/* Header */
.aigp-header {
  height: var(--aigp-header-h);
  background: var(--aigp-header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--aigp-border);
  position: relative; z-index: 99;
}
.aigp-sticky-header .aigp-header { position: sticky; top: 0; }
.aigp-header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; }

.aigp-logo-link { display: inline-flex; align-items: center; gap: 10px; color: var(--aigp-text-main); font-family: var(--aigp-font-heading); font-weight: 800; font-size: 1.2rem; }
.aigp-logo-img { max-height: var(--aigp-logo-h); width: auto; }
.aigp-logo-mobile { display: none; }
.aigp-logo-badge {
  width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--aigp-primary), var(--aigp-secondary)); color: #fff; box-shadow: var(--aigp-glow);
}

.aigp-primary-nav .aigp-nav-list { display: flex; list-style: none; margin: 0; padding: 0; gap: 6px; }
.aigp-nav-list li { position: relative; }
.aigp-nav-list > li > a {
  display: block; padding: 8px 14px; border-radius: 10px; color: var(--aigp-text-secondary); font-weight: 600; font-size: 0.94rem;
}
.aigp-nav-list > li > a:hover, .aigp-nav-list > li.current-menu-item > a {
  color: var(--aigp-text-main); background: rgba(139, 92, 246, 0.14);
}
.aigp-nav-list .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px;
  background: var(--aigp-bg-card); border: 1px solid var(--aigp-border); border-radius: 12px;
  box-shadow: var(--aigp-shadow); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.2s ease; z-index: 200;
}
.aigp-nav-list li:hover > .sub-menu, .aigp-nav-list li:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.aigp-nav-list .sub-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--aigp-text-secondary); }
.aigp-nav-list .sub-menu a:hover { background: var(--aigp-bg-elevated); color: var(--aigp-text-main); }

.aigp-header-actions { display: flex; align-items: center; gap: 8px; }
.aigp-user-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--aigp-bg-elevated); color: var(--aigp-text-main); font-size: 0.85rem; }
.aigp-user-pill img { border-radius: 50%; }
.aigp-mobile-menu-btn { display: none; }

/* Mobile Drawer */
.aigp-mobile-drawer {
  position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, 0.72);
  opacity: 0; visibility: hidden; transition: all 0.25s ease;
}
.aigp-mobile-drawer.is-open { opacity: 1; visibility: visible; }
.aigp-mobile-drawer-inner {
  width: min(320px, 85vw); height: 100%; background: var(--aigp-bg-secondary);
  border-right: 1px solid var(--aigp-border); padding: 20px; overflow-y: auto;
  transform: translateX(-100%); transition: transform 0.25s ease;
}
.aigp-mobile-drawer.is-open .aigp-mobile-drawer-inner { transform: translateX(0); }
.aigp-mobile-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.aigp-mobile-nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.aigp-mobile-nav-list a { display: block; padding: 10px 14px; border-radius: 10px; background: var(--aigp-bg-card); color: var(--aigp-text-main); font-weight: 600; }

/* Hero Carousel */
.aigp-hero-section { padding: 28px 0 18px; }
.aigp-hero-carousel {
  position: relative; overflow: hidden; border-radius: calc(var(--aigp-radius) * 1.4);
  background: linear-gradient(135deg, var(--aigp-bg-secondary), var(--aigp-bg-card));
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: var(--aigp-shadow), inset 0 0 60px rgba(139, 92, 246, 0.08);
  padding: 36px;
}
.aigp-hero-slide { display: none; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: center; }
.aigp-hero-slide.is-active { display: grid; animation: aigpFadeIn 0.45s ease; }
@keyframes aigpFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.aigp-hero-eyebrow {
  display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  background: rgba(34, 211, 238, 0.14); color: var(--aigp-secondary); border: 1px solid rgba(34, 211, 238, 0.35);
  margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.06em;
}
.aigp-hero-desc { color: var(--aigp-text-secondary); margin-bottom: 24px; max-width: 560px; }
.aigp-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.aigp-hero-art-card {
  position: relative; display: block; border-radius: var(--aigp-radius); overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.35); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
}
.aigp-hero-art-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.4s ease; }
.aigp-hero-art-card:hover img { transform: scale(1.05); }
.aigp-hero-play-orb {
  position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%;
  background: rgba(139, 92, 246, 0.9); color: #fff; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 32px rgba(139, 92, 246, 0.7);
}
.aigp-hero-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; }
.aigp-hero-nav {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--aigp-border);
  background: var(--aigp-bg-elevated); color: var(--aigp-text-main); cursor: pointer; font-size: 1.2rem;
}
.aigp-hero-dots { display: flex; gap: 8px; }
.aigp-hero-dot { width: 10px; height: 10px; border-radius: 99px; border: 0; background: var(--aigp-text-secondary); opacity: 0.4; cursor: pointer; transition: all 0.25s; }
.aigp-hero-dot.is-active { width: 28px; background: var(--aigp-secondary); opacity: 1; }

/* Sections & Grids */
.aigp-section { padding: 28px 0; }
.aigp-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.aigp-section-head p { margin: 4px 0 0; color: var(--aigp-text-secondary); font-size: 0.95rem; }

.aigp-game-grid, .aigp-category-grid, .aigp-collection-grid {
  display: grid; gap: var(--aigp-gap);
}
.aigp-cols-1 { grid-template-columns: 1fr; }
.aigp-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aigp-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.aigp-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.aigp-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.aigp-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* ==========================================================================
   10 GAME CARD STYLES
   ========================================================================== */
.aigp-game-card {
  background: var(--aigp-bg-card);
  border: 1px solid var(--aigp-border);
  border-radius: var(--aigp-radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
.aigp-game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: var(--aigp-shadow), var(--aigp-glow);
}
.aigp-card-3d { transform-style: preserve-3d; perspective: 900px; }
.aigp-card-glass { background: rgba(21, 29, 50, 0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.aigp-card-neon { border-color: rgba(34, 211, 238, 0.4); box-shadow: 0 0 18px rgba(34, 211, 238, 0.14); }
.aigp-card-neon:hover { border-color: var(--aigp-secondary); box-shadow: 0 0 28px rgba(34, 211, 238, 0.35); }
.aigp-card-minimal { background: transparent; border-color: transparent; }
.aigp-card-featured { border-color: rgba(236, 72, 153, 0.45); background: linear-gradient(160deg, var(--aigp-bg-card), rgba(139, 92, 246, 0.15)); }
.aigp-card-horizontal { flex-direction: row; align-items: stretch; }
.aigp-card-horizontal .aigp-card-media { width: 42%; flex-shrink: 0; }
.aigp-card-overlay { position: relative; }
.aigp-card-overlay .aigp-card-body {
  position: absolute; inset: auto 0 0 0; background: linear-gradient(to top, rgba(8,11,20,0.95), transparent);
}

.aigp-card-media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: var(--aigp-bg-secondary); }
.aigp-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.aigp-game-card:hover .aigp-card-media img { transform: scale(1.07); }
.aigp-card-play-overlay {
  position: absolute; inset: 0; background: rgba(8, 11, 20, 0.45);
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.25s;
}
.aigp-card-play-overlay span {
  width: 50px; height: 50px; border-radius: 50%; background: var(--aigp-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--aigp-glow);
}
.aigp-game-card:hover .aigp-card-play-overlay { opacity: 1; }

.aigp-card-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.aigp-badge { padding: 3px 9px; border-radius: 999px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; color: #fff; }
.aigp-badge-new { background: var(--aigp-secondary); color: #080B14; }
.aigp-badge-trending { background: var(--aigp-accent); }
.aigp-badge-featured { background: var(--aigp-primary); }

.aigp-fav-btn {
  position: absolute; top: 10px; right: 10px; z-index: 3; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(8, 11, 20, 0.72); border: 1px solid var(--aigp-border); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: transform 0.2s, background 0.2s;
}
.aigp-fav-btn.is-favorited { background: var(--aigp-accent); border-color: var(--aigp-accent); }

.aigp-card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.aigp-card-cat { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; color: var(--aigp-secondary); }
.aigp-card-title { font-size: var(--aigp-fs-card-title); margin: 0; font-family: var(--aigp-font-body); font-weight: 700; }
.aigp-card-title a { color: var(--aigp-text-main); }
.aigp-card-excerpt { font-size: 0.85rem; color: var(--aigp-text-secondary); margin: 0; }
.aigp-card-meta { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--aigp-text-secondary); margin-top: auto; }
.aigp-card-cta { width: 100%; padding: 8px 12px; font-size: 0.85rem; margin-top: 6px; }

/* Category & Collection Cards */
.aigp-cat-card {
  background: var(--aigp-bg-card); border: 1px solid var(--aigp-border); border-radius: var(--aigp-radius);
  padding: 18px 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--aigp-text-main); transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.aigp-cat-card:hover { transform: translateY(-4px); border-color: var(--cat-accent, var(--aigp-primary)); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); color: var(--aigp-text-main); }
.aigp-cat-icon { font-size: 1.8rem; }
.aigp-cat-card small { color: var(--aigp-text-secondary); font-size: 0.8rem; }

.aigp-collection-card {
  background: linear-gradient(135deg, var(--aigp-bg-card), var(--aigp-bg-elevated));
  border: 1px solid var(--aigp-border); border-radius: var(--aigp-radius); padding: 20px;
  display: flex; gap: 16px; align-items: center; color: var(--aigp-text-main);
}
.aigp-collection-card:hover { border-color: var(--aigp-primary); transform: translateY(-4px); color: var(--aigp-text-main); }
.aigp-col-icon { font-size: 2rem; }
.aigp-collection-card h3 { font-size: 1.05rem; margin: 0 0 4px; }
.aigp-collection-card p { margin: 0; font-size: 0.88rem; color: var(--aigp-text-secondary); }

/* Newsletter */
.aigp-newsletter-box {
  background: linear-gradient(135deg, rgba(139,92,246,0.16), rgba(34,211,238,0.12));
  border: 1px solid rgba(139, 92, 246, 0.35); border-radius: var(--aigp-radius); padding: 28px;
}
.aigp-newsletter-form { display: flex; gap: 12px; max-width: 640px; margin: 0 auto; flex-wrap: wrap; }
.aigp-newsletter-form input {
  flex: 1; min-width: 220px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--aigp-border);
  background: var(--aigp-bg-main); color: var(--aigp-text-main); font-size: 0.96rem;
}
.aigp-nl-msg { text-align: center; margin: 10px 0 0; font-weight: 600; color: var(--aigp-secondary); }

/* ==========================================================================
   SINGLE GAME PAGE & RESPONSIVE HTML5 PLAYER
   ========================================================================== */
.aigp-breadcrumbs ol { list-style: none; padding: 16px 0 12px; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.86rem; color: var(--aigp-text-secondary); }
.aigp-breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 8px; opacity: 0.5; }

.aigp-game-layout, .aigp-content-sidebar-grid, .aigp-archive-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) var(--aigp-sidebar); gap: 28px; align-items: start;
}
.aigp-archive-layout.aigp-sidebar-left { grid-template-columns: var(--aigp-sidebar) minmax(0, 1fr); }
.aigp-archive-layout.aigp-sidebar-none { grid-template-columns: 1fr; }

.aigp-player-shell {
  background: var(--aigp-player-bg); border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--aigp-radius); overflow: hidden; box-shadow: var(--aigp-shadow); position: relative; z-index: 10;
}
.aigp-player-shell.is-theater { position: relative; z-index: 10001; max-width: 100%; }
body.aigp-theater-active .aigp-game-layout { grid-template-columns: 1fr; }
body.aigp-theater-active .aigp-game-sidebar { display: none; }
.aigp-lights-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.92); z-index: 10000; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
body.aigp-lights-off .aigp-lights-overlay { opacity: 1; pointer-events: auto; }
body.aigp-lights-off .aigp-player-shell { z-index: 10002; }

.aigp-player-stage { position: relative; width: 100%; height: 0; background: #000; overflow: hidden; }
.aigp-player-stage iframe, .aigp-embed-mount, .aigp-embed-mount iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.aigp-click-to-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.aigp-ctp-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(10px) brightness(0.45); transform: scale(1.08); }
.aigp-ctp-overlay { position: relative; z-index: 2; text-align: center; padding: 24px; max-width: 520px; }
.aigp-ctp-note { font-size: 0.85rem; color: var(--aigp-text-secondary); margin-top: 12px; }
.aigp-player-loader { position: absolute; inset: 0; background: rgba(4,6,12,0.9); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; z-index: 5; }
.aigp-spinner { width: 42px; height: 42px; border: 4px solid rgba(255,255,255,0.15); border-top-color: var(--aigp-secondary); border-radius: 50%; animation: aigpSpin 0.8s linear infinite; }
@keyframes aigpSpin { to { transform: rotate(360deg); } }

.aigp-player-toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px; background: var(--aigp-bg-secondary); border-top: 1px solid var(--aigp-border);
}
.aigp-player-title { font-size: 1.25rem; margin: 0 0 4px; }
.aigp-player-stats { display: flex; gap: 14px; font-size: 0.85rem; color: var(--aigp-text-secondary); }
.aigp-toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.aigp-tool-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px;
  background: var(--aigp-bg-elevated); border: 1px solid var(--aigp-border); color: var(--aigp-text-main); cursor: pointer; font-weight: 600; font-size: 0.84rem;
}
.aigp-tool-btn:hover { border-color: var(--aigp-secondary); }
.aigp-tool-btn.aigp-fav-btn { position: static; width: auto; height: auto; border-radius: 10px; }

.aigp-game-meta-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 18px 0; padding: 14px 18px; background: var(--aigp-bg-card); border: 1px solid var(--aigp-border); border-radius: var(--aigp-radius);
}
.aigp-game-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.aigp-chip { padding: 5px 12px; border-radius: 999px; background: var(--aigp-bg-elevated); font-size: 0.82rem; color: var(--aigp-text-secondary); }
.aigp-chip-primary { background: rgba(139,92,246,0.22); color: #fff; }
.aigp-star-rater { display: inline-flex; align-items: center; gap: 4px; }
.aigp-star-btn { background: none; border: 0; color: #475569; font-size: 1.35rem; cursor: pointer; padding: 2px; transition: color 0.15s, transform 0.15s; }
.aigp-star-btn:hover, .aigp-star-btn.is-active { color: #F59E0B; transform: scale(1.15); }

.aigp-info-panel, .aigp-page-card, .aigp-article-card, .aigp-leaderboard-card {
  background: var(--aigp-bg-card); border: 1px solid var(--aigp-border); border-radius: var(--aigp-radius);
  padding: 24px; margin-bottom: 22px;
}
.aigp-screenshots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.aigp-screenshot-item { padding: 0; border: 1px solid var(--aigp-border); border-radius: 12px; overflow: hidden; cursor: pointer; background: none; }
.aigp-faq-item { border: 1px solid var(--aigp-border); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; background: var(--aigp-bg-secondary); }
.aigp-faq-item summary { font-weight: 700; cursor: pointer; }

/* Filter Bar & Archive */
.aigp-archive-hero {
  padding: 24px; margin-bottom: 20px; border-radius: var(--aigp-radius);
  background: linear-gradient(135deg, var(--aigp-bg-secondary), var(--aigp-bg-card));
  border: 1px solid var(--aigp-border);
}
.aigp-filter-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; margin-bottom: 22px; background: var(--aigp-bg-card); border: 1px solid var(--aigp-border); border-radius: var(--aigp-radius);
}
.aigp-filter-group, .aigp-filter-sort { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.aigp-filter-bar select, .aigp-form-group input, .aigp-form-group select, .aigp-form-group textarea {
  padding: 9px 12px; border-radius: 10px; border: 1px solid var(--aigp-border);
  background: var(--aigp-bg-secondary); color: var(--aigp-text-main); font-size: 0.9rem;
}

/* Ads */
.aigp-ad-slot {
  margin: 18px auto; padding: 10px; border-radius: 12px; background: var(--aigp-ad-bg);
  border: 1px dashed var(--aigp-border); text-align: center; overflow: hidden;
}
.aigp-ad-label { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--aigp-text-secondary); margin-bottom: 6px; }

/* Sidebar & Widgets */
.aigp-widget { background: var(--aigp-bg-card); border: 1px solid var(--aigp-border); border-radius: var(--aigp-radius); padding: 18px; margin-bottom: 20px; }
.aigp-widget-title { font-size: 1.05rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--aigp-border); }
.aigp-widget-games { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.aigp-wg-item { display: flex; gap: 12px; align-items: center; color: var(--aigp-text-main); }
.aigp-wg-item img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.aigp-wg-item strong { display: block; font-size: 0.9rem; }
.aigp-wg-item span { font-size: 0.78rem; color: var(--aigp-text-secondary); }
.aigp-widget-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.aigp-cat-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--aigp-bg-elevated); color: var(--aigp-text-main); font-size: 0.82rem; }

/* Tables, Blog, Modals, Footer */
.aigp-table { width: 100%; border-collapse: collapse; }
.aigp-table th, .aigp-table td { padding: 12px; border-bottom: 1px solid var(--aigp-border); text-align: left; }
.aigp-toc-box { background: var(--aigp-bg-secondary); border: 1px solid var(--aigp-border); border-radius: 12px; padding: 16px 20px; margin: 18px 0; }
.aigp-author-box { display: flex; gap: 16px; align-items: center; padding: 18px; background: var(--aigp-bg-secondary); border-radius: 12px; margin-top: 24px; }
.aigp-author-box img { border-radius: 50%; }

.aigp-footer { background: var(--aigp-footer-bg); border-top: 1px solid var(--aigp-border); padding: 48px 0 24px; margin-top: 48px; }
.aigp-footer-grid { display: grid; gap: 28px; margin-bottom: 28px; }
.aigp-footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.aigp-footer-links a { color: var(--aigp-text-secondary); }
.aigp-footer-links a:hover { color: var(--aigp-secondary); }
.aigp-footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid var(--aigp-border); font-size: 0.88rem; color: var(--aigp-text-secondary); }
.aigp-back-to-top { background: var(--aigp-bg-elevated); border: 1px solid var(--aigp-border); color: var(--aigp-text-main); padding: 6px 14px; border-radius: 8px; cursor: pointer; }

/* Modals & Toast */
.aigp-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.aigp-modal[hidden] { display: none; }
.aigp-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(6px); }
.aigp-modal-panel {
  position: relative; z-index: 2; width: min(560px, 100%); background: var(--aigp-bg-card);
  border: 1px solid rgba(139, 92, 246, 0.45); border-radius: var(--aigp-radius); padding: 22px; box-shadow: var(--aigp-shadow);
}
.aigp-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.aigp-search-input-wrap { display: flex; gap: 10px; margin-bottom: 14px; }
.aigp-search-input-wrap input { flex: 1; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--aigp-border); background: var(--aigp-bg-secondary); color: var(--aigp-text-main); font-size: 1rem; }
.aigp-search-results { max-height: 360px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.aigp-search-item { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; background: var(--aigp-bg-secondary); color: var(--aigp-text-main); }
.aigp-search-item img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.aigp-lightbox-content { position: relative; z-index: 2; max-width: 92vw; max-height: 90vh; }
.aigp-lightbox-content img { max-height: 85vh; border-radius: 12px; }
.aigp-lightbox-close { position: absolute; top: -16px; right: -16px; }
.aigp-toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 999999; padding: 12px 20px; border-radius: 12px;
  background: var(--aigp-primary); color: #fff; font-weight: 700; box-shadow: var(--aigp-shadow);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: all 0.25s ease;
}
.aigp-toast.is-visible { opacity: 1; transform: translateY(0); }

.aigp-404-box { text-align: center; padding: 72px 20px; }
.aigp-404-code { font-size: 5rem; font-weight: 900; font-family: var(--aigp-font-heading); background: linear-gradient(135deg, var(--aigp-primary), var(--aigp-secondary)); -webkit-background-clip: text; color: transparent; }
.aigp-404-actions { display: flex; justify-content: center; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.aigp-pagination-wrap { text-align: center; margin: 28px 0; }
.aigp-form-group { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }

/* Responsive Breakpoints */
@media (max-width: 1120px) {
  .aigp-cols-6, .aigp-cols-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .aigp-game-layout, .aigp-content-sidebar-grid, .aigp-archive-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .aigp-primary-nav { display: none; }
  .aigp-mobile-menu-btn { display: inline-flex; }
  .aigp-hero-slide { grid-template-columns: 1fr; }
  .aigp-cols-4, .aigp-cols-5, .aigp-cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .aigp-hide-tablet { display: none !important; }
}
@media (max-width: 640px) {
  .aigp-cols-3, .aigp-cols-4, .aigp-cols-5, .aigp-cols-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aigp-logo-desktop { display: none; }
  .aigp-logo-mobile { display: block; }
  .aigp-hide-mobile { display: none !important; }
  .aigp-hero-carousel { padding: 20px; }
  .aigp-card-horizontal { flex-direction: column; }
  .aigp-card-horizontal .aigp-card-media { width: 100%; }
}
@media (min-width: 901px) {
  .aigp-hide-desktop { display: none !important; }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .aigp-particles-canvas { display: none !important; }
}
