/* ========================================
   Base — Premium Purple Theme
   ======================================== */

:root {
  --purple-deep: #0d0221;
  --purple-dark: #150734;
  --purple-mid: #1a1040;
  --purple-card: #1e1250;
  --purple-accent: #7b2ff7;
  --purple-glow: #9d4edd;
  --purple-light: #c77dff;
  --purple-pale: #e0d6ff;
  --purple-gradient: linear-gradient(135deg, #7b2ff7 0%, #3a0ca3 100%);
  --purple-gradient-h: linear-gradient(90deg, #7b2ff7 0%, #3a0ca3 100%);
  --text-primary: #f0eaff;
  --text-secondary: #b8a9e0;
  --surface: #130830;
  --border-color: rgba(123, 47, 247, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--purple-deep);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--purple-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
  text-decoration: none;
}

/* ========================================
   Color Utilities (mapped to purple theme)
   ======================================== */

.color-1 {
  background-color: var(--purple-deep);
}

.color-2 {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border-color);
}

.color-3 {
  background-color: var(--purple-mid);
}

.color-4 {
  background-color: var(--purple-card);
}

.color-5 {
  background: var(--purple-accent);
}

.color-6 {
  background-color: var(--purple-glow);
}

.bg-color-1 {
  background-color: var(--purple-deep) !important;
}

.bg-color-3 {
  background-color: var(--purple-mid) !important;
}

/* ========================================
   Text Utilities
   ======================================== */

.text-justify {
  text-align: justify;
}

/* ========================================
   Logo
   ======================================== */

.web-logo {
  width: 100%;
  max-width: 150px;
  filter: drop-shadow(0 0 8px rgba(123, 47, 247, 0.4));
}

.logo-wrapper:hover .web-logo {
  filter: drop-shadow(0 0 14px rgba(157, 78, 221, 0.7));
}

/* ========================================
   Card Game
   ======================================== */

.card-game {
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-clip: border-box;
  border: 1px solid var(--border-color);
  border-radius: 14px;
}

.card.card-game {
  display: block;
  min-height: 100px;
  width: calc((100% - (8px * 3 * 2)) / 3);
  margin: 8px;
  padding: 0;
  background-color: var(--purple-card);
  background-image: linear-gradient(180deg, rgba(123, 47, 247, 0.12) 0%, rgba(13, 2, 33, 0.95) 100%);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(123, 47, 247, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card.card-game:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(123, 47, 247, 0.25), 0 0 0 1px rgba(123, 47, 247, 0.15);
}

.card-img,
.card-img-bottom,
.card-img-top {
  width: 100%;
  height: 100%;
}

.card.card-game .game-link {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 120px;
  width: auto;
  height: auto;
}

.card.card-game .game-item-img {
  transition: all 500ms ease 0s;
}

.card.card-game:hover .game-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9;
}

.card.card-game:hover .game-item-img {
  transform: scale(1.15) rotate(0deg);
  filter: brightness(50%);
}

.card-game span {
  color: var(--text-primary);
  text-transform: capitalize;
  width: 90%;
  margin: 6px auto;
  font-weight: 600;
  text-align: center;
  font-size: 0.7rem;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.card.card-game .card-body .game-link {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  height: auto;
  border-radius: 14px;
  background: rgba(13, 2, 33, 0.7);
  backdrop-filter: blur(4px);
}

.card.card-game .card-body:hover .game-link {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9;
}

/* ========================================
   Game Item
   ======================================== */

.game-item {
  background: var(--purple-dark);
  height: 0;
  position: relative;
  padding-bottom: 66.44186%;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}

.game-item-img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.2s ease;
}

/* ========================================
   Game Card (Jam / Pola / Percent)
   ======================================== */

.jam {
  color: var(--text-primary);
  background: rgba(21, 7, 52, 0.9);
  border-radius: 0 0 14px 14px;
  font-weight: 600;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.jamgacor {
  display: none;
}

.jam h5 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75em;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  width: 85%;
  margin: 3px auto;
  padding: 4px 0;
  color: var(--purple-light);
}

.pola {
  padding: 6px 8px;
  color: var(--text-secondary);
}

.pola p {
  margin-bottom: 0.15rem;
  font-size: 0.78em;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.percent {
  height: 18px;
  display: flex;
  overflow: hidden;
  line-height: 0;
  font-size: 0.5rem;
  background-color: rgba(30, 18, 80, 0.6);
  border-radius: 0;
  position: relative;
  z-index: 1;
}

.percent p {
  z-index: 15;
  position: absolute;
  text-align: center;
  width: 100%;
  font-size: 11px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  transform: translateY(8px);
  color: white;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.03em;
}

.percent-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  transition: width 0.6s ease;
  animation: progress-bar-stripes 1s linear infinite;
  z-index: 10;
}

.yellow {
  position: relative;
  background: linear-gradient(90deg, #c9a800, #f0d000);
}

.green {
  position: relative;
  background: linear-gradient(90deg, #00b34a, #2de07a);
}

.red {
  position: relative;
  background: linear-gradient(90deg, #8b1a3a, #c73e6a);
}

.shine {
  position: relative;
}

.yellow:after,
.green:after,
.red:after {
  content: "";
  opacity: 0;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #fff;
  animation: animate-shine 2s ease-out infinite;
}

/* ========================================
   Buttons
   ======================================== */

.btn-regis {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--purple-gradient-h);
  color: #ffffff;
  text-shadow: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 10px;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(123, 47, 247, 0.35);
}

.btn-regis:hover {
  background: linear-gradient(135deg, #9d4edd 0%, #7b2ff7 100%);
  color: #ffffff;
  box-shadow: 0 6px 24px rgba(157, 78, 221, 0.5);
  transform: translateY(-1px);
}

.btn-slide {
  background: var(--purple-accent);
  border-radius: 8px;
}

.btn-game {
  padding: 8px 20px;
  color: #ffffff;
  background: var(--purple-accent);
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(123, 47, 247, 0.3);
}

.btn-game:hover {
  background: linear-gradient(135deg, #9d4edd, #c77dff);
  color: #ffffff;
  box-shadow: 0 5px 20px rgba(157, 78, 221, 0.45);
  transform: translateY(-2px);
}

.btn-login {
  border-radius: 10px;
  line-height: 1.2;
}

.btn-login small,
.btn-login span {
  animation: blinking 1s step-start infinite;
}

.btn-group span {
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ========================================
   Icons
   ======================================== */

i.icon {
  color: var(--purple-light);
  font-size: 20px;
  line-height: 1;
}

.bi-person-plus-fill {
  margin-right: 0.5rem;
}

/* ========================================
   List Group (Provider Sidebar)
   ======================================== */

.list-group-item .provider-thumbnail {
  display: block;
  margin: 0;
  width: 4rem;
  height: 2rem;
  border-radius: 6px;
  object-fit: contain;
}

.list-group-item span {
  margin-left: 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.list-group-item {
  background-color: var(--purple-mid);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.25s ease;
}

.list-group-item-action:focus,
.list-group-item-action:hover {
  background-color: rgba(123, 47, 247, 0.15);
}

.list-group-item.active a {
  background: var(--purple-gradient-h);
  border: none;
  color: #ffffff;
  border-radius: 0;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.list-group-item.active a span {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* ========================================
   Card Provider (Circle Thumbnails)
   ======================================== */

.card-provider {
  position: relative;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--purple-dark);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  flex: 1 1 auto;
  margin: 0 auto;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-provider:hover {
  border-color: var(--purple-accent);
  box-shadow: 0 0 16px rgba(123, 47, 247, 0.3);
}

.card-provider img {
  width: 100%;
  border-radius: 50%;
}

.card-title {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ========================================
   Card Deck
   ======================================== */

.card-deck {
  display: flex;
  flex-flow: row wrap;
  align-items: stretch;
}

/* ========================================
   Search Input
   ======================================== */

input#search {
  width: 100%;
  outline: none;
  border: 1px solid var(--border-color);
  background-color: rgba(30, 18, 80, 0.5);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  appearance: none;
  border-radius: 10px;
  padding: 8px 14px;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

input#search::placeholder {
  color: var(--text-secondary);
}

input#search:focus {
  border-color: var(--purple-accent);
  background-color: rgba(30, 18, 80, 0.8);
  box-shadow: 0 0 0 3px rgba(123, 47, 247, 0.15);
}

/* ========================================
   Banner Carousel
   ======================================== */

#carousel-banner {
  position: relative;
}

#carousel-banner .carousel-inner {
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-color);
}

#carousel-banner .carousel-item img {
  aspect-ratio: 16 / 5;
  object-fit: cover;
  width: 100%;
}

#carousel-banner .carousel-control-prev,
#carousel-banner .carousel-control-next {
  width: 40px;
  height: 40px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  background: rgba(13, 2, 33, 0.7);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
}

#carousel-banner:hover .carousel-control-prev,
#carousel-banner:hover .carousel-control-next {
  opacity: 1;
}

#carousel-banner .carousel-control-prev {
  left: 12px;
}

#carousel-banner .carousel-control-next {
  right: 12px;
}

