/* ============================================================================ 
   PNGRTP — styles.css (PNG Theme)
   ============================================================================
   NOTE: Progress bar colors/logic remain unchanged (green >80%, red <80%).
=============================================================================*/

/*=============================================================================
  VARIABLES & RESET
=============================================================================*/
:root {
  --bg-dark:    #0a0a0a;   /* deep black, premium base */
  --card-bg:    #1b1b1b;   /* slightly lighter card sections */
  --accent:     #d62828;   /* PNG flag red */
  --highlight:  #f4c441;   /* PNG gold/yellow for hover, icons, jackpots */
  --green:      #4caf50;   /* positive green (KEEP for progress logic) */
  --red:        #ff5252;   /* negative red (KEEP for progress logic) */
  --blue:       #0077b6;   /* ocean blue for info/secondary */
  --text-light: #ffffff;   /* bright text */
  --text-muted: #9aa3ae;   /* softer grey text */
  --text-dark:  #121212;   /* very dark grey */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/*=============================================================================
  UTILITY CONTAINER (optional)
=============================================================================*/
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/*=============================================================================
  LOGO BAR
=============================================================================*/
.site-logo {
  background-color: var(--bg-dark);
  border-bottom: 1px solid #222;
  text-align: center;
  padding: 0.5rem 1rem;
}
.site-logo img {
  max-height:40px;
  width: auto;
  display: inline-block;
}

/*=============================================================================
  HEADER & CAROUSEL
=============================================================================*/
.site-header {
  padding: 1em 0;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
}

.carousel-slide img {
  width: 100%;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 0.5em;
  cursor: pointer;
  z-index: 10;
  border-radius: 4px;
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-dots {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
}
.carousel-dot {
  display: inline-block;
  width: 8px; height: 8px;
  margin: 0 4px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
}
.carousel-dot.active {
  background: var(--accent);
}

/*=============================================================================
  HEADER BUTTONS
=============================================================================*/
.header-buttons {
  display: flex;
  justify-content: center;
  gap: 0.5em;
  margin: 1em 0;
}
.header-buttons .btn {
  font-family: 'Gotham', sans-serif !important;
  font-size: 0.9em;
}

/* shared button style (PNG premium: red→gold gradient) */
.btn {
  background: linear-gradient(to bottom, var(--accent), var(--highlight));
  border: 1px solid var(--highlight);
  border-radius: 20px;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: bold;
  padding: 0.5em 2em;
  cursor: pointer;
  transition: box-shadow 0.1s ease, transform 0.1s ease, background 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn:hover,
.btn:focus {
  background: linear-gradient(to bottom, var(--highlight), var(--accent));
  color: var(--bg-dark);
}
.btn:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,0.7),
    inset 0 -1px 0 rgba(255,255,255,0.1),
    0 1px 2px rgba(0,0,0,0.7);
}

/*=============================================================================
  SEARCH BAR
=============================================================================*/
.search-bar {
  display: flex;
  gap: 0.5em;
  justify-content: center;
}
.search-bar input {
  width: 200px;
  padding: 0.5em;
  border: 1px solid #333;
  border-radius: 6px;
  background: #1f1f1f;
  color: var(--text-light);
}
.search-bar button {
  padding: 0.5em 1em;
  border: 1px solid #333;
  background: #1f1f1f;
  color: var(--text-light);
  border-radius: 6px;
  cursor: pointer;
}

/*=============================================================================
  PROVIDER NAV (pills)
=============================================================================*/
.nav-container {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 12rem;
  grid-template-rows: repeat(2, auto);
  gap: 0.5em;
  padding: 0.5em;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-height: calc((2 * 2.4em) + 1.5em);
  align-content: start;
}
.nav-container::-webkit-scrollbar {
  width: 0; height: 0;
}
.nav-menu {
  width: 100%;
  background: linear-gradient(to bottom, #2a2a2a, var(--bg-dark));
  border: 1px solid var(--highlight);
  border-radius: 20px;
  color: #fff;
  text-transform: uppercase;
  font-weight: bold;
  padding: 0.5em;
  text-align: center;
  cursor: pointer;
  font-family: 'Gotham', sans-serif;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.nav-menu.selected {
  color: var(--highlight) !important;
}

/*=============================================================================
  MARQUEE + FILTER
=============================================================================*/
.header-container {
  display: flex;
  align-items: center;
  padding: 0.5em 1em;
  margin-bottom: 1em;
}
.header-container marquee {
  flex: 1;
  background: var(--accent);
  color: var(--bg-dark);
  padding: 0.3em 0.8em;
  border-radius: 6px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 0.5em;
  letter-spacing: 0.2px;
}
.filter-select {
  display: flex;
  align-items: center;
  color: var(--highlight);
}
.filter-select select {
  margin-left: 0.5em;
  padding: 0.3em 0.5em;
  border: 1px solid #333;
  border-radius: 6px;
  background: #1f1f1f;
  color: var(--text-light);
}

/*=============================================================================
  GAME GRID & CARDS
=============================================================================*/
#game-list {
  display: grid;
  gap: 16px;
  padding: 16px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  max-width: calc(5 * 160px + 4 * 16px);
  margin: 0 auto;
}
.game-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 1em;
  text-align: center;
  position: relative;
  border: 1px solid #2a2a2a;
  box-shadow: 0 6px 14px rgba(0,0,0,0.45);
}
.game-card img {
  width: 100%;
  border-radius: 6px;
  cursor: pointer;
}
.game-title {
  margin: 0.6em 0 0.4em;
  font-weight: 800;
  color: var(--highlight);
  letter-spacing: 0.2px;
}

/*=============================================================================
  PROGRESS BAR  (UNCHANGED)
=============================================================================*/
.progress-bar-container {
  background: #444;
  border-radius: 10px;
  height: 16px;
  overflow: hidden;
  margin: 0.5em 0;
  position: relative;
}
.progress-bar {
  height: 100%;
  width: 0;
  transition: width 0.3s ease;
  background: var(--green);
}
.progress-bar-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 0.75em;
  color: var(--text-light);
  font-weight: bold;
}

