/* --- Reset & base --- 
  color theme:#f0a500 Gold 
  */
  * {
    box-sizing: border-box;
  }
  body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #12121f;
    color: #fff;
    overflow-x:hidden;
    font-size: 1rem;
  }
  
  a:hover {
      color: #fae9ac;
  }

  /* --- Navbar --- */
  header {
    background: #1e1e2f;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow:0 10px 30px 5px rgba(240, 165, 0, 0.2); /* bayangan emas halus ke bawah */
  }
  .logo {
    font-weight: bold;
    font-size: 1.2rem;
    color:#ffffff;
  }
  
  /* Desktop menu */
  nav.desktop-menu {
    display: flex;
  }
  nav.desktop-menu ul.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    align-items: center;
  }
  nav.desktop-menu ul.menu > li {
    position: relative;
  }
  nav.desktop-menu ul.menu > li > a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0;
    display: inline-block;
  }
  nav.desktop-menu ul.menu > li > a:hover {
    color:#f0a500;
  }
  
  /* Dropdown desktop on hover */
  nav.desktop-menu ul.menu > li.has-dropdown:hover > ul.dropdown {
    display: block;
  }
  nav.desktop-menu ul.menu ul.dropdown {
    display: none;
    position: absolute;
    background: #1e1e2f;
    top: 100%;
    left: 0;
    min-width: 220px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 100;
    height:400px;
    overflow-y:auto;
    list-style-type:none;
  }
  nav.desktop-menu ul.menu ul.dropdown li {
    padding: 0.5rem 1rem;
    margin-left: -30px;
  }
  nav.desktop-menu ul.menu ul.dropdown li:hover {
    background: #33334d;
  }
  nav.desktop-menu ul.menu ul.dropdown li a {
    color: white;
    text-decoration: none;
    white-space: nowrap;
  }
  nav.desktop-menu ul.menu ul.dropdown li a:hover {
    color: #f0a500;
  }

  /* Hamburger for mobile */
  .hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    background:transparent;
    border:0;
  }
  .hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
  }

  /* Mobile sidebar menu */
  #mobile-menu {
    position: fixed;
    top: 0; left: -250px;
    width: 250px;
    height: 100vh;
    background: #1e1e2f;
    padding-top: 3rem;
    box-shadow: 2px 0 8px rgba(0,0,0,0.6);
    transition: left 0.3s ease;
    overflow-y: auto;
    z-index: 200;
  }
  #mobile-menu.open {
    left: 0;
  }
  #mobile-menu ul.menu {
    list-style: none;
    margin: 0; padding: 0;
  }
  #mobile-menu ul.menu li {
    border-bottom: 1px solid #33334d;
  }
  #mobile-menu ul.menu li ul.dropdown {
     list-style-type:none;
  }
  #mobile-menu ul.menu li.has-dropdown ul.dropdown {
     white-space: nowrap;
  }
  #mobile-menu ul.menu li a,
  #mobile-menu ul.menu li button.dropdown-toggle {
    color: white;
    display: block;
    width: 100%;
    text-align: left;
    padding: 1rem;
    font-size: 1rem;
    border: none;
    background: none;
    cursor: pointer;
    text-decoration: none;
  }
  #mobile-menu ul.menu li a:hover,
  #mobile-menu ul.menu li button.dropdown-toggle:hover {
    background: #33334d;
  }

  /* Accordion dropdown in mobile */
  #mobile-menu ul.menu li.has-dropdown .dropdown {
    display: none;
    flex-direction: column;
    background: #29294b;
  }
  #mobile-menu ul.menu li.has-dropdown.open .dropdown {
    display: flex;
  }

  /* Arrow style */
  #mobile-menu ul.menu li.has-dropdown button.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  #mobile-menu ul.menu li.has-dropdown button.dropdown-toggle .arrow {
    transition: transform 0.3s ease;
  }
  #mobile-menu ul.menu li.has-dropdown.open button.dropdown-toggle .arrow {
    transform: rotate(180deg);
  }

  /* Responsive */
  @media (max-width: 768px) {
    nav.desktop-menu {
      display: none;
    }
    .hamburger {
      display: flex;
    }
  }
  @media (min-width: 769px) {
    #mobile-menu {
      display: none;
    }
  }
  
  /* main */
  
  main {
  padding: 2rem;
}

.featured h2 {
  margin-bottom: 1rem;
}


.game-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background-color: #593e02;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
  color:#f0a500;
  border-bottom:3px solid #f0a500;
}

