/**
 * Theme Name: Game Nova (Pink Arcade Edition)
 * Description: Ultra-clean modern Light Edition matching demo.html: Pink gradient hero with wave SVG divider, category row, most played slider carousel, newly added games grid with pink PLAY buttons, 3-column category list cards, and stylish dark footer.
 * Author: PlayArcade Pro
 * Version: 2.5.0
 */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --gamenova-brand-text-size: 22px;
  --gamenova-logo-icon-size: 130px;
  --pink: #f56ca5;
  --pink-dark: #ed5d9a;
  --pink-light: #fff0f7;
  --ink: #202020;
  --muted: #777777;
  --dark: #111214;
  --container: 1200px;
  --border-radius: 15px;
  --font-heading: 'Baloo 2', cursive, sans-serif;
  --font-body: 'Poppins', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #ffffff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

/* Site Header */
.site-header {
  background: var(--pink);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(245, 108, 165, 0.25);
}

.header-inner {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 28px;
  color: #ffffff;
}

.brand img, .brand .header-icon-svg {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: inline-block;
}

.header-icon {
  transform-origin: 50% 50%;
  animation: headerIconFloat 14s ease-in-out infinite;
}

@keyframes headerIconFloat {
  0%   { transform: translateY(0) rotate(0deg); }
  4.72%{ transform: translateY(-8px) rotate(0deg); }
  9.43%{ transform: translateY(0) rotate(0deg); }
  14.15%{ transform: translateY(-8px) rotate(0deg); }
  18.87%{ transform: translateY(0) rotate(0deg); }
  23.58%{ transform: translateY(-8px) rotate(0deg); }
  28.30%{ transform: translateY(0) rotate(0deg); animation-timing-function: linear; }
  33.54%{ transform: translateY(0) rotate(360deg); animation-timing-function: ease-in-out; }
  38.26%{ transform: translateY(-8px) rotate(360deg); }
  42.97%{ transform: translateY(0) rotate(360deg); }
  47.69%{ transform: translateY(-8px) rotate(360deg); }
  52.40%{ transform: translateY(0) rotate(360deg); }
  57.12%{ transform: translateY(-8px) rotate(360deg); }
  61.83%{ transform: translateY(0) rotate(360deg); animation-timing-function: linear; }
  67.07%{ transform: translateY(0) rotate(720deg); animation-timing-function: ease-in-out; }
  71.79%{ transform: translateY(-8px) rotate(720deg); }
  76.50%{ transform: translateY(0) rotate(720deg); }
  81.22%{ transform: translateY(-8px) rotate(720deg); }
  85.93%{ transform: translateY(0) rotate(720deg); }
  90.65%{ transform: translateY(-8px) rotate(720deg); }
  95.36%{ transform: translateY(0) rotate(720deg); }
  100% { transform: translateY(0) rotate(720deg); }
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--gamenova-brand-text-size, 22px);
  color: #ffffff;
  letter-spacing: -0.5px;
}

