/*
Theme Name: GameWiki Pro
Theme URI: https://gamewiki.pro
Author: Hassan Baig
Author URI: https://digitalpandalab.online
Developer: Digital Panda Lab
Developer URI: https://digitalpandalab.online
Description: A unique, ultra-fast, modern, clean, and SEO-optimized WordPress theme crafted for gaming guides, wikis, and walkthrough websites. Featuring expandable Table of Contents, crisp modern styling, customizable featured posts spotlight, and 100/100 Lighthouse performance.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-colors, custom-menu, featured-images, grid-layout, sticky-post, theme-options, translation-ready, one-column, two-columns, three-columns, four-columns, right-sidebar
Text Domain: gamewiki
*/

/* ==========================================================================
   1. CSS Custom Properties & Unique Modern Palette
   ========================================================================== */
:root {
  --gg-font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --gg-bg: #f8fafc;
  --gg-card-bg: #ffffff;
  --gg-text: #04125d;               /* Deep Midnight Navy */
  --gg-text-muted: #526079;         /* Slate Navy - High contrast */
  --gg-link: #0366f8;               /* Electric Royal Blue */
  --gg-link-hover: #04125d;         /* Midnight Navy */
  --gg-accent: #0366f8;             /* Vibrant Royal Blue */
  --gg-accent-hover: #024ec4;
  --gg-accent-secondary: #009d48;   /* Emerald Green */
  --gg-accent-coral: #feae01;       /* Amber Gold */
  --gg-accent-red: #fa1d1c;         /* Bright Red Accent */
  --gg-accent-green: #009d48;       /* Emerald Accent */
  --gg-border-color: #e2e8f0;
  --gg-border-light: #f1f5f9;
  --gg-shadow-sm: 0 2px 8px rgba(4, 18, 93, 0.04);
  --gg-shadow: 0 10px 30px -5px rgba(4, 18, 93, 0.06), 0 4px 6px -2px rgba(4, 18, 93, 0.02);
  --gg-shadow-hover: 0 20px 40px -10px rgba(3, 102, 248, 0.18), 0 8px 16px -4px rgba(4, 18, 93, 0.05);
  --gg-shadow-glow: 0 0 20px rgba(3, 102, 248, 0.18);
  --gg-gradient-brand: #0366f8;
  --gg-gradient-featured: #e11d48;
  --gg-gradient-card: #ffffff;
  --gg-container-max: 1240px;
  --gg-radius-sm: 8px;
  --gg-radius-md: 14px;
  --gg-radius-lg: 18px;
}

/* ==========================================================================
   2. Core & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Dynamic Font Sizes Controlled via Body Classes */
body.gg-font-small { font-size: 15px; }
body.gg-font-medium { font-size: 16px; }
body.gg-font-large { font-size: 18px; }

body {
  font-family: var(--gg-font-primary);
  background-color: var(--gg-bg);
  color: var(--gg-text);
  line-height: 1.7;
  letter-spacing: -0.011em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--gg-link);
  text-decoration: underline;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover, a:focus {
  color: var(--gg-link-hover);
}

/* Images & Layout Stability (CLS 0.00 Prevention) */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

img:not([src]),
img[src=""],
img[src="#"] {
  display: none !important;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--gg-text);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

h1 { font-size: 2.35rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   3. Container & Layout
   ========================================================================== */
.gg-container {
  width: 100%;
  max-width: var(--gg-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.gg-layout-wrapper {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  margin-bottom: 56px;
}

.gg-main-content {
  flex: 1;
  min-width: 0;
}

.gg-main-content.no-sidebar {
  width: 100%;
}

/* Sidebar & Sticky Option */
.gg-sidebar {
  width: 320px;
  flex-shrink: 0;
}

.gg-sidebar.is-sticky {
  position: sticky;
  top: 25px;
  align-self: flex-start;
}

/* ==========================================================================
   4. Header & Navigation Bar
   ========================================================================== */
.gg-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--gg-border-color);
  padding: 16px 0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  position: relative;
  z-index: 100;
}

.gg-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Unique Brand Logo */
.gg-logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.gg-brand-logo-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
}

.gg-brand-logo-text .brand-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gg-text);
  letter-spacing: -0.04em;
  transition: color 0.2s ease;
}

.gg-brand-logo-text:hover .brand-name {
  color: var(--gg-accent);
}

