/**
* Version:           1.0.0
* Theme Name:        Dark Theme
* Author:            Pragmabet
*/


/* ==============================
   Global Reset & Base
   ============================== */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Fredoka", sans-serif;
  background-color: #000000;
  color: #bfbfbf;
  line-height: 1.6;
  scroll-behavior: smooth;
}

* {
  transition: all 0.25s ease-in-out;
  box-sizing: border-box;
}

a {
  color: #ff8000;
  text-decoration: none;
}

a:hover {
  color: #ffaa33;
}

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
}

/* ==============================
   Header
   ============================== */
.site-header {
  background-color: #1a1a1a;
  color: #eee;
  font-family: 'Tomorrow', Arial, sans-serif;
}

/* ------------------------------
   Top Bar Desktop
   ------------------------------ */
.header-top {
  background: #222;
  padding: 0.4rem 1rem;
  border-bottom: 1px solid #333;
}

.contact-menu,
.cta-menu {
  padding-left: 0;
  margin: 0;
}

.contact-menu li,
.cta-menu li {
  list-style: none;
}

.contact-menu a,
.cta-menu a {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: #eee;
  position: relative;
  text-decoration: none;
}

/* ------------------------------
   Icon Base
   ------------------------------ */
.games-menu i.menu-icon,
.games-menu-mobile i.menu-icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 4px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.header-top .contact-menu i.menu-icon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.mobile-bottom .contact-menu i.menu-icon {
  width: 25px;
  height: 25px;
  margin: 0 auto 4px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.header-top .contact-menu span {
  font-size: 0.75rem;
}

.mobile-bottom .contact-menu span {
  font-size: 0.5rem;
}

/* ------------------------------
   CTA Buttons
   ------------------------------ */
.cta-menu a {
  font-family: sans-serif;
  padding: 0.25rem 0.75rem;
  border-radius: 25px;
  font-weight: bold;
  font-size: 0.85rem;
  text-transform: uppercase;
  border: none;
  letter-spacing: 1px;
  text-decoration: none;
}

.cta-menu .daftar a {
  background-color: #ffff00;
  color: #111;
}

.cta-menu .daftar a:hover {
  background-color: #999900;
}

.cta-menu .login a {
  background-color: #ff0000;
  color: #fff;
}

.cta-menu .login a:hover {
  background-color: #990000;
}

/* ------------------------------
   Bottom Bar Desktop
   ------------------------------ */
.header-bottom {
  background: #1a1a1a;
  padding: 0.6rem 1rem;
}

.logo-wrap .custom-logo {
  max-width: 110px;
  max-height: 60px;
  width: auto;
  height: auto;
}

.games-menu {
  padding-left: 0;
  margin: 0;
  display: flex;
  gap: 1rem;
}

.games-menu li {
  list-style: none;
  text-align: center;
}

.games-menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.8rem;
  color: #eee;
  text-decoration: none;
}

.games-menu a:hover {
  color: #ff8000;
}

/* ------------------------------
   Mobile Header & Bottom
   ------------------------------ */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #101010 0%, #202020 100%);
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
}

.mobile-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #202020 0%, #101010 100%);
  border-top: 1px solid #333;
  z-index: 1000;
}

.mobile-bottom .contact-menu {
  display: flex;
  justify-content: space-around;
  margin: 0;
  padding: 0.3rem 0;
}

.mobile-bottom .contact-menu li {
  flex: 1;
  text-align: center;
}

.mobile-bottom .contact-menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  color: #eee;
  text-decoration: none;
}

/* ------------------------------
   Mobile Games Menu
   ------------------------------ */
.games-menu-mobile{
  background: #202020;
}

.games-menu-mobile .games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding-left: 0;
}

.games-menu-mobile .games-grid li {
  text-align: center;
}

.games-menu-mobile .games-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #eee;
  font-size: 11px;
}

.games-menu-mobile .games-grid a:hover {
  color: #ff8000;
}

/* ==============================
   ICON MAPPING: Contact
   ============================== */
.contact-menu .whatsapp i.menu-icon {
  background-image: url('/wp-content/themes/pragmabet-revisi-path/images/icons/whatsapp.svg');
}

.contact-menu .livechat i.menu-icon {
  background-image: url('/wp-content/themes/pragmabet-revisi-path/images/icons/livechat.svg');
}

