/* ========== CSS Reset & Base Styles ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #e74c3c;
  --primary-hover: #c0392b;
  --secondary-color: #3498db;
  --dark-bg: #1a1a2e;
  --darker-bg: #0f0f1e;
  --light-bg: #f8f9fa;
  --card-bg: #ffffff;
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --text-light: #ecf0f1;
  --border-color: #e1e8ed;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}
html, body{
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--light-bg);
  padding-top: 70px;
}

main {
  min-height: calc(100vh - 80px);
}

/* ========== Navigation Bar ========== */
.navbar {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
  color: white;
  padding: 0;
  box-shadow: var(--shadow-md);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 3px solid var(--primary-color);
  transition: transform 0.32s ease;
  will-change: transform;
}

.navbar.is-hidden {
  transform: translateY(-100%);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-brand a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  transition: transform 0.2s;
}

.nav-brand a:hover {
  transform: scale(1.05);
}

.pulse-icon {
  font-size: 1.8rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.brand-text {
  background: linear-gradient(90deg, #fff 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  transition: all 0.3s;
  border-radius: 2px;
  display: block;
  transform-origin: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.search-box {
  flex-shrink: 0;
}

.search-box form {
  display: flex;
  gap: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-box input[type="text"] {
  padding: 0.7rem 1rem;
  border: none;
  background: transparent;
  color: white;
  font-size: 0.95rem;
  width: 240px;
  outline: none;
}

.search-box input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-btn {
  padding: 0.7rem 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  background: var(--primary-hover);
}

.search-btn svg {
  width: 18px;
  height: 18px;
  fill: white;
}

/* ========== Hero Section ========== */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 5rem 2rem;
  text-align: center;
  margin-bottom: 3rem;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
}

.btn-secondary {
  background: white;
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: var(--light-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ========== Section Styles ========== */
.section {
  padding: 3rem 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* ========== Games Grid ========== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.games-grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  border: 1px solid var(--border-color);
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.game-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
}

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

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

.game-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.game-info {
  padding: 1.5rem;
}

.game-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.game-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.game-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.genre-tag {
  background: linear-gradient(135deg, var(--secondary-color), #2980b9);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.publish-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.status-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.status-draft {
  background: rgba(231, 76, 60, 0.15);
  color: var(--primary-color);
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.game-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.view-guide-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s;
}

.view-guide-link:hover {
  color: var(--primary-hover);
  gap: 0.5rem;
}

.game-card-compact .game-image {
  height: 160px;
}

.game-card-compact .game-info {
  padding: 1.25rem;
}

/* ========== Genre Section ========== */
.genre-section {
  background: white;
  padding: 3rem 0;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.genre-chip {
  background: linear-gradient(135deg, var(--light-bg) 0%, #e8eef3 100%);
  color: var(--text-primary);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  transition: all 0.3s;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.genre-chip:hover {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-hover) 100%
  );
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

/* ========== SEO Section ========== */
.seo-section {
  background: white;
  border-top: 1px solid var(--border-color);
}

.seo-content {
  max-width: 900px;
}

.seo-content h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.seo-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ========== Footer ========== */
.footer {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
  color: var(--text-light);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
  border-top: 3px solid var(--primary-color);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: white;
}

.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: white;
  font-weight: 600;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.95rem;
}

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

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 2rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.disclaimer {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* ========== New Games Section ========== */
.new-games-section {
  background: var(--light-bg);
}

/* ========== Search Results ========== */
.search-results-section {
  padding: 3rem 0;
  min-height: 60vh;
}

.search-header {
  text-align: center;
  margin-bottom: 3rem;
}

.search-header h1 {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-size: 2.25rem;
  font-weight: 700;
}

.result-count {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  max-width: 600px;
  margin: 2rem auto;
}

.no-results h1 {
  color: var(--text-primary);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.no-results p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ========== Article Pages ========== */
.article-full {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  max-width: 900px;
  margin: 2rem auto;
}

.article-full h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.article-content {
  margin: 2rem 0;
  line-height: 1.8;
  font-size: 1.05rem;
  color: #333;
}

.article-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.75rem;
}

.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-size: 1.35rem;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
  margin-left: 2rem;
  margin-bottom: 1.25rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.article-content code {
  background-color: #f4f4f4;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: "Monaco", "Courier New", monospace;
  font-size: 0.9em;
  color: var(--primary-color);
}

.article-content pre {
  background-color: var(--dark-bg);
  color: var(--text-light);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.article-content pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
}

.article-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* ========== Tables ========== */
.article-content table {
  display: table;
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
  border-radius: 8px;
  overflow-x:auto;
  white-space: nowrap;
}
.article-content table thead,
.article-content table tbody{
  display: table-header-group;
  width: 100%;
}

.article-content table tbody {
  display: table-row-group;
}

.article-content table th,
.article-content table thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  border: 1px solid #e1e8ed;
  vertical-align: top;
}

.article-content table th p,
.article-content table thead th p {
  margin: 0;
  padding: 0;
  display: inline;
}

.article-content table td {
  padding: 0.75rem 1rem;
  border: 1px solid #e1e8ed;
  vertical-align: top;
}

.article-content table thead tr,
.article-content table tbody tr {
  transition: background-color 0.2s ease;
}

.article-content table thead tr:nth-child(even),
.article-content table tbody tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

.article-content table tbody tr:last-child td {
  border-bottom: none;
}

/* ========== Table of Contents ========== */
.toc {
  background: rgba(241, 245, 250, 0.7);
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 2rem 1.5rem;
  float: right;
  width: 280px;
}

.toc__title {
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #475569;
  margin: 0 0 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #bfdbfe;
}

.toc__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toc__link {
  font-size: 0.9rem;
  color: #2563eb;
  font-weight: 500;
  transition: color 140ms ease, text-decoration 140ms ease;
  padding: 0.25rem 0;
  text-decoration: none;
}

.toc__link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .toc {
    float: none;
    width: 100%;
    margin: 1.5rem 0;
  }
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--primary-hover);
}

/* ========== Related Articles ========== */
.related-articles {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 2px solid var(--border-color);
}

.related-articles__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.related-article-card {
  background: var(--light-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.related-article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.related-article-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #f0f0f0;
}

.related-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}

.related-article-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.related-article-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.related-article-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.related-article-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.related-article-title a:hover {
  color: var(--primary-color);
}

.related-article-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: auto;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-article-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.related-article-link:hover {
  color: var(--primary-hover);
}

/* ========== Hub Pages ========== */
.hub-page {
  padding-top: 2rem;
}

.hub-header {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.hub-header--stacked {
  grid-template-columns: 1fr;
}

.hub-header__text p {
  color: var(--text-secondary);
}

.hub-header__meta {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.hub-header__image img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  max-height: 220px;
}

.hub-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 1.5rem;
}

.hub-layout--single {
  grid-template-columns: 1fr;
}

.hub-sidebar {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  height: fit-content;
}

.hub-sidebar h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.hub-sidebar ul {
  list-style: none;
  margin-bottom: 1rem;
}

.hub-sidebar li {
  margin-bottom: 0.45rem;
}

.hub-filter-list a {
  color: var(--text-primary);
  text-decoration: none;
}

.hub-filter-list a:hover {
  color: var(--primary-color);
}

.hub-search {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.hub-search input {
  flex: 1;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
}

.article-hub-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.article-hub-links a {
  text-decoration: none;
  color: var(--text-primary);
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.article-hub-links a:hover {
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .related-articles__grid {
    grid-template-columns: 1fr;
  }

  .hub-header,
  .hub-layout {
    grid-template-columns: 1fr;
  }

  .hub-search {
    flex-direction: column;
  }
}

/* ========== Error Pages ========== */
.error-page {
  background: var(--card-bg);
  padding: 4rem 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  max-width: 600px;
  margin: 4rem auto;
}

.error-page h1 {
  color: var(--primary-color);
  font-size: 4rem;
  margin-bottom: 1rem;
}

.error-page p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ========== Pagination ========== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  padding: 2rem 0;
}

.pagination-link {
  padding: 0.75rem 1.5rem;
  background: var(--card-bg);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid var(--border-color);
}

.pagination-link:hover:not(.disabled) {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.pagination-link.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-info {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ========== Responsive Design ========== */
@media (max-width: 968px) {
  .nav-container {
    padding: 0 1.5rem;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }
  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 70px);
    background: var(--dark-bg);
    flex-direction: column;
    align-items: stretch;
    padding: 2rem;
    transition: right 0.3s;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .nav-link {
    padding: 1rem;
    text-align: left;
  }

  .search-box {
    margin-top: 1rem;
  }

  .search-box form {
    width: 100%;
  }

  .search-box input[type="text"] {
    width: 100%;
  }

  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 3rem 1.5rem;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .games-grid,
  .games-grid-compact {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .genre-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .genre-chip {
    padding: 1rem;
    font-size: 0.95rem;
  }

  .section {
    padding: 2rem 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .article-full {
    padding: 1.5rem;
  }

  .article-full h1 {
    font-size: 1.85rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .container {
    padding: 0 1rem;
  }
}

/* ========== Utility Classes ========== */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}