.gg-brand-logo-text .brand-pro-badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--gg-gradient-brand);
  color: #ffffff;
  border-radius: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.gg-logo img {
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Navigation Menu */
.gg-main-nav ul {
  display: flex;
  list-style: none !important;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.gg-main-nav li {
  list-style: none !important;
}

.gg-main-nav a {
  color: var(--gg-text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 6px 4px;
  position: relative;
  transition: color 0.2s ease;
}

.gg-main-nav a:hover {
  color: var(--gg-accent);
}

.gg-main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gg-gradient-brand);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.gg-main-nav a:hover::after {
  width: 100%;
}

/* Live Search Spinner & Dropdown */
.gg-search-form {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.gg-header-search-form {
  position: relative;
  width: 100%;
}

.gg-search-form input[type="search"] {
  width: 100%;
  padding: 11px 44px 11px 16px;
  font-size: 0.9rem;
  font-family: inherit;
  border: 1px solid var(--gg-border-color);
  border-radius: var(--gg-radius-sm);
  background-color: #f8fafc;
  color: var(--gg-text);
  outline: none;
  transition: all 0.2s ease;
}

.gg-search-form input[type="search"]:focus {
  background-color: #ffffff;
  border-color: var(--gg-accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.gg-search-form button,
.gg-search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gg-accent);
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.gg-search-form button:hover,
.gg-search-btn:hover {
  transform: translateY(-50%) scale(1.08);
}

.gg-search-form button svg,
.gg-search-btn svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.gg-search-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(99, 102, 241, 0.25);
  border-top-color: var(--gg-accent);
  border-radius: 50%;
  animation: ggSpin 0.6s linear infinite;
}

.gg-search-btn.is-loading .gg-search-icon {
  display: none;
}

.gg-search-btn.is-loading .gg-search-spinner {
  display: inline-block;
}

@keyframes ggSpin {
  to { transform: rotate(360deg); }
}

.gg-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  max-height: 460px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid var(--gg-border-color);
  border-radius: var(--gg-radius-md);
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.16), 0 6px 12px -2px rgba(15, 23, 42, 0.08);
  z-index: 9999;
  animation: ggDropdownSlide 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ggDropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gg-search-dropdown[hidden] {
  display: none !important;
}

.gg-search-dropdown-header {
  padding: 10px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gg-text-muted);
  background: #f8fafc;
  border-bottom: 1px solid var(--gg-border-color);
}

.gg-search-dropdown-header span {
  color: var(--gg-accent);
  text-transform: none;
}

.gg-search-results-list {
  display: flex;
  flex-direction: column;
}

.gg-search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--gg-text);
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.gg-search-result-item:last-child {
  border-bottom: none;
}

.gg-search-result-item:hover,
.gg-search-result-item.is-focused {
  background-color: #f1f5f9;
  color: var(--gg-accent-dark);
}

.gg-search-result-item mark {
  background: rgba(245, 158, 11, 0.25);
  color: #0f172a;
  font-weight: 700;
  padding: 0 2px;
  border-radius: 2px;
}

.gg-search-thumb-wrap {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gg-search-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gg-search-thumb-placeholder {
  color: var(--gg-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gg-search-details {
  flex: 1;
  min-width: 0;
}

.gg-search-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--gg-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gg-search-result-item:hover .gg-search-item-title,
.gg-search-result-item.is-focused .gg-search-item-title {
  color: var(--gg-accent);
}

.gg-search-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--gg-text-muted);
  margin-top: 3px;
}

.gg-search-badge {
  background: rgba(99, 102, 241, 0.1);
  color: var(--gg-accent);
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
}

.gg-search-empty {
  padding: 24px 16px;
  text-align: center;
}

.gg-search-empty p {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: var(--gg-text-muted);
}

.gg-search-dropdown-footer {
  padding: 10px 14px;
  background: #f8fafc;
  text-align: center;
  border-top: 1px solid var(--gg-border-color);
}

.gg-search-view-all {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gg-accent);
  text-decoration: none;
  display: inline-block;
  transition: transform 0.15s ease;
}

.gg-search-view-all:hover {
  text-decoration: underline;
  transform: translateX(2px);
}

/* ==========================================================================
   5. Breadcrumbs Section (Semantic Clean Flow)
   ========================================================================== */
.gg-breadcrumb-bar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--gg-border-color);
  padding: 11px 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--gg-text-muted);
}

.gg-breadcrumbs {
  display: inline;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.gg-breadcrumbs li {
  display: inline;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.gg-breadcrumbs li + li::before {
  content: "•";
  margin: 0 8px;
  color: #94a3b8;
  user-select: none;
}

.gg-breadcrumbs.sep-slash li + li::before { content: "/"; margin: 0 8px; }
.gg-breadcrumbs.sep-arrow li + li::before { content: ">"; margin: 0 8px; }
.gg-breadcrumbs.sep-dash li + li::before  { content: "-"; margin: 0 8px; }

.gg-breadcrumbs a {
  color: var(--gg-text);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.gg-breadcrumbs a:hover {
  color: var(--gg-accent);
  text-decoration: underline;
}

.gg-breadcrumbs .current {
  color: var(--gg-text-muted);
  font-weight: 500;
}

/* ==========================================================================
   6. Homepage Featured Spotlight Banner (Option to Add Featured Posts)
   ========================================================================== */
.gg-featured-spotlight {
  margin-top: 32px;
  margin-bottom: 36px;
  background: #0f172a;
  border-radius: var(--gg-radius-lg);
  padding: 32px 36px;
  color: #ffffff;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.2);
  position: relative;
  overflow: hidden;
}

.gg-featured-spotlight::before {
  display: none;
}

.gg-spotlight-header {
  margin-bottom: 24px;
}

.gg-spotlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.gg-spotlight-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0;
  letter-spacing: -0.03em;
}

.gg-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.gg-spotlight-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--gg-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.gg-spotlight-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.gg-spotlight-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: block;
}

.gg-spotlight-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.gg-spotlight-card:hover .gg-spotlight-thumb img {
  transform: scale(1.06);
}

.gg-spotlight-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.gg-badge-featured-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--gg-gradient-featured);
  color: #ffffff;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.gg-spotlight-content {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gg-spotlight-content .gg-card-category a {
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.gg-spotlight-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 6px 0 12px 0;
  flex: 1;
}

