/* ==========================
   GLOBAL & LAYOUT
========================== */
body {
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center center !important;
  background-size: cover !important;
  min-height: 100vh;
  height: 100%;
}

.container,
.container-header {
  max-width: 1200px;
  margin: 0 auto;
  border-left: 1px solid gold;
  border-right: 1px solid gold;
}

/* ==========================
   HEADER SECTION
========================== */
.header-IPOTOTO,
.header-IPOTOTO {
  background: linear-gradient(180deg, #137900, transparent);
  border-bottom: 1px solid #2a2a3a;
  padding: 15px 0 10px;
  text-align: center;
  color: white;
  box-shadow: 0px 0px 34px yellow;
}

.logo-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: auto 10px 10px;
}

.logo-box img {
    height: 68px;
    width: 200px;
}


.logo-box h1 {
  font-size: 22px;
  font-weight: 700;
  color: #f4d160;
  margin: 0;
}

.running-text {
  border-radius: 4px;
  padding: 8px;
  color: white;
  font-size: 14px;
  border-top: 1px solid gold;
  border-bottom: 1px solid gold;
  background: linear-gradient(180deg, #00800a, #003c06);
  margin-bottom: 15px;
  box-shadow: 0px 0px 32px yellow;
}

footer {
  background: black;
  padding: 10px;
  text-align: center;
  color: gold;
  text-transform: uppercase;
}

/* ==========================
   BANNER SECTION
========================== */
.banner-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.banner-box img {
  width: 280px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.banner-box img:hover {
  transform: scale(1.03);
}

/* Swiper Banner */
.banner-slider {
  width: 95%;
  margin: 0 auto 25px;
  position: relative;
}

.banner-slider img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s ease;
  clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
}

.banner-slider img:hover {
  transform: scale(1.05);
}

/* ==========================
   NAV BUTTONS (LOGIN / DAFTAR / ETC)
========================== */
.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px;
  flex-wrap: nowrap;
}

.nav-buttons a {
  flex: 1;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 10px;
  color: white;
  background: #background: linear-gradient(3deg, black, green);
  border: 2px solid #fff600;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  animation: borderBlink 2s infinite ease-in-out;
}

.nav-buttons a:hover {
  background: #f4d160;
  color: #0e0e16;
  transform: translateY(-2px);
}

/* ==========================
   PROVIDER BAR
========================== */
.provider-bar {
  border-top: 1px solid gold;
  border-bottom: 1px solid gold;
  padding: 10px 0;
  background: transparent;
}

.scroll-container {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 7px 20px;
}

.scroll-container::-webkit-scrollbar {
  height: 6px;
}

.scroll-container::-webkit-scrollbar-thumb {
  background: #2a2a3a;
  border-radius: 4px;
}

.provider-item {
  border: 3px dashed #013906;
  border-radius: 6px;
  min-width: 110px;
  text-align: center;
  padding: 3px;
  flex-shrink: 0;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 1px gold;
}

.provider-item:hover {
  transform: translateY(-3px);
  border-color: #f4d160;
}

.provider-item.active {
  border-color: #f4d160;
  box-shadow: 0 0 10px rgba(244, 209, 96, 0.3);
}

.provider-item img {
  height: 35px;
  display: block;
  margin: 0 auto 5px;
}

.provider-item span {
  display: block;
  font-size: 13px;
  color: #ddd;
  font-weight: 600;
}

/* ==========================
   GAME SECTION
========================== */
.game-section {
  background: rgb(0 130 7 / 75%);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 0px 39px yellow;
  color: #fff;
}

/* Search Bar */
.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

#searchGame {
  background: #013c05;
  border: 2px solid #f2ff00;
  border-radius: 30px;
  color: #fff;
  font-size: 14px;
  padding: 10px 15px 10px 40px;
  width: 250px;
  transition: 0.3s;
}

#searchGame:focus {
  border-color: #00c6ff;
  box-shadow: 0 0 10px rgba(0, 198, 255, 0.3);
}

/* Game Grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px;
}

/* Game Card */
.game-card {
  background: #003c06e0;
  border-radius: 8px;
  padding: 12px;
  color: #f0f0f0;
  position: relative;
  transition: 0.3s;
  box-shadow: 1px 1px gold;
  overflow: hidden;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 15px rgba(244, 209, 96, 0.4);
}

/* Overlay gelap saat hover */
.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  border-radius: 8px;
  z-index: 2;
}

.game-card:hover::after {
  background: rgba(0, 0, 0, 0.6);
}

/* Gambar */
.game-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.game-card:hover img {
  transform: scale(1.05);
}

/* Tombol Play */
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: gold;
  color: black;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  opacity: 0;
  transition: all 0.3s ease;
  width: 75%;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(0, 114, 255, 0.4);
  z-index: 4;
}

