/* ============================================
   PASAL4D - LUXURY DARK REDESIGN
   Theme: Deep Space + Asian Gold Luxury
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
    --smaller-font: 0.7rem;
    --small-font: 0.87rem;
    --normal-font: 1rem;
    --medium-font: 1.1rem;
    --large-font: 1.7rem;
    --x-large-font: 2rem;

    /* Dark luxury palette */
    --bg-color: #050a18;
    --bg-card: rgba(8, 15, 35, 0.92);
    --bg-card-hover: rgba(12, 22, 50, 0.96);
    --text-first: #f0e6c8;
    --text-second: #0a0a14;
    --text-muted: #8899bb;

    /* Gold palette */
    --gold-1: #ffd700;
    --gold-2: #ffb800;
    --gold-3: #e8a000;
    --gold-4: #c8860a;
    --gold-light: #fff3a0;
    --gold-glow: rgba(255, 215, 0, 0.4);

    /* Accent colors */
    --accent-purple: #7b2fff;
    --accent-cyan: #00d4ff;
    --accent-pink: #ff2d78;
    --accent-green: #00e676;

    /* Legacy compat */
    --first-color: #ffd700;
    --second-color: #ffb800;
    --third-color: #e8a000;
    --fourth-color: #c8860a;
    --fifth-color: #ffcc44;
    --g1: #ffb800;
    --g2: #e8a000;
    --g4: #050a18;
}

/* ---- BASE ---- */
* {
    box-sizing: border-box;
}

body {
    background: var(--bg-color);
    background-image: url('../images/bg-main.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    color: var(--text-first);
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-size: 15px;
    min-height: 100vh;
}

/* Dark overlay on background for readability */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(5, 10, 24, 0.72) 0%,
        rgba(5, 10, 24, 0.60) 40%,
        rgba(5, 10, 24, 0.72) 100%
    );
    z-index: 0;
    pointer-events: none;
}

main.container {
    position: relative;
    z-index: 1;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #050a18; }
::-webkit-scrollbar-thumb { background: var(--gold-2); border-radius: 3px; }

/* ---- LOGO ---- */
.logo {
    padding-top: 1.2rem;
    padding-bottom: 0.5rem;
}

.logo img {
    width: 18rem;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 18px var(--gold-glow)) drop-shadow(0 0 6px rgba(255,215,0,0.6));
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 18px var(--gold-glow)) drop-shadow(0 0 6px rgba(255,215,0,0.6)); }
    50% { filter: drop-shadow(0 0 28px rgba(255,215,0,0.7)) drop-shadow(0 0 12px rgba(255,215,0,0.9)); }
}

/* ---- SLIDER WRAPPER ---- */
.slider-wrapper {
    background: linear-gradient(
        180deg,
        rgba(8, 15, 35, 0.95) 0%,
        rgba(5, 10, 24, 0.98) 100%
    );
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255,215,0,0.1),
        0 4px 30px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,215,0,0.15);
    margin-bottom: 0.5rem;
}

/* ---- RUNNING TEXT ---- */
.running-text {
    background: linear-gradient(90deg, var(--gold-3) 0%, var(--gold-1) 50%, var(--gold-3) 100%);
    background-size: 200% 100%;
    animation: shimmerBg 4s linear infinite;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--text-second);
    padding: 0.25rem 0;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