.gg-spotlight-card-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.15s ease;
}

.gg-spotlight-card-title a:hover {
  color: #38bdf8;
}

.gg-spotlight-content .gg-post-meta {
  border-top-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding-top: 10px;
}

/* Section Feed Heading */
.gg-section-header {
  margin-bottom: 22px;
}

.gg-feed-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gg-text);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gg-feed-heading::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--gg-gradient-brand);
  border-radius: 2px;
}

/* ==========================================================================
   7. Homepage & Archive Post Cards (Beautiful Image Styling)
   ========================================================================== */
.gg-posts-grid {
  display: grid;
  gap: 28px;
}

body.gg-cols-2 .gg-posts-grid, .gg-posts-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
body.gg-cols-3 .gg-posts-grid, .gg-posts-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
body.gg-cols-4 .gg-posts-grid, .gg-posts-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.gg-post-card {
  background-color: var(--gg-card-bg);
  border-radius: var(--gg-radius-md);
  overflow: hidden;
  box-shadow: var(--gg-shadow);
  border: 1px solid var(--gg-border-color);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.gg-post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--gg-shadow-hover);
  border-color: #cbd5e1;
}

.gg-post-card.is-featured-post {
  border: 1.5px solid #c7d2fe;
}

/* Beautiful Thumbnail Container */
.gg-card-thumb-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #e2e8f0;
}

.gg-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: block;
  position: relative;
}

.gg-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.gg-post-card:hover .gg-card-thumb img {
  transform: scale(1.05);
  filter: contrast(1.02);
}

/* Floating Featured Badge */
.gg-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

.gg-badge-featured {
  background: var(--gg-gradient-featured);
  color: #ffffff;
}

.gg-single-featured-wrap {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.gg-single-featured-wrap .gg-badge-featured {
  position: static;
  padding: 6px 14px;
  font-size: 0.8rem;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.gg-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gg-card-category {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gg-accent);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.gg-card-category a {
  color: var(--gg-accent);
  text-decoration: none;
}

.gg-card-category a:hover {
  text-decoration: underline;
}

.gg-card-title {
  font-size: 1.2rem;
  line-height: 1.4;
  margin-bottom: 10px;
  font-weight: 700;
}

.gg-card-title a {
  color: var(--gg-text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.gg-card-title a:hover {
  color: var(--gg-link);
}

.gg-card-excerpt {
  font-size: 0.92rem;
  color: var(--gg-text-muted);
  margin-bottom: 16px;
  flex: 1;
  line-height: 1.6;
}

.gg-post-meta {
  font-size: 0.8rem;
  color: var(--gg-text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.gg-meta-item strong {
  color: var(--gg-text);
  font-weight: 600;
}

.gg-meta-sep {
  color: #cbd5e0;
}

/* Archive Page Header */
.gg-archive-header {
  background-color: var(--gg-card-bg);
  padding: 32px;
  border-radius: var(--gg-radius-md);
  border: 1px solid var(--gg-border-color);
  margin-bottom: 32px;
  box-shadow: var(--gg-shadow-sm);
}

.gg-archive-title {
  font-size: 2.1rem;
  margin-bottom: 8px;
  font-weight: 800;
}

.gg-archive-description {
  color: var(--gg-text-muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   8. Single Post Hero & Image Presentation
   ========================================================================== */
.gg-single-hero {
  width: 100%;
  height: 400px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--gg-radius-lg);
  margin-bottom: 0;
  box-shadow: 0 20px 45px -15px rgba(15, 23, 42, 0.18);
  background-color: #1e293b;
  position: relative;
}

.gg-single-hero img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.gg-single-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  pointer-events: none;
}

/* Elevated Single Post Overlay Card */
.gg-single-card {
  background-color: var(--gg-card-bg);
  border-radius: var(--gg-radius-lg);
  padding: 44px 50px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
  box-shadow: var(--gg-shadow);
  border: 1px solid var(--gg-border-color);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.gg-has-hero .gg-single-card {
  margin-top: -75px;
  z-index: 2;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12);
}

.gg-single-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gg-border-color);
}

.gg-single-title {
  font-size: 2.45rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--gg-text);
  letter-spacing: -0.03em;
}

.gg-single-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--gg-accent);
  font-weight: 600;
}

.gg-single-meta a {
  color: var(--gg-accent);
  text-decoration: underline;
}

.gg-single-meta span.meta-text {
  color: var(--gg-text-muted);
  font-weight: 400;
}

.gg-single-meta .sep {
  color: #cbd5e0;
}

/* In-Post Article Content Styling & Beautiful Images */
.gg-entry-content {
  font-size: 1.075rem;
  line-height: 1.85;
  color: var(--gg-text);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.gg-entry-content a {
  text-decoration: underline;
}

/* Beautiful in-content images */
.gg-entry-content img,
.gg-entry-content figure img,
.gg-entry-content .wp-block-image img,
.gg-entry-content .wp-block-cover img {
  max-width: 100%;
  height: auto !important;
  max-height: none;
  border-radius: var(--gg-radius-md);
  display: block;
  margin: 1.75rem auto;
  box-shadow: 0 10px 30px -8px rgba(15, 23, 42, 0.10);
  border: 1px solid var(--gg-border-color) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gg-entry-content img:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.16);
}

.gg-entry-content figure,
.gg-entry-content .wp-block-image,
.gg-entry-content .wp-block-media-text {
  margin: 2rem 0;
  max-width: 100%;
  text-align: center;
}

.gg-entry-content figcaption {
  font-size: 0.85rem;
  color: var(--gg-text-muted);
  margin-top: 10px;
  text-align: center;
  font-style: italic;
  display: inline-block;
  padding: 4px 14px;
  background: #f1f5f9;
  border-radius: 20px;
}

.gg-entry-content h2 {
  font-size: 1.75rem;
  margin-top: 2.25rem;
  margin-bottom: 1.15rem;
  letter-spacing: -0.025em;
}

.gg-entry-content h3 {
  font-size: 1.4rem;
  margin-top: 1.85rem;
  margin-bottom: 0.95rem;
}

.gg-entry-content ul, .gg-entry-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.6rem;
}

