/*
Theme Name: GameFarra
Theme URI: https://gamefarra.com
Author: GameFarra
Author URI: https://gamefarra.com
Description: Tema gaming customizado para o GameFarra - Jogos grátis, promoções e sim racing.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gamefarra
*/

/* ==========================================================================
   DESIGN SYSTEM - CSS Custom Properties
   ========================================================================== */

:root {
  /* Backgrounds */
  --bg-body: #080b12;
  --bg-primary: #0d1117;
  --bg-secondary: #151b28;
  --bg-card: #161d2b;
  --bg-card-hover: #1c2536;
  --bg-input: #1a2233;
  --bg-header: rgba(13, 17, 23, 0.95);

  /* Text */
  --text-primary: #e6edf3;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-heading: #ffffff;

  /* Accents */
  --accent-primary: #00d4ff;
  --accent-primary-rgb: 0, 212, 255;
  --accent-secondary: #f97316;
  --accent-success: #10b981;
  --accent-danger: #ef4444;
  --accent-warning: #eab308;
  --accent-steam: #1b2838;
  --accent-epic: #2a2a2a;

  /* Borders */
  --border-color: #1e2a3a;
  --border-subtle: #141c2a;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(var(--accent-primary-rgb), 0.15);

  /* Spacing */
  --gap-xs: 0.25rem;
  --gap-sm: 0.5rem;
  --gap-md: 1rem;
  --gap-lg: 1.5rem;
  --gap-xl: 2rem;
  --gap-2xl: 3rem;
  --gap-3xl: 4rem;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-max: 1280px;
  --header-height: 64px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #33ddff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-heading);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

::selection {
  background: rgba(var(--accent-primary-rgb), 0.3);
  color: var(--text-heading);
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gap-lg);
}

.section {
  padding: var(--gap-3xl) 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--gap-xl);
  gap: var(--gap-md);
}

.section-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.section-title .icon {
  font-size: 1.3em;
}

.section-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.3);
  transition: all var(--transition-normal);
}

.section-link:hover {
  background: rgba(var(--accent-primary-rgb), 0.1);
  border-color: var(--accent-primary);
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
  transition: background var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--gap-lg);
}

.site-logo {
  flex-shrink: 0;
}

.site-logo img {
  height: 42px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
}

.nav-menu a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a,
.nav-menu .current_page_item a {
  color: var(--text-heading);
  background: rgba(var(--accent-primary-rgb), 0.08);
}

.nav-search-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  transition: color var(--transition-fast);
}

.nav-search-btn:hover {
  color: var(--accent-primary);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    flex-direction: column;
    padding: var(--gap-xl);
    gap: var(--gap-sm);
    overflow-y: auto;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    font-size: 1.1rem;
    padding: 12px 16px;
    width: 100%;
  }
}

/* Spacer for fixed header */
.header-spacer {
  height: var(--header-height);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--gap-xl);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 11, 18, 0.98) 0%,
    rgba(8, 11, 18, 0.7) 40%,
    rgba(8, 11, 18, 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--gap-2xl);
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--gap-md);
}

.badge-free {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-deal {
  background: rgba(249, 115, 22, 0.2);
  color: var(--accent-secondary);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.badge-sim {
  background: rgba(var(--accent-primary-rgb), 0.2);
  color: var(--accent-primary);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.3);
}

.hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 900;
  margin-bottom: var(--gap-sm);
  max-width: 700px;
}

.hero-excerpt {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: var(--gap-lg);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--gap-lg);
  flex-wrap: wrap;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), #0099cc);
  color: #000;
  box-shadow: 0 2px 12px rgba(var(--accent-primary-rgb), 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(var(--accent-primary-rgb), 0.45);
  color: #000;
}