.brand-sub {
  font-size: calc(var(--gamenova-brand-text-size, 22px) * .55);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.site-nav a:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.site-nav .current-menu-item a,
.site-nav a.active {
  background: rgba(255, 255, 255, 0.22);
  padding: 6px 14px;
  border-radius: 20px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
  padding: 4px;
}

.menu-close {
  display: none;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  color: #ffffff;
  text-align: center;
  padding: 55px 0 250px;
  position: relative;
  overflow: hidden;
}

.hero-wave {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 150px;
  display: block;
  z-index: 2;
  pointer-events: none;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 48px;
  line-height: 1.1;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.hero p {
  font-size: 20px;
  margin: 0 0 45px;
  font-weight: 400;
  opacity: 0.95;
}

.search-box {
  width: min(540px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.search-box input {
  width: 100%;
  border: 0;
  border-radius: 35px;
  padding: 18px 60px 18px 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  outline: none;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--ink);
  background: #ffffff;
}

.search-box button {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--pink);
  font-size: 24px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-box button:hover {
  background: var(--pink-dark);
  transform: scale(1.05);
}

/* Sections & Titles */
.section {
  padding: 45px 0;
}

.section-title {
  font-family: var(--font-heading);
  text-align: center;
  color: var(--pink);
  font-size: 30px;
  margin: 0 0 26px;
  font-weight: 800;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.section-title i, .section-title img, .section-title .cat-icon-inline {
  font-size: 24px;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Browse Categories */
.category-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
}

.category-card {
  background: #ffffff;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  padding: 16px 10px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #f1f5f9;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(245, 108, 165, 0.18);
  border-color: var(--pink-light);
  color: var(--pink);
}

.category-icon {
  font-size: 28px;
  color: var(--pink);
  line-height: 1;
}

.cat-icon-inline {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* Most Played Games Slider */
.games-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.games-slider-viewport {
  overflow-x: hidden;
  overflow-y: visible;
  flex: 1;
  min-width: 0;
  padding: 14px 4px;
  margin: -14px -4px;
  scroll-behavior: smooth;
}

.games-slider-track.game-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  transition: transform 0.4s ease;
}

.games-slider-track .game-card {
  flex: 0 0 calc((100% - (5 * 16px)) / 6);
  min-width: 170px;
}

.slider-arrow {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.slider-arrow:hover {
  background: var(--pink);
  color: #ffffff;
  transform: scale(1.08);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.slider-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink);
  opacity: 0.35;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.slider-dots .dot.active {
  opacity: 1;
  background: var(--pink-dark);
  transform: scale(1.25);
}

/* Newly Added Games Grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.game-card {
  background: #ffffff;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid #f8fafc;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.game-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f1f5f9;
}

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

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

.game-card-body {
  padding: 12px 14px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-card-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
  line-height: 1.3;
}

.game-card-meta {
  color: var(--pink);
  font-size: 12px;
  margin-top: 3px;
  font-weight: 600;
  text-transform: capitalize;
}

.card-center {
  text-align: center;
  margin-top: auto;
  padding-top: 10px;
}

.play-button {
  display: inline-block;
  background: var(--pink);
  color: #ffffff !important;
  border-radius: 20px;
  padding: 6px 28px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 3px 10px rgba(245, 108, 165, 0.35);
}

.play-button:hover {
  background: var(--pink-dark);
  transform: scale(1.04);
  box-shadow: 0 6px 14px rgba(245, 108, 165, 0.5);
}

.load-more {
  text-align: center;
  margin-top: 35px;
}

.btn {
  display: inline-block;
  background: var(--pink);
  color: #ffffff !important;
  border: 0;
  border-radius: 24px;
  padding: 12px 32px;
  font-weight: 800;
  font-size: 15px;
  font-family: var(--font-heading);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 108, 165, 0.35);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background: var(--pink-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 108, 165, 0.5);
}

/* 3-Column Category Showcase */
.columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.columns .section-title {
  text-align: left;
  justify-content: flex-start;
  font-size: 24px;
  margin-bottom: 18px;
}

.column-list {
  display: grid;
  gap: 14px;
}

.list-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  padding: 10px;
  border: 1px solid #f1f5f9;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.list-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--pink-light);
}

.list-card img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 auto;
}

.list-card-full {
  padding-right: 14px;
}

.list-card-full .list-card-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
  align-self: center;
}

.list-card-full .list-card-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.list-card-date {
  font-size: 12px;
  color: var(--muted);
}

.list-card-play {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pink);
  display: grid;
  place-items: center;
  color: #ffffff;
  margin-left: auto;
  box-shadow: 0 3px 8px rgba(245, 108, 165, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.list-card:hover .list-card-play {
  background: var(--pink-dark);
  transform: scale(1.1);
}

.list-card-play svg {
  width: 20px;
  height: 20px;
}

/* Editorial & AdSense Content Section */
.editorial-section {
  padding: 40px 0 20px;
}

.editorial-box {
  background: #ffffff;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  padding: 36px 32px;
  color: #475569;
  line-height: 1.7;
}

.editorial-box h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--pink);
  margin-top: 0;
  margin-bottom: 12px;
}

.editorial-box p {
  margin: 0 0 16px;
  font-size: 14px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.editorial-card {
  background: #fdfdfd;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.editorial-card h4 {
  font-family: var(--font-heading);
  color: var(--pink-dark);
  margin: 0 0 8px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.editorial-card p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
}

/* Footer Section */
.site-footer {
  background: linear-gradient(rgba(15, 16, 18, 0.92), rgba(15, 16, 18, 0.96)), #111214;
  color: #ffffff;
  margin-top: 60px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  padding: 58px 0;
}

.footer-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: #ffffff;
  text-decoration: none;
}

.footer-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(1.15);
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

.footer-brand-sub {
  font-size: 12px;
  font-weight: 500;
  color: #d1d5db;
  text-transform: uppercase;
}

.footer-brand p {
  max-width: 380px;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 20px;
  margin: 0 0 18px;
  color: #ffffff;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 14px;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--pink);
  transform: translateX(3px);
}

.footer-social-title {
  margin-top: 24px;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: var(--dark);
  font-size: 15px;
  transition: all 0.2s ease;
}

.socials a:hover {
  background: var(--pink);
  color: #ffffff;
  transform: translateY(-2px);
}

.theme-copyright-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
}