.gg-entry-content li {
  margin-bottom: 0.6rem;
}

.gg-entry-content blockquote {
  border-left: 4px solid var(--gg-accent);
  padding: 18px 24px;
  background: #f8fafc;
  margin: 1.75rem 0;
  border-radius: 0 var(--gg-radius-sm) var(--gg-radius-sm) 0;
  font-style: italic;
  color: #1e293b;
}

/* ==========================================================================
   9. Expandable & Collapsible Table of Contents (TOC)
   ========================================================================== */
.gg-toc-box {
  background: #ffffff;
  border: 1px solid var(--gg-border-color);
  border-left: 4px solid var(--gg-accent);
  border-radius: var(--gg-radius-md);
  padding: 20px 24px;
  margin: 32px 0;
  max-width: 720px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: all 0.25s ease;
}

.gg-toc-box:hover {
  border-color: #cbd5e1;
  border-left-color: var(--gg-accent);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.08);
}

.gg-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  user-select: none;
}

.gg-toc-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gg-toc-icon {
  color: var(--gg-accent);
  flex-shrink: 0;
}

.gg-toc-title {
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gg-text);
}

/* Expand / Collapse Toggle Button */
.gg-toc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f1f5f9;
  border: 1px solid var(--gg-border-color);
  border-radius: 20px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gg-text);
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.gg-toc-toggle:hover {
  background: #e2e8f0;
  color: var(--gg-accent);
}

.gg-toc-arrow {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--gg-text-muted);
}

.gg-toc-content {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--gg-border-light);
  transition: opacity 0.25s ease, margin 0.2s ease, padding 0.2s ease;
  overflow: visible;
  max-height: none;
  opacity: 1;
}

/* Collapsed State */
.gg-toc-box.is-collapsed .gg-toc-content {
  display: none !important;
  max-height: 0 !important;
  opacity: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top-color: transparent !important;
  pointer-events: none !important;
}

.gg-toc-box.is-collapsed .gg-toc-arrow {
  transform: rotate(-180deg);
}

.gg-toc-list,
.gg-entry-content .gg-toc-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gg-toc-item,
.gg-entry-content .gg-toc-item {
  margin-bottom: 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
}

.gg-toc-item a {
  text-decoration: none;
  color: var(--gg-text);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-block;
}

.gg-toc-item a:hover {
  color: var(--gg-accent);
  transform: translateX(3px);
  text-decoration: none;
}

