
/* ========================================
   1. PENGATURAN DASAR
======================================== */

:root {
    --primary-blue: #1768C2;
    --dark-blue: #104B91;
    --light-blue: #EAF4FF;
    --white: #FFFFFF;
    --text-color: #26384D;
    --border-color: #DCE8F5;
    --background-color: #F5F9FE;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

img {
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ========================================
   2. HEADER WEBSITE
======================================== */

.site-header {
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo img {
    display: block;
    width: 160px;
    max-height: 65px;
    object-fit: contain;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-navigation a {
    color: var(--dark-blue);
    font-size: 13px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.main-navigation a:hover {
    color: var(--primary-blue);
}


/* ========================================
   3. BANNER SLIDER
======================================== */

.banner-section {
    padding: 20px 0 0;
}

.banner-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--white);
}

.banner-track {
    display: flex;
    width: 100%;
    align-items: flex-start;
    transition: transform 0.5s ease-in-out;
}

.banner-slide {
    width: 100%;
    min-width: 100%;
    flex-shrink: 0;
}

.banner-slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--dark-blue);
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
}

.slider-button:hover {
    background: var(--white);
}

.slider-prev {
    left: 16px;
}

.slider-next {
    right: 16px;
}

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

.slider-dot {
    width: 9px;
    height: 9px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

.slider-dot.active {
    width: 24px;
    background: var(--primary-blue);
}


/* ========================================
   4. TOMBOL LOGIN DAN DAFTAR
======================================== */

.account-section {
    padding: 22px 0;
}

.account-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.account-button {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease;
}

.account-button:hover {
    transform: translateY(-2px);
}

.login-button {
    background: var(--primary-blue);
    color: var(--white);
}

.login-button:hover {
    background: var(--dark-blue);
}

.register-button {
    background: var(--white);
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

.register-button:hover {
    background: var(--light-blue);
}


/* ========================================
   5. PERINGKAT GAME DAN CASINO
======================================== */

.ranking-section {
    padding: 24px 0;
}

.section-heading {
    margin-bottom: 18px;
}

.section-heading h2 {
    color: var(--dark-blue);
    font-size: 21px;
    font-weight: 800;
}

.section-heading p {
    margin-top: 6px;
    color: #71839A;
    font-size: 13px;
}

.horizontal-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 3px 2px 14px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-blue) #E4EDF7;
    -webkit-overflow-scrolling: touch;
}

.horizontal-list::-webkit-scrollbar {
    height: 6px;
}

.horizontal-list::-webkit-scrollbar-track {
    background: #E4EDF7;
    border-radius: 10px;
}

.horizontal-list::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 10px;
}

.game-card {
    min-width: 165px;
    max-width: 165px;
    flex: 0 0 165px;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 16px rgba(23, 104, 194, 0.12);
}

.game-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 8px;
}

.game-card h3 {
    margin-top: 11px;
    color: var(--dark-blue);
    font-size: 13px;
    font-weight: 700;
}


/* ========================================
   6. INFORMASI PERMAINAN
======================================== */

.information-section {
    padding: 30px 0 45px;
}

.information-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.information-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: box-shadow 0.2s ease;
}

.information-card:hover {
    box-shadow: 0 5px 16px rgba(23, 104, 194, 0.10);
}

.information-card img {
    display: block;
    width: 115px;
    height: 90px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 8px;
}

.information-content {
    flex: 1;
    min-width: 0;
}

.information-card h3 {
    margin-bottom: 8px;
    color: var(--dark-blue);
    font-size: 15px;
    font-weight: 700;
}

.information-card p {
    color: #71839A;
    font-size: 12px;
    line-height: 1.7;
}


/* ========================================
   7. FOOTER WEBSITE
======================================== */

.site-footer {
    padding: 30px 0;
    background: var(--dark-blue);
    text-align: center;
}

.footer-logo {
    display: block;
    width: 145px;
    max-height: 65px;
    object-fit: contain;
    margin: 0 auto 12px;
}

.site-footer p {
    color: var(--white);
    font-size: 12px;
}


/* ========================================
   8. RESPONSIVE TABLET
======================================== */

@media (max-width: 768px) {

    .header-content {
        min-height: 65px;
        gap: 12px;
    }

    .brand-logo img {
        width: 115px;
    }

    .main-navigation {
        gap: 13px;
    }

    .main-navigation a {
        font-size: 10px;
    }

    .banner-section {
        padding-top: 14px;
    }

    .banner-slider {
        border-radius: 8px;
    }

    .slider-button {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .slider-prev {
        left: 8px;
    }

    .slider-next {
        right: 8px;
    }

    .slider-dots {
        bottom: 8px;
    }

    .account-section {
        padding: 15px 0;
    }

    .account-button {
        min-height: 46px;
        font-size: 13px;
    }

    .section-heading h2 {
        font-size: 18px;
    }

    .game-card {
        min-width: 135px;
        max-width: 135px;
        flex-basis: 135px;
    }

    .information-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .information-card img {
        width: 105px;
        height: 85px;
    }
}


/* ========================================
   9. RESPONSIVE MOBILE
======================================== */

@media (max-width: 420px) {

    .container {
        padding: 0 12px;
    }

    .header-content {
        flex-direction: column;
        justify-content: center;
        padding-top: 10px;
        padding-bottom: 12px;
    }

    .brand-logo img {
        width: 125px;
    }

    .main-navigation {
        width: 100%;
        justify-content: center;
        gap: 18px;
    }

    .main-navigation a {
        font-size: 11px;
    }

    .slider-button {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .slider-dots {
        bottom: 6px;
    }

    .game-card {
        min-width: 120px;
        max-width: 120px;
        flex-basis: 120px;
        padding: 9px;
    }

    .game-card h3 {
        font-size: 12px;
    }

    .information-card {
        padding: 12px;
        gap: 12px;
    }

    .information-card img {
        width: 90px;
        height: 78px;
    }

    .information-card h3 {
        font-size: 14px;
    }

    .information-card p {
        font-size: 11px;
    }

}