@keyframes shimmerBg {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* ---- SLIDER ---- */
.slider, .swiper {
    width: 100%;
    max-width: 100%;
}

.slider { padding: 0.6rem; }

.slider-img {
    width: 100%;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* ---- SOCIAL BUTTONS ---- */
.btn-warning {
    background: linear-gradient(135deg, #ff2d78 0%, #c0006a 100%) !important;
    border: 1px solid rgba(255,45,120,0.5) !important;
    color: #fff !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.78rem !important;
    padding: 0.45rem 0.5rem !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 12px rgba(255,45,120,0.35);
    transition: all 0.25s ease;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ff5599 0%, #e0007a 100%) !important;
    box-shadow: 0 4px 18px rgba(255,45,120,0.55) !important;
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #1565ff 0%, #0a3ab8 100%) !important;
    border: 1px solid rgba(21,101,255,0.5) !important;
    color: #fff !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.78rem !important;
    padding: 0.45rem 0.5rem !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 12px rgba(21,101,255,0.35);
    transition: all 0.25s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4488ff 0%, #1a4adb 100%) !important;
    box-shadow: 0 4px 18px rgba(21,101,255,0.55) !important;
    transform: translateY(-1px);
}

/* ---- PROMO BANNERS ---- */
.row .col-lg-6 img.img-fluid {
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,215,0,0.15);
}

.row .col-lg-6 img.img-fluid:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 25px rgba(255,215,0,0.25), 0 4px 15px rgba(0,0,0,0.5);
    border-color: rgba(255,215,0,0.4);
}

/* ---- LOGIN / DAFTAR BUTTONS ---- */
.btn-credit {
    background: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-3) 50%, var(--gold-4) 100%);
    background-size: 200% 100%;
    padding: 0.75rem 1rem;
    color: #0a0a14;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    border-top: 2px solid rgba(255,255,255,0.3);
    border-bottom: 2px solid rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-credit::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s ease;
}

.btn-credit:hover::before {
    left: 100%;
}

.btn-credit:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-1) 50%, var(--gold-2) 100%);
    box-shadow: 0 0 20px var(--gold-glow);
    transform: translateY(-1px);
}

/* ---- PROVIDER ICONS BAR ---- */
.icon-prov {
    background: linear-gradient(
        90deg,
        rgba(8,15,35,0.98) 0%,
        rgba(15,25,55,0.98) 50%,
        rgba(8,15,35,0.98) 100%
    );
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 10px;
    padding: 0.4rem 0;
    margin: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,215,0,0.1);
    overflow-x: auto;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    scrollbar-width: none;
}

.icon-prov::-webkit-scrollbar { display: none; }

.icon-card-bg {
    cursor: pointer;
    padding: 0.3rem 0.5rem !important;
    color: var(--text-first);
    border-radius: 8px;
    transition: all 0.25s ease;
    text-align: center;
    min-width: 60px;
}

.icon-card-bg:hover {
    background: rgba(255,215,0,0.12);
    transform: translateY(-2px);
}

.icon-card-bg p {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--gold-1);
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.3px;
}

.img-prov {
    display: block;
    margin: 0 auto;
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    filter: brightness(1.1) drop-shadow(0 0 4px rgba(255,215,0,0.3));
}

.item-prov {
    padding: 0 0.2rem;
}

/* ---- DATE & TITLE SECTION ---- */
h6.text-center {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

h4.text-center {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-1) 50%, var(--gold-3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 8px rgba(255,215,0,0.4));
}

/* ---- RTP CARDS ---- */
.rtp-card {
    background: linear-gradient(
        160deg,
        rgba(15, 25, 55, 0.97) 0%,
        rgba(8, 15, 35, 0.99) 100%
    );
    border: 1px solid rgba(255, 215, 0, 0.22);
    padding: 0.5rem;
    text-align: center;
    width: 100%;
    max-width: 100%;
    height: 100%;
    border-radius: 10px;
    margin-bottom: 0.6rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow:
        0 2px 12px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,215,0,0.08);
    overflow: hidden;
}

.rtp-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
    opacity: 0.6;
}

.rtp-card:hover {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow:
        0 6px 25px rgba(255,215,0,0.15),
        0 2px 12px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,215,0,0.15);
    transform: translateY(-2px);
}

.rtp-card-img {
    max-width: 100%;
    width: 100%;
    display: block;
    margin: 0 auto;
    border-radius: 6px;
}

/* ---- GAME IMAGE CONTAINER ---- */
.place-img-rtp {
    width: 100%;
    padding: 0.3rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.6) inset;
    background: rgba(0,0,0,0.3);
}

.place-img-rtp:hover { cursor: pointer; }

.place-img-rtp::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    border: 1px solid rgba(255,215,0,0.1);
    pointer-events: none;
}

