/* =====================
   GLOBAL STYLES
   ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Jersey 10", serif;
  background: #0056ff;
  color: #fff;
  min-height: 100vh;
  padding: 0px;
  overflow-x: hidden;
}

/* =====================
   NAVIGATION FONT OVERRIDE
   Keep navigation in Kanit across all pages
   ===================== */
header,
header *,
.header-top,
.header-top *,
.logo,
.burger,
.burger div,
.nav-links,
.nav-links *,
.nav-links li,
.nav-links li a {
  font-family: "Kanit", sans-serif !important;
}

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

/* =====================
   HEADER SECTION
   ===================== */
.header-top {
  margin-bottom: 40px;
}

.header {
  margin-bottom: 0px;
}

.header-image-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.6);
}

.header-image {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
}

/* Styled placeholder if no image is used */
.header-placeholder {
  background: #0056ff;
  border: 3px solid #ffeb3b;
  border-radius: 16px;
  padding: 60px 20px;
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.header-placeholder h1 {
  font-size: 72px;
  color: #ffeb3b;
  text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.9);
  margin-bottom: 20px;
  letter-spacing: 3px;
}

.header-placeholder p {
  font-size: 28px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* =====================
   GAMES SCROLL SECTION
   ===================== */
.games-scroll-container {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.games-wrapper {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 10px 40px;
  scrollbar-width: thin;
  scrollbar-color: #ffeb3b #2a2a2a;
}

.games-wrapper::-webkit-scrollbar {
  height: 12px;
}

.games-wrapper::-webkit-scrollbar-track {
  background: #2a2a2a;
  border-radius: 10px;
}

.games-wrapper::-webkit-scrollbar-thumb {
  background: #ffeb3b;
  border-radius: 10px;
  border: 2px solid #2a2a2a;
}

.games-wrapper::-webkit-scrollbar-thumb:hover {
  background: #ffd700;
}

/* =====================
   GAME ITEM (GIF + Panel)
   ===================== */
.game-item {
  min-width: 320px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* =====================
   GAME GIF (Transparent, floating)
   ===================== */
.game-gif {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.6));
}

.game-gif:hover {
  transform: translateY(-8px) scale(1.05);
  filter: drop-shadow(0 10px 28px rgba(255, 255, 255, 0.4));
}

.game-gif:active {
  transform: translateY(-4px) scale(1.02);
}

/* =====================
   GAME PANEL (Descriptor)
   ===================== */
.game-panel {
  background: #0056ff;
  border: 3px solid #003ebb;
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.game-item:hover .game-panel {
  border-color: #ffeb3b;
  box-shadow: 0 8px 24px rgba(255, 235, 59, 0.2);
}

.game-title {
  font-size: 42px;
  color: #ffeb3b;
  margin-bottom: 12px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  transition: color 0.3s ease;
}

.game-item:hover .game-title {
  color: #ffd700;
}

.game-description {
  font-size: 28px;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 16px;
  min-height: 80px;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.game-tag {
  background: rgba(27, 0, 75, 0.2);
  color: #ffeb3b;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 18px;
  border: 1px solid rgba(255, 235, 59, 0.3);
  transition: all 0.3s ease;
}

.game-item:hover .game-tag {
  background: rgba(255, 235, 59, 0.3);
  border-color: rgba(255, 235, 59, 0.5);
}

.play-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ffeb3b 0%, #ffd700 100%);
  color: #000;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 235, 59, 0.4);
  width: 100%;
  justify-content: center;
}

.play-button:hover {
  background: linear-gradient(135deg, #ffd700 0%, #ffeb3b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 235, 59, 0.6);
}

.play-button:active {
  transform: translateY(0);
}

.play-icon-btn {
  font-size: 24px;
}

/* =====================
   NAVIGATION BUTTONS
   ===================== */
.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.nav-buttons a{
  text-decoration: none;
}

.nav-button {
  background: #0056ff;
  color: #ffeb3b;
  border: 2px solid #ffeb3b;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 24px;
  font-family: "Jersey 10", serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.nav-button:hover {
  background: #003ebb;
  border-color: #ffd700;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 235, 59, 0.4);
}

.nav-button:active {
  transform: translateY(0);
}

/* =====================
   MOBILE RESPONSIVE
   ===================== */

/* Tablets and smaller desktops */
@media (max-width: 1024px) {
  .container {
    padding: 0 10px;
  }

  .games-wrapper {
    gap: 30px;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .header-placeholder h1 {
    font-size: 48px;
  }

  .header-placeholder p {
    font-size: 20px;
  }

  .header-placeholder {
    padding: 40px 20px;
    min-height: 150px;
  }

  .games-wrapper {
    gap: 20px;
    padding: 10px 5px 30px;
  }

  .game-item {
    min-width: 280px;
    max-width: 280px;
  }

  .game-title {
    font-size: 28px;
  }

  .game-description {
    font-size: 16px;
    min-height: 70px;
  }

  .game-tag {
    font-size: 12px;
    padding: 4px 10px;
  }

  .play-button {
    font-size: 18px;
    padding: 10px 20px;
  }

  .scroll-hint {
    font-size: 16px;
  }

  .nav-button {
    font-size: 20px;
    padding: 10px 24px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .header-placeholder h1 {
    font-size: 36px;
  }

  .header-placeholder p {
    font-size: 18px;
  }

  .game-item {
    min-width: 260px;
    max-width: 260px;
  }

  .game-panel {
    padding: 20px;
  }

  .game-title {
    font-size: 24px;
  }

  .game-description {
    font-size: 14px;
    min-height: 60px;
  }

  .nav-buttons {
    gap: 12px;
  }

  .nav-button {
    font-size: 18px;
    padding: 8px 20px;
  }
}

/* Landscape mobile orientation */
@media (max-width: 896px) and (orientation: landscape) {
  .header-placeholder {
    padding: 30px 20px;
    min-height: 120px;
  }

  .header-placeholder h1 {
    font-size: 40px;
  }

  .header-placeholder p {
    font-size: 18px;
  }
}