/*=============================================================================
  SLOT INFO
=============================================================================*/
.game-info {
  margin-top: 0.5em;
  font-size: 0.85em;
}
.gacor-time {
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 1em;
}
.pola-slot-table {
  margin-top: 0.3em;
}
.pola-slot-table div {
  margin: 0.2em 0;
  color: var(--text-light);
}

/*=============================================================================
  POPUP & SIMULATION (Dark Theme)
=============================================================================*/
.popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 1100;
}

/* Force SweetAlert2 alerts above all popups */
.swal2-container {
  z-index: 9999 !important;
}

.popup[style*="display:flex"] {
  display: flex;
}
.popup-container {
  background: var(--card-bg);
  color: var(--text-light);
  padding: 1.5em;
  border-radius: 10px;
  width: 90%;
  max-width: 420px;
  position: relative;
  border: 1px solid #2a2a2a;
  box-shadow: 0 10px 24px rgba(0,0,0,0.5);
}
.popup-container .close {
  position: absolute;
  top: 0.5em; right: 0.5em;
  cursor: pointer;
  font-size: 1.2em;
}
.popup-container h2 {
  text-align: center;
  margin-bottom: 1em;
  font-family: 'Gotham', sans-serif;
  color: var(--highlight);
  letter-spacing: 0.3px;
}
.popup-container label,
.popup-container input,
.popup-container button {
  width: 100%;
  font-family: 'Roboto', sans-serif;
}
.popup-container label {
  margin-top: 0.5em;
}
.popup-container input {
  margin: 0.3em 0 1em;
  padding: 0.6em 0.7em;
  border: 1px solid #333;
  border-radius: 6px;
  background: #1f1f1f;
  color: var(--text-light);
}
.popup-container button {
  padding: 0.75em;
  background: linear-gradient(to right, var(--accent), var(--highlight));
  color: var(--bg-dark);
  border: 1px solid var(--highlight);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}
.popup-container button:hover,
.popup-container button:focus {
  background: linear-gradient(to right, var(--highlight), var(--accent));
  color: var(--bg-dark);
}

/*=============================================================================
  SIMULATION RESULT
=============================================================================*/
.simulation-result-container {
  padding: 1em;
  text-align: center;
  font-size: 0.9em;
}
.simulation-result-container p {
  margin: 0.5em 0;
}
.probability-text {
  font-weight: bold;
  color: var(--green);
}
.winning-amount-text {
  font-weight: bold;
  color: var(--highlight);
}
.warning-text {
  color: var(--red) !important;
  font-weight: bold;
  margin-top: 1em;
}
.info-text {
  text-align: left;
  font-size: 0.85em;
  margin: 0.3em 0;
}
.bottom-progress-bar-container {
  background: #333;
  border-radius: 10px;
  margin-top: 1em;
  overflow: hidden;
  height: 16px;
}
.bottom-progress-bar {
  height: 100%;
  line-height: 16px;
  color: var(--text-light);
  font-size: 0.75em;  
  text-align: center;
  font-weight: bold;
}

/*=============================================================================
  WHY CHOOSE US (bottom section)
=============================================================================*/
.artikel {
  background-color: #121212;
  color: #fff;
  padding: 2em 1em;
  border-radius: 10px;
  max-width: 800px;
  margin: 3em auto;       /* centers the section on the page */
  text-align: center;     /* centers the title and button */
  border: 1px solid #2a2a2a;
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}

/* make the intro copy a narrower block, centered in .artikel,
   but with its text flush-left */
.artikel p {
  max-width: 600px;
  margin: 1em auto;
  text-align: left;
}

.artikel h2 {
  font-family: 'Gotham', sans-serif;
  margin-bottom: 0.75em;
  color: var(--highlight);
  letter-spacing: 0.3px;
}
.artikel a.btn {
  background: linear-gradient(to right, var(--accent), var(--highlight));
  color: var(--bg-dark);
  padding: 0.75em 1.5em;
  display: inline-block;
  margin-top: 1em;
  text-transform: uppercase;
  font-weight: 800;
  border-radius: 8px;
  border: 1px solid var(--highlight);
}
