/*
Theme Name: Quorxa Gaming Theme
Theme URI: https://example.com/quorxa-gaming-theme
Author: Antigravity AI
Description: A modern, high-performance, premium WordPress Gaming Portal theme with full mobile support, embedded HTML5 game player, custom post types, and comprehensive customizer options.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: quorxa-gaming
Tags: gaming, portal, html5-games, responsive, mobile-first, dark-mode, modern
*/

/* ======================================
   SCROLLBAR
====================================== */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ======================================
   SHADOWS & RADII
====================================== */
.quorxa-shadow { box-shadow: 0 4px 24px -4px rgba(0,0,0,0.08); }
.rounded-game-card { border-radius: 22px; }

/* ======================================
   GRADIENTS
====================================== */
.hero-gradient { background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.88) 100%); }
.daily-challenge-bg { background: linear-gradient(135deg, #2D1B69 0%, #1A1A2E 100%); }
.spin-win-bg { background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%); }

/* ======================================
   GAME IFRAME PLAYER
====================================== */
.game-iframe-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #0F172A;
}
.game-iframe-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ======================================
   MOBILE BOTTOM NAV
====================================== */
.quorxa-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: #fff;
  border-top: 1px solid #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 0 env(safe-area-inset-bottom, 10px);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.07);
}
.quorxa-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
  color: #9ca3af;
  transition: color 0.2s;
  min-width: 48px;
}
.quorxa-bottom-nav a svg { width: 22px; height: 22px; }
.quorxa-bottom-nav a.active,
.quorxa-bottom-nav a:hover { color: #FF8A00; }
.quorxa-bottom-nav a.active svg { stroke: #FF8A00; }

/* ======================================
   MOBILE DRAWER OVERLAY
====================================== */
.quorxa-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.quorxa-drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.quorxa-drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 280px;
  background: #fff;
  z-index: 201;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
}
.quorxa-drawer.open { transform: translateX(0); }

/* ======================================
   RESPONSIVE PAGE PADDING (bottom nav)
====================================== */
@media (max-width: 1023px) {
  body { padding-bottom: 70px; }
  main { padding-bottom: 80px; }
}

/* ======================================
   GAME CARD HOVER ANIMATIONS
====================================== */
.game-card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.game-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

/* ======================================
   ACTIVE NAV STATE
====================================== */
.nav-active {
  color: #FF8A00!important;
  border-bottom: 2px solid #FF8A00;
  padding-bottom: 4px;
}

/* ======================================
   SEARCH RESULTS PAGE
====================================== */
.search-highlight { background: rgba(255,138,0,0.15); border-radius: 3px; padding: 0 2px; }

/* ======================================
   404 PAGE
====================================== */
.glitch-text {
  animation: glitch 2s infinite;
}
@keyframes glitch {
  0%, 100% { text-shadow: 2px 0 #FF8A00, -2px 0 #3B82F6; }
  25%       { text-shadow: -2px 0 #FF8A00, 2px 0 #3B82F6; }
  50%       { text-shadow: 2px 2px #FF8A00, -2px -2px #3B82F6; }
  75%       { text-shadow: -2px 2px #FF8A00, 2px -2px #3B82F6; }
}

/* ======================================
   CATEGORY PAGE FILTERS
====================================== */
.filter-pill {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
}
.filter-pill:hover,
.filter-pill.active {
  border-color: #FF8A00;
  background: #FF8A00;
  color: #fff;
}

/* ======================================
   CONTACT FORM
====================================== */
.quorxa-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  background: #fff;
}
.quorxa-input:focus {
  border-color: #FF8A00;
  box-shadow: 0 0 0 3px rgba(255,138,0,0.1);
}

/* ======================================
   PAGINATION
====================================== */
.quorxa-pagination { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.quorxa-pagination .page-numbers {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  font-weight: 700; font-size: 13px;
  border: 2px solid #e5e7eb;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.2s;
}
.quorxa-pagination .page-numbers:hover,
.quorxa-pagination .page-numbers.current {
  border-color: #FF8A00;
  background: #FF8A00;
  color: #fff;
}

/* ======================================
   MOBILE HERO HEIGHT
====================================== */
@media (max-width: 640px) {
  .quorxa-hero { height: 320px !important; }
  .quorxa-hero h1 { font-size: 28px !important; }
}

/* ======================================
   SMOOTH SCROLL
====================================== */
html { scroll-behavior: smooth; }

/* ======================================
   CARD SKELETON LOADING ANIMATION
====================================== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