.game-card:hover .play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Badge */
.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(45deg, #ff4d4d, #ff9900);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
  color: #fff;
}

/* Game Text */
.game-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #dff9fb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card .time {
  font-size: 13px;
  margin-bottom: 10px;
  color: #a4b0be;
}

/* Stats */
.game-stats {
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.game-stats div {
  display: flex;
  justify-content: space-between;
  color: #f0f0f0;
}

.progress {
  height: 10px;
  border-radius: 5px;
  background: #2f3640;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.progress .fill {
  height: 100%;
  background: #f4d160;
  transition: width 1s ease;
}

.nav-buttons a {
  flex: 1;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 10px;
  color: white;
  background: linear-gradient(3deg, black, green);
  border: 2px solid #fdff00;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  animation: borderBlink 2s infinite ease-in-out;
}

/* ? Efek border berdenyut lembut */
@keyframes borderBlink {
  0% {
    border-color: #000000;
    box-shadow: 0 0 4px #f4d16033 inset;
  }

  50% {
    border-color: #eeff00;
    box-shadow: 0 0 8px #ffe97f66 inset;
  }

  100% {
    border-color: #092400;
    box-shadow: 0 0 4px #f4d16033 inset;
  }
}

/* Hover tanpa ganggu animasi */
.nav-buttons a:hover {
  transform: scale(1.05);
  background: #025c08;
  color: #fff;
}



/* Hover lebih terang */
.nav-buttons a:hover {
  background: linear-gradient(90deg, #f4d160, #ffe97f);
  color: #000;
  transform: scale(1.05);
  box-shadow: 0 0 20px #ffe97f88;
}


/* ==========================
   RESPONSIVE DESIGN
========================== */
@media (max-width: 768px) {
  .logo-box {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .logo-box img {
    height: auto;
  }

  .banner-box img {
    width: 95%;
  }

  .nav-buttons {
    flex-wrap: wrap;
  }

  .nav-buttons a {
    width: 48%;
  }

  .provider-item {
    min-width: 80px;
    padding: 4px;
  }

  .provider-item img {
    height: 28px;
  }

  .game-section {
    padding: 15px;
  }

  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .game-card h4 {
    font-size: 13px;
  }

  .play-btn {
    font-size: 12px;
    padding: 8px 15px;
  }
}

@media (max-width: 480px) {
  .nav-buttons a {
    width: 100%;
  }

  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .game-card {
    padding: 8px;
  }

  .badge {
    font-size: 10px;
    padding: 2px 6px;
  }
}

/* === PROGRESS BAR UTAMA === */
.progress {
  height: 10px;
  border-radius: 6px;
  background: #2f3640;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
  position: relative;
}

/* === ISI PROGRESS (default hijau, bisa diganti dari JS) === */
.progress .fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 6px;
  background: linear-gradient(90deg, #00ff4c, #00a82d);
  position: relative;
  overflow: hidden;
  transition: width 1s ease-in-out;
}

/* === ANIMASI GARIS BERJALAN === */
.progress .fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-image: linear-gradient(-45deg,
      rgba(255, 255, 255, 0.2) 25%,
      transparent 25%,
      transparent 50%,
      rgba(255, 255, 255, 0.2) 50%,
      rgba(255, 255, 255, 0.2) 75%,
      transparent 75%,
      transparent);
  background-size: 50px 50px;
  animation: moveStripes 2s linear infinite;
  border-radius: 6px;
  z-index: 1;
}

/* === ANIMASI STRIPES === */
@keyframes moveStripes {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 50px 50px;
  }
}

/* === WARNA GRADIENT SESUAI RTP === */
.progress.red .fill {
  background: linear-gradient(#f0a3a3, #f42323);
}

.progress.orange .fill {
  background: linear-gradient(#f1a165, #f36d0a);
}

.progress.green .fill {
  background: linear-gradient(#2bc253, #84f054);
}

.provider-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #205900, transparent);
  border-top: 1px solid #0f3;
  border-bottom: 1px solid #0f3;
  overflow: hidden;
  padding: 5px 0;
}

.scroll-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 12px;
  padding: 5px 40px; /* beri ruang untuk panah */
  scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

.provider-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 6px 14px;
  border: 1px dashed #1aff6a;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  background: black;
  transition: 0.2s;
}

.provider-item:hover {
  background: rgba(0, 255, 127, 0.1);
  transform: scale(1.05);
}

.provider-item img {
  height: 24px;
  margin-bottom: 4px;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(0, 0, 0, 0.5);
  color: #00ff80;
  border: 1px solid #00ff80;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scroll-btn:hover {
  background: rgba(0, 255, 127, 0.2);
}

.scroll-btn.left { left: 5px; }
.scroll-btn.right { right: 5px; }