.gg-toc-item.level-h2 { padding-left: 0 !important; font-weight: 600; }
.gg-toc-item.level-h3 { padding-left: 18px !important; font-size: 0.9rem; color: var(--gg-text-muted); }
.gg-toc-item.level-h4 { padding-left: 36px !important; font-size: 0.85rem; color: #94a3b8; }

.gg-toc-item.level-h2 > a::before { content: '•\00a0'; color: var(--gg-accent); font-weight: 700; }
.gg-toc-item.level-h3 > a::before { content: '›\00a0'; color: var(--gg-accent-secondary); font-weight: 700; }
.gg-toc-item.level-h4 > a::before { content: '–\00a0'; color: #94a3b8; }

/* ==========================================================================
   10. Expandable & Beautiful Content Tables (Tables in Articles)
   ========================================================================== */
.wp-block-table,
.gg-table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem 0;
  border-radius: var(--gg-radius-md);
  border: 1px solid var(--gg-border-color);
  background: #ffffff;
  box-shadow: var(--gg-shadow-sm);
  position: relative;
  transition: max-height 0.4s ease;
  display: block;
}

.wp-block-table {
  border: none;
  background: transparent;
  box-shadow: none;
  margin: 1.5rem 0;
}

.wp-block-table > table,
.gg-table-wrapper table,
.gg-entry-content table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.6;
}

.wp-block-table table {
  border: 1px solid var(--gg-border-color);
  border-radius: var(--gg-radius-md);
  background: #ffffff;
  box-shadow: var(--gg-shadow-sm);
}

.gg-entry-content > table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--gg-border-color);
  border-radius: var(--gg-radius-md);
  background: #ffffff;
  box-shadow: var(--gg-shadow-sm);
  margin: 2rem 0;
}

.gg-table-wrapper th,
.gg-entry-content th,
.wp-block-table th {
  background: #f8fafc;
  color: var(--gg-text);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 13px 16px;
  border-bottom: 2px solid var(--gg-border-color);
  border-top: none;
  line-height: 1.45;
  vertical-align: bottom;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  min-width: 120px;
}

.gg-table-wrapper td,
.gg-entry-content td,
.wp-block-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--gg-border-light);
  color: var(--gg-text);
  vertical-align: top;
}

.gg-table-wrapper tbody tr:nth-child(even),
.gg-entry-content tbody tr:nth-child(even),
.wp-block-table tbody tr:nth-child(even) {
  background-color: #fbfcfe;
}

.gg-table-wrapper tbody tr:hover,
.gg-entry-content tbody tr:hover,
.wp-block-table tbody tr:hover {
  background-color: #f1f5f9;
}

/* Collapsible Table Toggle Button */
.gg-table-wrapper.is-collapsible-table.is-table-collapsed {
  max-height: 380px;
  overflow-y: hidden;
}

.gg-table-wrapper.is-collapsible-table.is-table-collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 100%);
  pointer-events: none;
}

.gg-table-toggle-wrap {
  text-align: center;
  margin-top: -12px;
  margin-bottom: 2rem;
}

.gg-table-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: #ffffff;
  border: 1px solid var(--gg-border-color);
  border-radius: 20px;
  color: var(--gg-accent);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  transition: all 0.2s ease;
}

.gg-table-expand-btn:hover {
  background: var(--gg-accent);
  color: #ffffff;
  border-color: var(--gg-accent);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.25);
}

/* ==========================================================================
   11. Author Box & Post Navigation
   ========================================================================== */
.gg-author-box {
  display: flex;
  gap: 20px;
  align-items: center;
  background: #f8fafc;
  padding: 26px;
  border-radius: var(--gg-radius-md);
  border: 1px solid var(--gg-border-color);
  margin-top: 38px;
}

.gg-author-avatar img {
  border-radius: 50%;
  width: 72px;
  height: 72px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.gg-author-info h4 {
  margin-bottom: 6px;
  font-size: 1.15rem;
  font-weight: 800;
}

.gg-author-info h4 a {
  color: var(--gg-text);
  text-decoration: none;
  transition: color 0.18s ease;
}

.gg-author-info h4 a:hover {
  color: var(--gg-accent);
}

.gg-author-bio {
  font-size: 0.92rem;
  color: var(--gg-text-muted);
  line-height: 1.6;
}

.gg-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid var(--gg-border-color);
}

.gg-nav-card {
  flex: 1;
  background: #f8fafc;
  padding: 18px 22px;
  border-radius: var(--gg-radius-sm);
  border: 1px solid var(--gg-border-color);
  transition: all 0.2s ease;
}

.gg-nav-card:hover {
  background: #ffffff;
  border-color: var(--gg-accent);
  box-shadow: var(--gg-shadow-sm);
}

.gg-nav-next {
  text-align: right;
}

.gg-nav-card span {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--gg-text-muted);
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.gg-nav-card a {
  font-weight: 700;
  color: var(--gg-text);
  display: block;
  text-decoration: none;
  font-size: 1.02rem;
}

.gg-nav-card a:hover {
  color: var(--gg-accent);
}

/* ==========================================================================
   12. Sidebar Widgets & Featured Guides List
   ========================================================================== */
.gg-widget {
  background-color: var(--gg-card-bg);
  border-radius: var(--gg-radius-md);
  padding: 26px;
  margin-bottom: 26px;
  box-shadow: var(--gg-shadow-sm);
  border: 1px solid var(--gg-border-color);
}

