/*
Theme Name: Jalwa Games
Theme URI: https://jalwazgames.org
Author: Jalwa Games Team
Author URI: https://jalwazgames.org
Description: Premium, high-performance WordPress theme for Jalwa Games — featuring vibrant cyber-cyan & teal neon gaming aesthetics, responsive design, fast loading, customizer controls, and rich SEO markup.
Version: 1.1.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jalwazgames
Tags: gaming, entertainment, responsive-layout, dark-mode, custom-colors, translation-ready, one-column
*/

:root {
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-2xl: 22px;
  --radius-full: 9999px;

  /* Cyber Cyan / Teal Dark Theme Palette matching new Jalwa logo */
  --bg-color: #070d18;
  --bg-surface: #0e1a2f;
  --bg-card: #0b1527;
  --bg-card-alt: #12213b;
  --text-main: #f1f7fc;
  --text-muted: #94a9c9;
  --border-color: #1a365d;
  --border-glow: rgba(0, 242, 254, 0.3);

  --primary: #00f2fe;
  --primary-glow: #38ef7d;
  --primary-dark: #0284c7;
  
  --accent: #00f2fe;
  --accent-light: #5efce8;
  --accent-mint: #38ef7d;
  --accent-gold: #ffd000;
  
  --gradient-primary: linear-gradient(135deg, #00f2fe 0%, #0072ff 100%);
  --gradient-cyan-mint: linear-gradient(135deg, #5efce8 0%, #00f2fe 50%, #38ef7d 100%);
  --gradient-gold: linear-gradient(135deg, #5efce8 0%, #00f2fe 100%);
  --gradient-surface: linear-gradient(160deg, #10213d 0%, #091325 100%);
  --gradient-hero: linear-gradient(to top, #070d18 0%, rgba(7, 13, 24, 0.6) 60%, rgba(7, 13, 24, 0.15) 100%);

  --shadow-glow: 0 0 35px -5px rgba(0, 242, 254, 0.45);
  --shadow-gold: 0 8px 25px -6px rgba(56, 239, 125, 0.45);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.65);

  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-main);
  scroll-behavior: smooth;
  line-height: 1.6;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(900px 500px at 10% -10%, rgba(0, 242, 254, 0.16), transparent),
    radial-gradient(900px 500px at 90% 0%, rgba(56, 239, 125, 0.13), transparent),
    radial-gradient(1000px 600px at 50% 100%, rgba(0, 114, 255, 0.12), transparent);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.container-wide {
  max-width: 1400px;
}

.container-narrow {
  max-width: 1100px;
}

/* Typography & Gradients */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em;
  color: var(--text-main);
  font-weight: 800;
  line-height: 1.25;
}

.text-gradient-gold {
  background: var(--gradient-cyan-mint);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-pink {
  background: var(--gradient-cyan-mint);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.inline-cta {
  color: var(--accent-light);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.inline-cta:hover {
  color: var(--accent-mint);
}

/* Buttons */
.btn-neon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-full);
  padding: 0.65rem 1.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-neon:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
  box-shadow: 0 0 45px -4px rgba(0, 242, 254, 0.7);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-full);
  padding: 0.65rem 1.4rem;
  font-weight: 800;
  font-size: 0.95rem;
  background: var(--gradient-cyan-mint);
  color: #061222;
  box-shadow: var(--shadow-gold);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 10px 30px -4px rgba(56, 239, 125, 0.65);
}

.btn-lg {
  padding: 0.85rem 1.85rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.825rem;
}

/* Surface Card */
.surface-card {
  background: var(--gradient-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease;
}

.surface-card:hover {
  border-color: rgba(0, 242, 254, 0.4);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  border-bottom: 1px solid var(--border-color);
  background: rgba(7, 13, 24, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  gap: 1rem;
}

.site-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.nav-desktop {
  display: none;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
}

.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-desktop a:hover {
  color: var(--accent-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}

@media (min-width: 900px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 1.25rem;
  background: rgba(7, 13, 24, 0.98);
  border-bottom: 1px solid var(--border-color);
}

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

.mobile-nav a {
  padding: 0.75rem 0;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(26, 54, 93, 0.5);
}

.mobile-nav a:hover {
  color: var(--accent-light);
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-section {
    min-height: 650px;
  }
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.badge-tag {
  display: inline-block;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 242, 254, 0.5);
  background: rgba(7, 13, 24, 0.75);
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  backdrop-filter: blur(8px);
}

.hero-title {
  margin-top: 1.25rem;
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.15;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 900px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-description {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 650px;
  color: rgba(241, 247, 252, 0.9);
}

.hero-btn-group {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Quick Stats */
.stats-strip {
  width: 100%;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(11, 21, 39, 0.7);
  padding: 2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-value {
  font-size: 2rem;
  font-weight: 900;
}

@media (min-width: 768px) {
  .stat-value {
    font-size: 2.5rem;
  }
}

.stat-label {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Jump Links */
.jump-links-wrap {
  padding-top: 2.5rem;
}

.jump-links-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1.25rem;
}

.jump-link-pill {
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-card-alt);
  padding: 0.45rem 1rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.jump-link-pill:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  transform: translateY(-1px);
}

/* Content Sections */
.site-section {
  padding: 3.5rem 0;
  scroll-margin-top: 5rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.35rem;
  }
}

.section-body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-body p {
  color: var(--text-muted);
}

.section-body strong {
  color: var(--text-main);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-padded {
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .card-padded {
    padding: 2rem;
  }
}

.step-list {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.step-list li {
  color: var(--text-muted);
}

.step-list li::marker {
  color: var(--accent-light);
  font-weight: 700;
}

/* Games Section */
.games-section {
  width: 100%;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(11, 21, 39, 0.5);
  padding: 4rem 0;
  scroll-margin-top: 5rem;
}

.game-card {
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-glow);
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 45px -4px rgba(0, 242, 254, 0.6);
}

.game-card-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.game-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .game-card-img {
  transform: scale(1.06);
}

.game-card-body {
  padding: 1.25rem;
}

.game-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.game-card-format {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.game-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
}

.speed-badge {
  border-radius: var(--radius-full);
  background: var(--bg-card-alt);
  padding: 0.3rem 0.75rem;
  color: var(--text-muted);
}

.return-badge {
  font-size: 0.95rem;
  font-weight: 800;
}

/* Comparison Table */
.table-wrap {
  margin-top: 2.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  min-width: 620px;
  text-align: left;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comparison-table th {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-light);
  font-weight: 800;
}

.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(26, 54, 93, 0.5);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td.game-name {
  font-weight: 800;
  color: var(--text-main);
}

.comparison-table td.game-ret {
  font-weight: 700;
  color: var(--accent-light);
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.faq-card {
  padding: 1.5rem;
}

.faq-question {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: var(--text-main);
}

.faq-answer {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* CTA Banner */
.cta-banner-wrap {
  padding: 2.5rem 0;
}

.cta-banner {
  background: var(--gradient-primary);
  border-radius: var(--radius-2xl);
  padding: 3rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-glow);
}

@media (min-width: 768px) {
  .cta-banner {
    padding: 4rem 2.5rem;
  }
}

.cta-banner-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: #ffffff;
}

@media (min-width: 768px) {
  .cta-banner-title {
    font-size: 2.5rem;
  }
}

.cta-banner-desc {
  margin: 0.75rem auto 0 auto;
  max-width: 580px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
}

/* Sub-page / Layout */
.page-header-banner {
  width: 100%;
  border-bottom: 1px solid var(--border-color);
  background: var(--gradient-surface);
  padding: 3.5rem 0;
}

.page-title {
  font-size: 2.25rem;
  font-weight: 900;
}

@media (min-width: 768px) {
  .page-title {
    font-size: 3rem;
  }
}

.page-intro {
  margin-top: 0.75rem;
  max-width: 700px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.page-main-content {
  padding: 3rem 0;
}

.page-article {
  padding: 1.75rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .page-article {
    padding: 2.5rem;
  }
}

.page-article h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.page-article h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.page-article p {
  margin-bottom: 1rem;
}

.page-article ul, .page-article ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.page-article li {
  margin-bottom: 0.4rem;
}

/* Blog Cards */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.blog-card {
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: var(--text-main);
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Footer */
.site-footer {
  margin-top: 5rem;
  width: 100%;
  border-top: 1px solid var(--border-color);
  background: rgba(11, 21, 39, 0.85);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.footer-text {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links-list a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

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

/* 404 */
.not-found-wrap {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.not-found-code {
  font-size: 6rem;
  font-weight: 900;
  line-height: 1;
}