.contact-menu .telegram i.menu-icon {
  background-image: url('/wp-content/themes/pragmabet-revisi-path/images/icons/telegram.svg');
}

.contact-menu .android i.menu-icon {
  background-image: url('/wp-content/themes/pragmabet-revisi-path/images/icons/android.svg');
}

/* ==============================
   ICON MAPPING: Games Desktop & Mobile
   ============================== */
.games-menu li.home i.menu-icon,
.games-menu-mobile li.home i.menu-icon {
  background-image: url('/wp-content/themes/pragmabet-revisi-path/images/games/home.svg');
}

.games-menu li.slots i.menu-icon,
.games-menu-mobile li.slots i.menu-icon {
  background-image: url('/wp-content/themes/pragmabet-revisi-path/images/games/slots.svg');
}

.games-menu li.arcade i.menu-icon,
.games-menu-mobile li.arcade i.menu-icon {
  background-image: url('/wp-content/themes/pragmabet-revisi-path/images/games/arcade.svg');
}

.games-menu li.live-casino i.menu-icon,
.games-menu-mobile li.live-casino i.menu-icon {
  background-image: url('/wp-content/themes/pragmabet-revisi-path/images/games/live-casino.svg');
}

.games-menu li.poker i.menu-icon,
.games-menu-mobile li.poker i.menu-icon {
  background-image: url('/wp-content/themes/pragmabet-revisi-path/images/games/poker.svg');
}

.games-menu li.togel i.menu-icon,
.games-menu-mobile li.togel i.menu-icon {
  background-image: url('/wp-content/themes/pragmabet-revisi-path/images/games/togel.svg');
}

.games-menu li.sportsbook i.menu-icon,
.games-menu-mobile li.sportsbook i.menu-icon {
  background-image: url('/wp-content/themes/pragmabet-revisi-path/images/games/sportsbook.svg');
}

.games-menu li.sabung-ayam i.menu-icon,
.games-menu-mobile li.sabung-ayam i.menu-icon {
  background-image: url('/wp-content/themes/pragmabet-revisi-path/images/games/sabung-ayam.svg');
}

.games-menu li.promo i.menu-icon,
.games-menu-mobile li.promo i.menu-icon {
  background-image: url('/wp-content/themes/pragmabet-revisi-path/images/games/promo.svg');
}

/* ==============================
   Alternative Links
   ============================== */
.alternative-links .d-flex {
  display: flex;
  width: 100%;
}

.alternative-links .alt-link {
  flex: 1; /* Bagi rata sesuai jumlah item */
  text-align: center;
  padding: 0.75rem 0;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.9rem;
  margin: 0;
  border: none;
}

/* Styling default */
.alt-link.alt-login {
  background: linear-gradient(45deg, #2f2f2f, #5f5f5f);
  color: #fff;
}

.alt-link.alt-daftar {
  background: linear-gradient(45deg, #FFBB00, #BB3300);
  color: #111;
}

/* Hover */
.alt-link:hover {
  opacity: 0.9;
}

/* ==============================
   Quick Links
   ============================== */
.btn-quick {
  background: linear-gradient(180deg, #505050 0%, #202020 100%);
  color: #ffff50;
  text-decoration: none;
  text-transform: uppercase;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 5px;
  transition: all 0.2s ease-in-out;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 1);
}

.btn-quick:hover {
  color: #ffbb00;
  opacity: 0.9;
}

/* ==============================
   Wrapper Bukti Transfer
   ============================== */
.bukti-transfer__wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
}

.bukti-transfer__list {
    margin-top: 20px;
}

.bukti-transfer__item {
    margin-bottom: 20px;
    width: 100%;
}

.bukti-transfer__table-wrapper {
    width: 100%;
}

.bukti-transfer__table {
    width: 100%;
    border-collapse: collapse;
    background: #ddd;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
}

.bukti-transfer__table th,
.bukti-transfer__table td {
    padding: 10px;
    text-align: left;
}

.bukti-transfer__table th {
    text-align: center;
    background: linear-gradient(to bottom,#707070 0%,#202020 100%);
    color: #ff0;
    font-size: 21px;
    font-weight: 500;
}

.bukti-transfer__table tbody tr:nth-child(even) {
    background: #e9e9e9;
}

.bukti-transfer__table td {
    font-size: 14px;
    color: #333;
}

.bukti-transfer__card {
    width: 100%;
    margin-top: 0;
}

.bukti-transfer__image {
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* ==============================
   RTP PROVIDER
   ============================== */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  justify-items: center;
  padding: 20px 10px;
}

.provider-item {
  background: #111;
  border-radius: 5px;
  transition: transform 0.2s;
}

.provider-item:hover {
  transform: translateY(-4px);
}

.provider-item img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

/* ================= RTP LIVE ================= */
.rtp-wrapper {
  background-color: #101010;
  padding: 10px;
}

/* Header update */
.update-header {
  border-bottom: 2px solid #ccc;
  padding: 10px 0;
  margin-bottom: 10px;
}
.update-title {
  font-size: 1.4rem;
  color: #fff;
}
.update-date {
  display: block;
  margin-top: 5px;
  font-size: 0.9rem;
  color: #ddd;
}

.rtp-header {
  display: flex;
}

/* Slug title */
.slug-title {
  font-size: 1.3rem;
  color: #fff;
}

/* Search input */
#search {
  width: 100%;
  padding: 5px 10px;
  border-radius: 5px;
}

/* Card dasar */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 2px solid rgba(0,0,0,.125);
  border-radius: .25rem;
}