.gg-widget-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gg-text);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gg-accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.gg-widget-desc {
  font-size: 0.9rem;
  color: var(--gg-text-muted);
}

.gg-featured-widget-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gg-featured-widget-item {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.gg-featured-widget-item::before {
  content: '⭐';
  font-size: 0.8rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.gg-featured-widget-item a {
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--gg-text);
  text-decoration: none;
  line-height: 1.45;
  transition: color 0.15s ease;
}

.gg-featured-widget-item a:hover {
  color: var(--gg-accent);
  text-decoration: underline;
}

/* ==========================================================================
   13. Footer & Pagination
   ========================================================================== */
.gg-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--gg-border-color);
  padding: 45px 0 35px 0;
  margin-top: 60px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--gg-text-muted);
}

.gg-footer-nav ul,
.gg-footer ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 16px 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.gg-footer-nav li,
.gg-footer li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.gg-footer a {
  color: var(--gg-text);
  text-decoration: none;
  font-weight: 500;
}

.gg-footer a:hover {
  color: var(--gg-accent);
}

.gg-copyright {
  font-size: 0.88rem;
  color: var(--gg-text-muted);
}

.gg-copyright a {
  color: var(--gg-text);
  font-weight: 600;
}

/* Pagination */
.gg-pagination {
  margin-top: 45px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.gg-pagination .page-numbers {
  padding: 9px 16px;
  background-color: var(--gg-card-bg);
  border: 1px solid var(--gg-border-color);
  border-radius: var(--gg-radius-sm);
  color: var(--gg-text);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.gg-pagination .page-numbers:hover {
  background-color: #f1f5f9;
  border-color: var(--gg-accent);
  color: var(--gg-accent);
}

.gg-pagination .page-numbers.current {
  background: var(--gg-gradient-brand);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* 404 Styling */
.gg-404-wrapper {
  max-width: 620px;
  margin: 80px auto;
  text-align: center;
  background-color: var(--gg-card-bg);
  padding: 55px 35px;
  border-radius: var(--gg-radius-lg);
  border: 1px solid var(--gg-border-color);
  box-shadow: var(--gg-shadow);
}

.gg-404-code {
  font-size: 5.5rem;
  color: var(--gg-accent);
  line-height: 1;
  margin-bottom: 12px;
  font-weight: 900;
}

.gg-404-title {
  font-size: 1.85rem;
  margin-bottom: 15px;
}

.gg-404-text {
  color: var(--gg-text-muted);
  margin-bottom: 30px;
  font-size: 1.05rem;
}

.gg-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--gg-gradient-brand);
  color: #ffffff;
  border-radius: 25px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gg-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
  color: #ffffff;
}

/* ==========================================================================
   14. FAQ Section & Accordion
   ========================================================================== */
.gg-faq-section,
.gg-entry-content .gg-faq-section {
  margin: 45px 0 35px;
  padding-top: 30px;
  border-top: 2px solid var(--gg-border-color);
}

.gg-faq-title,
.gg-entry-content .gg-faq-title {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 22px;
  color: var(--gg-text);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gg-faq-title::before,
.gg-entry-content .gg-faq-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background: var(--gg-gradient-brand);
  border-radius: 2px;
}

.gg-faq-list,
.gg-entry-content .gg-faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.gg-faq-item,
.gg-entry-content .gg-faq-item {
  background: var(--gg-card-bg);
  border: 1px solid var(--gg-border-color);
  border-left: 4px solid var(--gg-border-color);
  border-radius: var(--gg-radius-sm);
  overflow: hidden;
  margin-bottom: 0 !important;
  padding: 0 !important;
  transition: all 0.2s ease;
}

.gg-faq-item:hover {
  border-color: #cbd5e1;
  border-left-color: var(--gg-accent);
}

.gg-faq-item[open] {
  border-left-color: var(--gg-accent);
  box-shadow: var(--gg-shadow-sm);
}

.gg-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gg-text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  outline: none;
}

.gg-faq-question::-webkit-details-marker,
.gg-faq-question::marker {
  display: none !important;
  content: "" !important;
}

.gg-faq-question:hover {
  color: var(--gg-accent);
}

.gg-faq-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gg-accent);
  transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
  margin-left: 14px;
  line-height: 1;
}

.gg-faq-item[open] .gg-faq-toggle-icon {
  transform: rotate(45deg);
  background: var(--gg-accent);
  color: #ffffff;
}

.gg-faq-answer {
  padding: 4px 22px 20px 22px;
  color: #334155;
  font-size: 0.98rem;
  line-height: 1.7;
  border-top: 1px solid #f1f5f9;
}

.gg-faq-answer p {
  margin: 12px 0 0 0;
}

/* ==========================================================================
   15. Same Game Guides Box
   ========================================================================== */
.gg-game-guides-box {
  background: #f8fafc;
  border: 1px solid var(--gg-border-color);
  border-left: 4px solid var(--gg-accent);
  border-radius: var(--gg-radius-sm);
  padding: 20px 24px;
  margin: 30px 0 34px;
  box-shadow: var(--gg-shadow-sm);
}