.theme-copyright-inner {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.theme-copyright-inner p {
  margin: 0;
  padding: 16px 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
}

/* Scoped Inner Pages Styling (Game, Category, Pages, Contact) */
.site-main-page {
  padding: 40px 0 60px;
  min-height: calc(100vh - 400px);
}

.page-hero-compact {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  color: #ffffff;
  padding: 40px 0 48px;
  text-align: center;
  margin-bottom: 35px;
}

.page-hero-compact h1 {
  font-family: var(--font-heading);
  font-size: 36px;
  margin: 0 0 8px;
  font-weight: 800;
}

.page-hero-compact p {
  margin: 0;
  font-size: 15px;
  opacity: 0.95;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.breadcrumbs a {
  color: var(--pink);
  font-weight: 600;
}

.breadcrumbs .bc-sep {
  opacity: 0.5;
}

/* Static Article Content */
.article-container {
  background: #ffffff;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  padding: 40px;
  line-height: 1.8;
  color: #334155;
}

.article-container h1, .article-container h2, .article-container h3 {
  font-family: var(--font-heading);
  color: var(--ink);
  margin-top: 24px;
  margin-bottom: 12px;
}

.article-container a {
  color: var(--pink);
  font-weight: 600;
  text-decoration: underline;
}

/* Contact Form Styling */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form-box {
  background: #ffffff;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(245, 108, 165, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .category-row {
    grid-template-columns: repeat(4, 1fr);
  }
  .game-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .games-slider-track .game-card {
    flex: 0 0 calc((100% - (3 * 16px)) / 4);
  }
  .columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .editorial-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .site-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 60px 24px 30px;
    overflow-y: auto;
  }
  .site-nav.open {
    right: 0;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .site-nav a {
    color: var(--ink);
    font-size: 16px;
  }
  .site-nav .current-menu-item a,
  .site-nav a.active {
    background: var(--pink-light);
    color: var(--pink);
  }
  .menu-close {
    display: block;
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: 0;
    font-size: 32px;
    color: var(--ink);
    cursor: pointer;
    line-height: 1;
  }
  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  .hero {
    padding: 40px 0 200px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero p {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .category-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .games-slider-track .game-card {
    flex: 0 0 calc((100% - (2 * 12px)) / 3);
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 0;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header-inner {
    height: 72px;
  }
  .brand img, .brand .header-icon-svg {
    width: 38px;
    height: 38px;
  }
  .brand-title {
    font-size: 19px;
  }
  .hero {
    padding: 30px 0 160px;
  }
  .hero h1 {
    font-size: 25px;
  }
  .hero p {
    font-size: 14px;
  }
  .category-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .games-slider-track .game-card {
    flex: 0 0 calc((100% - 10px) / 2);
  }
  .play-button {
    padding: 5px 20px;
    font-size: 12px;
  }
}