.btn-success {
  background: linear-gradient(135deg, var(--accent-success), #059669);
  color: #fff;
}

.btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-steam {
  background: linear-gradient(135deg, #1b2838, #2a475e);
  color: #fff;
}

.btn-epic {
  background: linear-gradient(135deg, #313131, #1a1a1a);
  color: #fff;
}

/* ==========================================================================
   CARDS - Game Card
   ========================================================================== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap-lg);
}

.cards-grid-wide {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(var(--accent-primary-rgb), 0.3);
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-secondary);
}

.card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 40%);
  z-index: 1;
  pointer-events: none;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-slow);
}

.card:hover .card-image img {
  transform: scale(1.08);
}

.card-badges {
  position: absolute;
  top: var(--gap-sm);
  left: var(--gap-sm);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.card-badge {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
}

.card-badge-free {
  background: rgba(16, 185, 129, 0.85);
  color: #fff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.card-badge-platform {
  background: rgba(13, 17, 23, 0.7);
  color: var(--text-primary);
}

.card-badge-discount {
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
}

.card-body {
  padding: var(--gap-md) var(--gap-lg) var(--gap-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  background: linear-gradient(to bottom, rgba(255,255,255,0.02), transparent);
}

.card-title {
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 800;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-heading);
}

.card-title a {
  color: inherit;
  transition: color var(--transition-fast);
}

.card-title a:hover {
  color: var(--accent-primary);
}

.card-excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  opacity: 0.9;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  padding: 0 var(--gap-lg) var(--gap-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-sm);
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.03);
  padding-top: var(--gap-sm);
}

.card-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-date::before {
  content: '🕒';
  font-size: 0.8em;
}

/* ==========================================================================
   CARDS - Deal Card (Promoções)
   ========================================================================== */

.card-prices {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  margin-top: var(--gap-sm);
}

.price-original {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-current {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-success);
}

.price-lowest {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.price-lowest span {
  color: var(--accent-secondary);
  font-weight: 600;
}

.discount-badge {
  background: var(--accent-success);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.price-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--gap-md) var(--gap-lg);
  margin: var(--gap-md) 0;
}

.price-box-header {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--gap-sm);
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gap-xs) 0;
}

.price-row + .price-row {
  border-top: 1px solid var(--border-subtle);
}

.price-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.price-value {
  font-weight: 700;
}

.price-value.free {
  color: var(--accent-success);
}

.price-value.low {
  color: var(--accent-secondary);
}

/* ==========================================================================
   CARDS - Product Card (Afiliados)
   ========================================================================== */

.card-product .card-image {
  aspect-ratio: 1 / 1;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gap-lg);
}

.card-product .card-image img {
  object-fit: contain;
}

.card-product .card-body {
  text-align: center;
}

.card-product .card-title {
  font-size: 0.95rem;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-primary);
  margin: var(--gap-sm) 0;
}

.product-links {
  display: flex;
  gap: var(--gap-sm);
  margin-top: var(--gap-sm);
}

.product-links .btn {
  flex: 1;
  font-size: 0.8rem;
  padding: 8px 12px;
}

/* ==========================================================================
   PLATFORM BADGES
   ========================================================================== */

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.platform-steam {
  background: rgba(27, 40, 56, 0.8);
  color: #66c0f4;
  border: 1px solid rgba(102, 192, 244, 0.2);
}