.gg-game-guides-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gg-text);
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gg-border-color);
  line-height: 1.3;
}

.gg-game-guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
}

.gg-game-guides-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.gg-game-guides-thumb {
  width: 54px;
  height: 54px;
  border-radius: var(--gg-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: #e2e8f0;
}

.gg-game-guides-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gg-game-guides-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #cbd5e1;
  color: #64748b;
}

.gg-game-guides-thumb-placeholder svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.gg-game-guides-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gg-text);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.15s ease;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.gg-game-guides-link:hover {
  color: var(--gg-accent);
  text-decoration: underline;
}

/* ==========================================================================
   16. HTML Sitemap Shortcode
   ========================================================================== */
.gg-html-sitemap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin: 32px 0;
}

.gg-sitemap-section {
  background: var(--gg-card-bg);
  border: 1px solid var(--gg-border-color);
  border-radius: var(--gg-radius-sm);
  padding: 22px;
  box-shadow: var(--gg-shadow-sm);
}

.gg-sitemap-cat-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gg-accent);
}

.gg-sitemap-cat-title a {
  color: var(--gg-text);
  text-decoration: none;
}

.gg-sitemap-cat-title a:hover {
  color: var(--gg-accent);
}

.gg-sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gg-sitemap-list li::before {
  content: '›\00a0';
  color: var(--gg-accent);
  font-weight: 700;
}

.gg-sitemap-list a {
  color: var(--gg-text);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.4;
  transition: color 0.15s ease;
}

.gg-sitemap-list a:hover {
  color: var(--gg-accent);
  text-decoration: underline;
}

/* ==========================================================================
   17. Responsive Design
   ========================================================================== */
@media (max-width: 991px) {
  .gg-layout-wrapper {
    flex-direction: column;
  }
  
  .gg-sidebar {
    width: 100%;
  }

  body.gg-cols-4 .gg-posts-grid,
  body.gg-cols-3 .gg-posts-grid,
  .gg-posts-grid.cols-4,
  .gg-posts-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .gg-single-card {
    padding: 30px 24px;
  }

  .gg-has-hero .gg-single-card {
    margin-top: -50px;
  }

  .gg-single-hero {
    height: 320px;
  }

  .gg-single-hero img {
    height: 320px;
  }

  .gg-single-title {
    font-size: 1.85rem;
  }

  .gg-featured-spotlight {
    padding: 24px 22px;
  }
}