.card-deck {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 -5px;
}

/* Card game */
.card-game {
  display: flex;
  flex-direction: column;
  background-color: #202020;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-bottom: 15px;
  padding: 0;
}

/* Responsive: mobile 3 per row, tablet 4, desktop 5 */
@media (max-width: 576px) { .card-game { flex: 0 0 calc(33.333% - 10px); } }
@media (min-width: 577px) and (max-width: 768px) { .card-game { flex: 0 0 calc(25% - 10px); } }
@media (min-width: 769px) { .card-game { flex: 0 0 calc(20% - 10px); } }

/* Game image */
.game-item {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.game-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Title overlay */
.game-title {
  position: absolute;
  bottom: 0; 
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  padding: 3px 5px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* Percent bar */
.percent {
  position: relative;
  padding: 5px;
}
.percent-bar-wrapper {
  position: relative;
  height: 20px;
  border-radius: 5px;
  background-color: #e9ecef;
  overflow: hidden;
}
.percent-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
  background-size: 1rem 1rem;
  animation: progress-stripes 1s linear infinite;
  position: relative;
}
.percent-bar.red { background-color: #dc3545; }
.percent-bar.yellow { background-color: #ffc107; }
.percent-bar.green { background-color: #28a745; }
.percent-text {
  letter-spacing: 1px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  color: #000;
  font-weight: bold;
  line-height: 20px;
  z-index: 2;
}
@keyframes progress-stripes {
  0% { background-position: 1rem 0; }
  100% { background-position: 0 0; }
}

/* Jam & pola */
.jam {
  padding: 5px;
}

.jamgacor {
  font-size: .7rem;
  text-align: center;
  margin-bottom: 5px;
  padding: 5px;
  border-radius: 4px;
}
.pola {
  border-radius: 5px;
  text-align: center;
  padding: 5px;
}
.pola div {
  margin: 5px 0;
  font-size: 0.75rem;
  border-bottom: 1px solid #000;
  font-weight: 600;
}
.pola p {
  margin: 2px 0;
  font-size: 0.65rem;
}

/* ==============================
   Footer
   ============================== */
.site-footer {
  background-color: #303030;
}

.footer-links {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links li {
  display: inline-block;
  margin: 0 5px;
  position: relative;
}

.footer-links li:not(:first-child)::before {
  content: "|";
  color: #777;
  margin-right: 12px;
}

.footer-links li a {
  text-decoration: underline;
  color: #aaa;
  font-size: 14px;
}
.footer-links li a:hover {
  color: #fff;
}

/* ==============================
   Misc & Responsive
   ============================== */
@media (max-width: 767.98px) {
  body {
    font-size: small;
  }

  .site-content {
    padding-top: 55px;
  }

  .mobile-header .logo-wrap .custom-logo,
  .mobile-header .custom-logo {
    max-width: 70px;
    max-height: 40px;
  }
}