#carousel-banner .carousel-control-prev:hover,
#carousel-banner .carousel-control-next:hover {
  background: rgba(123, 47, 247, 0.8);
}

#carousel-banner .carousel-control-prev-icon,
#carousel-banner .carousel-control-next-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

#carousel-banner .carousel-indicators {
  position: relative;
  bottom: -8px;
  margin-bottom: 0;
  justify-content: center;
  gap: 6px;
}

#carousel-banner .carousel-indicators li {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(199, 125, 255, 0.35);
  border: none;
  opacity: 1;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

#carousel-banner .carousel-indicators li.active {
  width: 24px;
  border-radius: 4px;
  background-color: var(--purple-accent);
}

/* ========================================
   Owl Carousel Overrides
   ======================================== */

.owl-item {
  text-align: center;
}

.owl-item .active span {
  color: var(--purple-glow);
}

.owl-item span {
  width: 100%;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  text-align: center;
  font-size: 0.65rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text-secondary);
}

.carousel-game {
  background: var(--purple-dark);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.carousel-game .col {
  flex: 0 0 0%;
  height: auto;
}

#owl-game {
  flex: 1 0 auto;
  width: 50%;
  margin: 0 auto;
}

.owl-dots {
  display: none;
}

/* ========================================
   Animate Character (RTP Title)
   ======================================== */