@media (max-width: 640px) {
  /* Container Side Padding Optimization */
  .gg-container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .gg-layout-wrapper {
    margin-top: 14px;
    margin-bottom: 28px;
    gap: 20px;
  }

  .gg-header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .gg-search-form {
    max-width: 100%;
  }

  .gg-search-dropdown {
    width: 100%;
    left: 0;
    right: 0;
  }

  .gg-breadcrumbs {
    font-size: 0.78rem;
    margin-bottom: 12px;
  }

  body.gg-cols-4 .gg-posts-grid,
  body.gg-cols-3 .gg-posts-grid,
  body.gg-cols-2 .gg-posts-grid,
  .gg-posts-grid.cols-4,
  .gg-posts-grid.cols-3,
  .gg-posts-grid.cols-2 {
    grid-template-columns: 1fr;
  }

  /* Single Post Featured Hero Image on Mobile */
  .gg-single-hero {
    height: 220px;
    border-radius: var(--gg-radius-md);
  }

  .gg-single-hero img {
    height: 220px;
  }

  /* Compact Single Card & Archive Cards */
  .gg-single-card {
    padding: 20px 14px;
    border-radius: var(--gg-radius-md);
    margin-top: 12px;
  }

  .gg-has-hero .gg-single-card {
    margin-top: -24px;
  }

  .gg-card-body {
    padding: 16px 14px;
  }

  .gg-single-title {
    font-size: 1.45rem;
    line-height: 1.25;
    margin-bottom: 10px;
  }

  .gg-author-box {
    flex-direction: column;
    text-align: center;
  }

  .gg-post-nav {
    flex-direction: column;
  }

  .gg-game-guides-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gg-footer-nav ul,
  .gg-footer ul {
    gap: 14px;
  }

  .gg-html-sitemap {
    grid-template-columns: 1fr;
  }

  .gg-toc-box {
    padding: 16px 18px;
  }

  /* Single Post Header & Meta on Mobile */
  .gg-single-header {
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  .gg-single-meta {
    font-size: 0.82rem;
    gap: 6px;
  }

  /* Content Headings Scaling on Mobile */
  .gg-entry-content h1 {
    font-size: 1.55rem;
    line-height: 1.3;
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .gg-entry-content h2 {
    font-size: 1.32rem;
    line-height: 1.32;
    margin-top: 1.6rem;
    margin-bottom: 0.75rem;
  }

  .gg-entry-content h3 {
    font-size: 1.15rem;
    line-height: 1.35;
    margin-top: 1.35rem;
    margin-bottom: 0.65rem;
  }

  .gg-entry-content h4 {
    font-size: 1.02rem;
    line-height: 1.38;
  }

  .gg-entry-content blockquote {
    padding: 12px 16px;
    margin: 1.25rem 0;
    font-size: 0.92rem;
  }

  /* Mobile Responsive Tables */
  .wp-block-table,
  .gg-table-wrapper,
  .gg-entry-content > table {
    margin: 1.25rem 0;
    border-radius: var(--gg-radius-sm);
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    display: block;
    overflow-x: auto;
  }

  .wp-block-table table,
  .gg-table-wrapper table,
  .gg-entry-content table {
    min-width: 480px; /* Ensures wide tables scroll smoothly on mobile instead of crushing columns */
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .wp-block-table th,
  .gg-table-wrapper th,
  .gg-entry-content th {
    padding: 10px 12px;
    font-size: 0.76rem;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: break-word;
    min-width: 110px;
    vertical-align: bottom;
  }

  .wp-block-table td,
  .gg-table-wrapper td,
  .gg-entry-content td {
    padding: 9px 12px;
    font-size: 0.84rem;
  }
}

/* ==========================================================================
   Single Post Tags (inline in meta bar)
   ========================================================================== */
.gg-meta-tags {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.gg-meta-tags a {
  color: var(--gg-accent) !important;
  text-decoration: underline;
  font-size: inherit;
  font-weight: inherit;
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  transition: color 0.18s ease;
}

.gg-meta-tags a:hover {
  color: var(--gg-link-hover) !important;
  background: none;
  border: none;
  transform: none;
  box-shadow: none;
}

/* Post Content Reading Font Sizes (Desktop baseline) */
.gg-entry-content {
  font-size: 1.0625rem; /* Default ~17px */
  line-height: 1.88;
  color: #1e293b;
}

.gg-entry-content p {
  margin-bottom: 1.65rem;
  line-height: inherit;
}

body.gg-content-size-small .gg-entry-content,
.gg-entry-content.is-size-small {
  font-size: 0.9375rem; /* ~15px */
  line-height: 1.78;
}

body.gg-content-size-medium .gg-entry-content,
.gg-entry-content.is-size-medium {
  font-size: 1.0625rem; /* ~17px */
  line-height: 1.88;
}

body.gg-content-size-large .gg-entry-content,
.gg-entry-content.is-size-large {
  font-size: 1.1875rem; /* ~19px */
  line-height: 1.92;
}

body.gg-content-size-xlarge .gg-entry-content,
.gg-entry-content.is-size-xlarge {
  font-size: 1.3125rem; /* ~21px */
  line-height: 1.96;
}

/* Mobile Post Content Reading Font Sizes */
@media (max-width: 640px) {
  .gg-entry-content,
  body.gg-content-size-medium .gg-entry-content,
  .gg-entry-content.is-size-medium {
    font-size: 0.9375rem !important; /* ~15px on mobile */
    line-height: 1.72 !important;
  }

  .gg-entry-content p {
    margin-bottom: 1.45rem !important;
  }

  body.gg-content-size-small .gg-entry-content,
  .gg-entry-content.is-size-small {
    font-size: 0.875rem !important; /* ~14px on mobile */
    line-height: 1.68 !important;
  }

  body.gg-content-size-large .gg-entry-content,
  .gg-entry-content.is-size-large {
    font-size: 1rem !important; /* ~16px on mobile */
    line-height: 1.75 !important;
  }

  body.gg-content-size-xlarge .gg-entry-content,
  .gg-entry-content.is-size-xlarge {
    font-size: 1.0625rem !important; /* ~17px on mobile */
    line-height: 1.8 !important;
  }
}

/* ==========================================================================
   Click-to-Reveal / Spoiler Words Feature
   ========================================================================== */
.gg-spoiler {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  cursor: pointer;
  background: #04125d;
  color: #ffffff;
  border-radius: 6px;
  padding: 1px 8px;
  margin: 0 2px;
  user-select: none;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(4, 18, 93, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.gg-spoiler:hover {
  background: #0366f8;
  transform: translateY(-1px);
}

.gg-spoiler-hint {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.gg-spoiler-hint::before {
  content: '🔒';
  font-size: 0.8rem;
}

.gg-spoiler-inner {
  display: none;
}

/* Revealed State */
.gg-spoiler.is-revealed {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #86efac;
  cursor: default;
  transform: none;
  padding: 1px 8px;
  box-shadow: 0 1px 2px rgba(22, 101, 52, 0.08);
}

.gg-spoiler.is-revealed .gg-spoiler-hint {
  display: none;
}

.gg-spoiler.is-revealed .gg-spoiler-inner {
  display: inline;
  animation: ggSpoilerReveal 0.25s ease-out;
}

@keyframes ggSpoilerReveal {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