.game-card img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.game-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color:#f0a500;
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #1e1e2f;
  color: white;
  margin-top: 2rem;
}

/*==============================*/

.game-player {
  margin-top:0;
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: #000000;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-bottom:3px solid #f0a500;
}

.game-player h2 {
  margin-bottom: 1rem;
  text-align: center;
}

.game-frame {
  width: 100%;
  position: relative;
  /*padding-top: 56.25%; /* 16:9 aspect ratio */
  padding-top: 48.25%;
  overflow: hidden;
  border-radius: 8px;
  background-image: #000 url('slide-4.jpg');
  background-size: cover;       /* Gambar menyesuaikan lebar/tinggi elemen tanpa merusak proporsinya */
  background-position: center;  /* Pusat gambar tetap terlihat */
  background-repeat: no-repeat; /* Jangan ulang gambar */
}

@media (max-width: 768px) {
  .game-frame {
    padding-top: 56.25%; /* override khusus mobile */
  }
}

.game-frame iframe,
.game-frame img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

/*===== horisontal feature game card =========*/

.game-list-horizontal {
  margin-top: 2rem;
}

.game-row {
  display: grid;
  grid-template-columns: 1fr; /* default: 1 kolom (mobile) */
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .game-row {
    grid-template-columns: 1fr 1fr; /* 2 kolom di desktop */
  }
}

.game-card-horizontal {
  display: flex;
  gap: 1rem;
  background: #fae9ac;
  padding: 1rem;
  border-radius: 8px;
  align-items: center;
  border-bottom:3px solid #f0a500;
}

.game-card-horizontal img {
  width: 100px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
}

.game-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color:#f0a500;
}

.game-info p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #555;
}

.play-button {
  display: inline-block;
  background: #f0a500;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.play-button:hover {
  background: #d18b00;
}

/* Batasi maksimal 4 kolom card di layar besar 
@media (min-width: 1024px) {
  .game-list {
    grid-template-columns: repeat(4, 1fr);
  }
}*/

/*====== slide ============*/

.swiper {
      position: relative;
      width: 90vw;
      max-width: 100vw;
      height: 40vh;
      max-height: 400px;
      padding-bottom: 70px; /* space for pagination */
      overflow: visible;
      box-sizing: border-box;

      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .swiper-wrapper {
      flex: 1;
      display: flex;
      align-items: center;
      width: 100%;
    }

    .swiper-slide {
      width: 40vw;
      max-width: 250px;
      height: 100%;
      max-height: 350px;
      background-size: cover;
      background-position: center;
      border-radius: 15px;
      transition: transform 0.3s ease;
      transform-origin: center center;
      transform: scale(1);
      margin: auto 0;
      cursor: pointer;
      box-sizing: border-box;border-bottom: 3px solid #f0a500;
    }

    .swiper-slide.zoom-center {
      transform: scale(1.3);
      z-index: 2;
    }

    /* Navigation arrows */
    .swiper-button-prev,
    .swiper-button-next {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 40px;
      height: 40px;
      cursor: pointer;
      user-select: none;
      z-index: 10;
      color: white;
    }

    .swiper-button-prev {
      left: 10px;
    }

    .swiper-button-next {
      right: 10px;
    }

    /* Pagination dots */
    .swiper-pagination {
      margin-top: 10px;
      text-align: center;
      width: 100%;
    }

    .swiper-pagination-bullet {
      background: white;
      opacity: 0.5;
      width: 12px;
      height: 12px;
      display: inline-block;
      border-radius: 50%;
      margin: 0 6px;
      cursor: pointer;
      transition: opacity 0.3s;
    }

    .swiper-pagination-bullet-active {
      opacity: 1;
      background: #007aff;
    }

    /* Responsive */
    @media (max-width: 480px) {
      .swiper {
        height: 50vh;
        padding-bottom: 70px;
      }
      .swiper-slide {
        width: 70vw;
        height: 50vh;
        max-height: none;
      }
      .swiper-button-prev,
      .swiper-button-next {
        width: 30px;
        height: 30px;
      }
    }
    
/*+====== search header ======= */

#search input {
  background-color: #27292a;
  height: 46px;
  border-radius: 0;
  border: none;
  color: #e8cfd7;
  font-size: 14px;
  padding: 0px 15px 0px 45px;
}

#search input i {
  position: absolute;
  color: #e8cfd7;
  left: 20px;
  top: 16px;
  width: 18px;
  height: 18px;
  font-size: 16px;
}

/* Responsive */
  @media (max-width: 768px) {
    #search input, #search i {
      display: none;
    }
  }