.animate-charcter {
  display: inline-block;
  text-transform: uppercase;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 5px;
  background: linear-gradient(135deg, #c77dff, #e0d6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   Marquee / Announcement Bar
   ======================================== */

.d-none.d-lg-flex.color-3 {
  background: var(--purple-dark) !important;
  border: 1px solid var(--border-color);
}

/* ========================================
   Footer
   ======================================== */

.footer-text {
  background: var(--purple-gradient-h);
  border-top: 1px solid var(--border-color);
}

footer {
  background: var(--purple-deep);
}

footer p span {
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.05em;
}

/* ========================================
   Modal
   ======================================== */

.modal-open .modal {
  overflow-x: hidden;
  overflow-y: auto;
}

.modal-close {
  font-size: 23px;
  cursor: pointer;
}

.modal .modal-dialog .modal-content {
  background-color: var(--purple-mid);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.modal .modal-dialog .modal-content .modal-header h5 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.modal .modal-dialog .modal-content .modal-body p.text-list {
  display: block;
  position: relative;
  width: 30px;
  color: var(--purple-glow);
  font-size: 40px;
  font-weight: 900;
  text-align: center;
}

.modal .modal-dialog .modal-content .modal-body h5,
.modal .modal-dialog .modal-content .modal-body p {
  font-size: 14px;
}

/* ========================================
   Utility
   ======================================== */

.mr-n1 {
  margin-right: -1rem;
}

/* ========================================
   Scrollbar
   ======================================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--purple-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--purple-accent);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--purple-glow);
}

/* ========================================
   Keyframes
   ======================================== */

@keyframes blinking {
  50% {
    opacity: 0;
  }
}

@keyframes animate-shine {
  0% {
    opacity: 0;
    width: 0;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    width: 95%;
  }
}

@keyframes progress-bar-stripes {
  0% {
    background-position: 1rem 0;
  }
  100% {
    background-position: 0 0;
  }
}

/* ========================================
   Responsive
   ======================================== */

@media (min-width: 576px) {
  .text-xs-left {
    text-align: left;
  }

  .card.card-game {
    flex: 0 0 auto;
    width: calc((100% - (8px * 5 * 2)) / 5);
  }
}

@media (max-width: 576px) {
  .pola p {
    margin-bottom: 0.1rem;
    font-size: 0.7em;
  }

  .btn-regis {
    padding: 6px 14px;
    font-size: 0.75rem;
  }
}

@media (min-width: 993px) {
  .modal .modal-dialog .modal-content {
    max-width: 400px;
    margin: 0 auto;
  }
}