/* ---- PLAY BUTTON ---- */
.btn-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    border: 2px solid var(--gold-1);
    border-radius: 6px;
    padding: 0.35rem 0.5rem;
    width: 80%;
    max-width: 80%;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, rgba(255,215,0,0.9) 0%, rgba(200,134,10,0.9) 100%);
    color: #0a0a14;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 12px rgba(255,215,0,0.4);
    transition: all 0.2s ease;
    opacity: 0;
}

.place-img-rtp:hover .btn-play {
    opacity: 1;
}

.btn-play:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-1) 100%);
    box-shadow: 0 4px 20px rgba(255,215,0,0.6);
}

/* ---- POLA WRAPPER ---- */
.pola-wrapper {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255,215,0,0.15);
    padding: 0.4rem;
    width: 100%;
    max-width: 100%;
    border-radius: 7px;
    position: relative;
    margin-top: 0.3rem;
}

.pola-wrapper h4 {
    font-size: 0.78rem;
    color: var(--gold-1);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.pola-wrapper h5 {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.pola-wrapper h4 i, .pola-wrapper h5 i {
    color: var(--gold-1);
}

/* ---- JAM WRAPPER ---- */
.jam-wrapper {
    background: rgba(255,215,0,0.08);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 20px;
    padding: 0.3rem 0.5rem;
    display: inline-block;
}

/* ---- TABLE POLA ---- */
.table-pola {
    max-width: 100%;
    width: 100%;
}

.table-pola tr td {
    text-align: center;
    font-size: 0.65rem;
    color: var(--text-first);
    padding: 1px 2px;
}

/* ---- HOT / TOP BADGES ---- */
.top-game, .hot-game {
    background-repeat: no-repeat !important;
    position: absolute;
    width: 3rem;
    top: 0rem;
    z-index: 2;
    height: 2.9rem;
    left: 0.4rem;
    filter: drop-shadow(0 0 6px rgba(255,100,0,0.6));
}

.top-game { background: url('../images/top.gif'); }
.hot-game { background: url('../images/hot.gif'); }

/* ---- PROVIDER ICON (card) ---- */
.icon-providers {
    position: absolute;
    display: block;
    width: 2rem;
    top: 0.4rem;
    right: 0.4rem;
}

.icon-providers img {
    width: 1.6rem;
    filter: drop-shadow(0 0 4px rgba(255,215,0,0.4));
}

/* ---- PROGRESS BAR ---- */
.percent {
    height: 18px;
    margin-top: 8px !important;
    display: flex;
    overflow: hidden;
    font-size: .75rem;
    background: rgba(255,255,255,0.08);
    border-radius: 9px;
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.1);
}

.percent p {
    z-index: 15;
    position: absolute;
    text-align: center;
    width: 100%;
    font-size: 11px;
    top: -15px;
    font-weight: 800;
    transform: translateY(14px);
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.percent-bar {
    background-image: linear-gradient(
        45deg,
        rgba(255,255,255,0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255,255,255,0.15) 50%,
        rgba(255,255,255,0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    transition: width .6s ease;
    -webkit-animation: progress-bar-stripes 1s linear infinite;
    animation: progress-bar-stripes 1s linear infinite;
    z-index: 10;
    border-radius: 9px;
}

.good {
    background-color: #f0a500;
    box-shadow: 0 0 8px rgba(240,165,0,0.5);
}

.great {
    background-color: #00c853;
    box-shadow: 0 0 8px rgba(0,200,83,0.5);
}

.bad {
    background-color: #e53935;
    box-shadow: 0 0 8px rgba(229,57,53,0.5);
}

/* ---- BOTTOM NAV ---- */
.nav-bottom {
    position: fixed;
    bottom: 0;
    display: flex;
    z-index: 100;
    overflow: hidden;
    width: 100%;
    border-top: 2px solid var(--gold-2);
    box-shadow: 0 -4px 20px rgba(255,215,0,0.2);
}

.item-nav-bottom {
    background: linear-gradient(
        180deg,
        rgba(12, 22, 50, 0.98) 0%,
        rgba(5, 10, 24, 0.99) 100%
    );
    color: var(--gold-1);
    font-weight: 700;
    text-align: center;
    font-size: 0.75rem;
    padding: 0.4rem;
    border-right: 1px solid rgba(255,215,0,0.1);
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.item-nav-bottom:hover {
    background: linear-gradient(
        180deg,
        rgba(255,215,0,0.15) 0%,
        rgba(255,215,0,0.05) 100%
    );
    cursor: pointer;
    color: var(--gold-light);
}

.item-nav-bottom p {
    margin: 0;
    padding: 0;
}

.item-nav-bottom svg,
.item-nav-bottom i {
    font-size: 1.1rem;
    display: block;
    margin: 0 auto 2px;
    color: var(--gold-1);
}

/* ---- SCROLL UP BUTTON ---- */
.btn-up {
    display: none;
    position: fixed;
    bottom: 3.8rem;
    right: 0.5rem;
    z-index: 99;
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--gold-1), var(--gold-3));
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    color: #0a0a14;
    font-weight: 900;
    box-shadow: 0 2px 12px rgba(255,215,0,0.4);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-up:hover {
    box-shadow: 0 4px 20px rgba(255,215,0,0.6);
    transform: translateY(-2px);
}

/* ---- CONTENT HOME (SEO) ---- */
.content-home {
    padding: 1.5rem;
    margin-bottom: 4rem;
    background: rgba(8, 15, 35, 0.92);
    color: var(--text-first);
    border: 1px solid rgba(255,215,0,0.12);
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.content-home h1, .content-home h2, .content-home h3 {
    color: var(--gold-1);
    font-family: 'Cinzel', serif;
}

.content-home p {
    color: #b0c0d8;
    line-height: 1.7;
}

/* ---- STARS RATING ---- */
.text-warning {
    color: var(--gold-1) !important;
    filter: drop-shadow(0 0 4px rgba(255,215,0,0.5));
}

/* ---- POLA TIDAK TERSEDIA ---- */
.pola-wrapper .text-danger {
    font-size: 0.7rem;
    font-weight: 700;
    color: #ff5252 !important;
}

/* ---- ANIMATIONS ---- */
@keyframes progress-bar-stripes {
    from { background-position: 1rem 0; }
    to { background-position: 0 0; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(255,215,0,0.3); }
    50% { box-shadow: 0 0 20px rgba(255,215,0,0.6); }
}

/* ---- CARD ENTRANCE ANIMATION ---- */
.col-lg-3 {
    animation: fadeInUp 0.4s ease both;
}

/* ---- CONTAINER ---- */
@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1100px !important;
    }
}

/* ---- MOBILE ADJUSTMENTS ---- */
@media (max-width: 576px) {
    .logo img { width: 14rem; }
    h4.text-center { font-size: 1rem; }
    .rtp-card { padding: 0.35rem; }
    .pola-wrapper { padding: 0.3rem; }
    .table-pola tr td { font-size: 0.58rem; }
    .pola-wrapper h4 { font-size: 0.7rem; }
    .pola-wrapper h5 { font-size: 0.6rem; }
}

/* ---- DIVIDER ---- */
hr {
    border-color: rgba(255,215,0,0.15);
    margin: 0.4rem 0;
}

/* ---- ROUNDED BADGE (NEW/EKSKLUSIF) ---- */
img[alt*="NEW"], img[alt*="new"] {
    filter: drop-shadow(0 0 6px rgba(255,215,0,0.5));
}

/* ---- ROW GAPS ---- */
.row.g-1 { --bs-gutter-x: 0.4rem; --bs-gutter-y: 0.4rem; }
.row.g-0 { --bs-gutter-x: 0; --bs-gutter-y: 0; }

/* ---- SWIPER PAGINATION ---- */
.swiper-pagination-bullet {
    background: var(--gold-2) !important;
    opacity: 0.5;
}
.swiper-pagination-bullet-active {
    opacity: 1 !important;
    box-shadow: 0 0 6px var(--gold-glow);
}