.platform-epic {
  background: rgba(42, 42, 42, 0.8);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.platform-gog {
  background: rgba(120, 60, 156, 0.2);
  color: #b983d6;
  border: 1px solid rgba(120, 60, 156, 0.3);
}

.platform-prime {
  background: rgba(0, 168, 225, 0.15);
  color: #00a8e1;
  border: 1px solid rgba(0, 168, 225, 0.3);
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.breadcrumbs {
  margin: var(--gap-lg) 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li:not(:last-child)::after {
  content: '>';
  font-size: 0.8em;
  opacity: 0.5;
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--accent-primary);
}

/* ==========================================================================
   SINGLE POST
   ========================================================================== */

.single-hero {
  position: relative;
  min-height: 350px;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--gap-2xl);
}

.single-hero .hero-bg::after {
  background: linear-gradient(
    to top,
    rgba(8, 11, 18, 1) 0%,
    rgba(8, 11, 18, 0.8) 30%,
    rgba(8, 11, 18, 0.2) 100%
  );
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
}

.post-content p {
  margin-bottom: var(--gap-md);
  font-size: 1.05rem;
  line-height: 1.8;
}

.post-content h2 {
  margin-top: var(--gap-2xl);
  margin-bottom: var(--gap-md);
}

.post-content h3 {
  margin-top: var(--gap-xl);
  margin-bottom: var(--gap-sm);
}

.post-content img {
  border-radius: var(--radius-md);
  margin: var(--gap-xl) 0;
}

.post-content blockquote {
  border-left: 3px solid var(--accent-primary);
  padding: var(--gap-md) var(--gap-lg);
  background: var(--bg-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: var(--gap-lg) 0;
}

.post-content a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-decoration-color: rgba(var(--accent-primary-rgb), 0.3);
  text-underline-offset: 3px;
}

.post-content a:hover {
  text-decoration-color: var(--accent-primary);
}

/* CTA Box inside post */
.cta-box {
  background: linear-gradient(135deg, rgba(var(--accent-primary-rgb), 0.1), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
  border-radius: var(--radius-md);
  padding: var(--gap-xl);
  text-align: center;
  margin: var(--gap-2xl) 0;
}

.cta-box h3 {
  margin-bottom: var(--gap-sm);
}

.cta-box p {
  margin-bottom: var(--gap-lg);
}

/* Post meta */
.post-meta {
  display: flex;
  align-items: center;
  gap: var(--gap-lg);
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--gap-xl);
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  margin-top: var(--gap-2xl);
  padding-top: var(--gap-xl);
  border-top: 1px solid var(--border-color);
}

.post-tag {
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.post-tag:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Related posts */
.related-posts {
  margin-top: var(--gap-3xl);
  padding-top: var(--gap-2xl);
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   ARCHIVE / CATEGORY
   ========================================================================== */

.archive-header {
  margin-bottom: var(--gap-2xl);
  padding-bottom: var(--gap-xl);
  border-bottom: 1px solid var(--border-color);
}

.archive-header h1 {
  margin-bottom: var(--gap-sm);
}

.archive-description {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Filter pills */
.filter-pills {
  display: flex;
  gap: var(--gap-sm);
  overflow-x: auto;
  padding-bottom: var(--gap-sm);
  margin-bottom: var(--gap-xl);
  scrollbar-width: none;
}

.filter-pills::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover,
.filter-pill.active {
  background: rgba(var(--accent-primary-rgb), 0.1);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-sm);
  margin-top: var(--gap-3xl);
}

.pagination a,
.pagination span {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.pagination a {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.pagination a:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.pagination .current {
  background: var(--accent-primary);
  color: #000;
  font-weight: 700;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: var(--gap-3xl) 0 var(--gap-xl);
  margin-top: var(--gap-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--gap-2xl);
  margin-bottom: var(--gap-2xl);
}

.footer-brand img {
  height: 40px;
  margin-bottom: var(--gap-md);
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-heading);
  margin-bottom: var(--gap-md);
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-social {
  display: flex;
  gap: var(--gap-sm);
  margin-top: var(--gap-md);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-subtle);
}

.footer-social a:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: rgba(var(--accent-primary-rgb), 0.1);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--gap-xl);
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-xl);
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SEARCH OVERLAY
   ========================================================================== */

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}

.search-overlay.active {
  display: flex;
}

.search-box {
  width: 100%;
  max-width: 600px;
  padding: 0 var(--gap-lg);
}

.search-box input {
  width: 100%;
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.1rem;
  font-family: var(--font-family);
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--accent-primary);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

/* ==========================================================================
   404 PAGE
   ========================================================================== */

.error-page {
  text-align: center;
  padding: var(--gap-3xl) 0;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error-404 {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--gap-md);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-primary); }
.text-success { color: var(--accent-success); }
.text-danger { color: var(--accent-danger); }
.text-warning { color: var(--accent-warning); }

.mt-sm { margin-top: var(--gap-sm); }
.mt-md { margin-top: var(--gap-md); }
.mt-lg { margin-top: var(--gap-lg); }
.mt-xl { margin-top: var(--gap-xl); }
.mb-sm { margin-bottom: var(--gap-sm); }
.mb-md { margin-bottom: var(--gap-md); }
.mb-lg { margin-bottom: var(--gap-lg); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-card) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Fade in animation */
.fade-in {
  animation: fadeIn var(--transition-slow) both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   SCROLLBAR
   ========================================================================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-color);
}

/* ==========================================================================
   WORDPRESS SPECIFIC
   ========================================================================== */

.wp-block-image {
  margin: var(--gap-xl) 0;
}

.wp-block-image img {
  border-radius: var(--radius-md);
}

.aligncenter {
  text-align: center;
}

.alignleft {
  float: left;
  margin-right: var(--gap-lg);
}

.alignright {
  float: right;
  margin-left: var(--gap-lg);
}

.wp-caption-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--gap-sm);
}

/* Screen reader text (WordPress) */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
