/* =================================
   Import Font
   ================================= */
/* Ini OK, mengimpor Oswald dan Roboto */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&family=Roboto:wght@400;500;700&display=swap');

/* =================================
   Root Variabel (Palet Warna Keren)
   ================================= */
:root {
    --bg-dark-primary: #121212;
    --bg-dark-secondary: #1e1e1e;
    --gold-primary: #ffd700;
    --gold-secondary: #ffae00;
    --text-primary: #e0e0e0;
    --text-white: #ffffff;
    --border-color: #333;
    --shadow-light: rgba(255, 215, 0, 0.1);
    --shadow-strong: rgba(255, 215, 0, 0.3);
}

/* =================================
   Reset & Pengaturan Dasar Body
   ================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* KOREKSI: Tambahkan img agar selalu responsive secara global */
img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark-primary);
    color: var(--text-primary);
    line-height: 1.6;
    padding-top: 80px; 
    width: 100%;
    overflow-x: hidden;
}

/* =================================
   Tombol CTA (Login & Daftar)
   ================================= */
/* KOREKSI: Menggabungkan styling dasar */
.btn-login, .btn-daftar {
    font-family: 'Oswald', sans-serif;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    font-size: 16px;
    /* Tambahkan style dasar yang sama pada kedua tombol */
    display: inline-block; 
}

.btn-login {
    background-color: transparent;
    color: var(--gold-primary);
    border: 2px solid var(--gold-primary);
}
.btn-login:hover {
    background-color: var(--gold-primary);
    color: #000;
}

.btn-daftar {
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-secondary));
    color: #000;
    border: 2px solid var(--gold-primary); /* Border tetap diperlukan untuk konsistensi */
    box-shadow: 0 0 10px var(--shadow-light);
}
.btn-daftar:hover {
    box-shadow: 0 0 15px var(--shadow-strong);
    transform: translateY(-2px);
}

/* =================================
   Header (Sticky)
   ================================= */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* KOREKSI: Padding untuk mengatasi padding-top body */
    padding: 15px 5%;
    /* KOREKSI: Tambahkan vendor prefix untuk kompatibilitas */
    background: rgba(18, 18, 18, 0.85); 
    -webkit-backdrop-filter: blur(10px); 
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.logo-link img {
    max-height: 50px;
    filter: drop-shadow(0 0 5px var(--shadow-light));
    transition: transform 0.3s ease;
}
.logo-link img:hover {
    transform: scale(1.05);
}

.header-nav {
    /* Hanya tampil di desktop, akan disembunyikan di media query mobile */
    display: flex; 
    gap: 15px;
}

/* =================================
   Konten Utama & Judul
   ================================= */
.container {
    max-width: 1200px;
    margin: 20px auto;
    /* KOREKSI: Padding konsisten untuk mencegah layout sempit */
    padding: 0 20px; 
}

h1, h2 {
    font-family: 'Oswald', sans-serif;
    color: var(--gold-primary);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
    text-shadow: 0 0 10px var(--shadow-light);
    overflow-wrap: break-word;
    word-break: break-word;
}
h1 { font-size: 2.8rem; margin-top: 0; } /* H1 tidak perlu margin-top karena body sudah punya padding */
h2 { font-size: 2.2rem; margin-top: 40px; }

/* =================================
   Banner Utama
   ================================= */
.top-banner {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--gold-primary);
}
.top-banner img {
    width: 100%;
    display: block;
}

/* =================================
   Grid Promo (Keren)
   ================================= */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.promo-card {
    background: var(--bg-dark-secondary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2), 0 0 5px var(--shadow-light); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4), 0 0 20px var(--shadow-strong);
}

.promo-card img {
    width: 100%;
    /* Pertahankan tinggi ini agar seragam */
    height: 200px; 
    object-fit: cover;
    display: block;
    border-bottom: 2px solid var(--gold-primary);
}

.promo-content {
    padding: 25px;
}

.promo-content h3 {
    font-family: 'Oswald', sans-serif;
    color: var(--text-white);
    font-size: 1.6rem;
    margin-bottom: 10px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.promo-content p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.promo-button {
    display: inline-block;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-secondary));
    color: #000;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 5px;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.promo-button:hover {
    box-shadow: 0 0 15px var(--shadow-strong);
    transform: scale(1.05);
}

/* =================================
   Bagian Review
   ================================= */
.reviews-section {
    background: var(--bg-dark-secondary);
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
    border: 1px solid var(--border-color);
}

/* GIF Promo */
.gif-promo-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}
.gif-promo-section img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
}

/* Header Review */
.reviews-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.reviews-title-container h2 {
    text-align: left;
    margin: 0;
    font-size: 1.8rem;
}
.learn-more {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 700;
}
.learn-more:hover { text-decoration: underline; }

/* Ringkasan Rating */
.ratings-summary {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.overall-rating {
    flex: 1;
    min-width: 200px;
    text-align: center;
}
.rating-value {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.1;
}
.rating-count {
    font-size: 0.9rem;
    opacity: 0.7;
}
.rating-breakdown {
    flex: 2;
    min-width: 300px;
}
.rating-breakdown ul {
    list-style: none;
    padding: 0;
}
.rating-breakdown li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    font-size: 0.9rem;
}
.star-label {
    color: var(--gold-primary);
    font-weight: 500;
    width: 30px;
}
.progress-bar-container {
    flex: 1;
    background: var(--bg-dark-primary);
    border-radius: 5px;
    height: 10px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background: var(--gold-primary);
    border-radius: 5px;
}
.bar-count {
    width: 50px;
    text-align: right;
    opacity: 0.7;
}

/* Star Rating (SVG) */
.stars-container {
    background: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23444' d='M8 0l2.4 4.8L16 5.6l-4 4 1 5.6L8 12.8l-5 2.4 1-5.6-4-4 5.6-.8L8 0z'/%3e%3c/svg%3e") repeat-x;
    background-size: 18px 18px;
    height: 18px;
    width: 90px;
    margin: 5px auto;
    position: relative;
}
.stars-inner {
    background: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23ffd700' d='M8 0l2.4 4.8L16 5.6l-4 4 1 5.6L8 12.8l-5 2.4 1-5.6-4-4 5.6-.8L8 0z'/%3e%3c/svg%3e") repeat-x;
    background-size: 18px 18px;
    height: 100%;
    width: 0;
    position: absolute;
    top: 0;
    left: 0;
}

/* Chart Persentase */
.percentage-charts {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 30px 0;
}
.chart-item { text-align: center; }
.chart-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--bg-dark-primary);
}
.chart-circle::before {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    background: var(--bg-dark-secondary);
    border-radius: 50%;
}
.chart-circle span {
    position: relative;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
}
.chart-label {
    margin-top: 10px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Daftar Review */
.reviews-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.reviews-list-header h3 {
    font-size: 1.3rem;
    color: var(--text-white);
    font-family: 'Roboto', sans-serif;
    text-transform: none;
    letter-spacing: 0;
}
.reviews-list-header a { color: var(--gold-primary); }

.review-card {
    background: var(--bg-dark-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}
.review-card .stars-container { margin: 0; }
.review-meta {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 5px 0 10px;
}
.review-card h4 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-white);
    margin: 0;
    font-family: 'Roboto', sans-serif;
    text-transform: none;
}
.review-card p {
    font-size: 1rem;
    margin: 10px 0;
}
.review-footer {
    font-size: 0.8rem;
    opacity: 0.5;
    border-top: 1px dashed var(--border-color);
    padding-top: 10px;
    margin-top: 10px;
}

/* =================================
   Navigasi Bawah (Mobile)
   ================================= */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-dark-secondary); 
    border-top: 1px solid var(--gold-primary);
    box-shadow: 0 -4px 15px rgba(0,0,0,0.5);
    z-index: 1000;
}
.bottom-nav .btn-login, .bottom-nav .btn-daftar {
    flex: 1;
    text-align: center;
    border-radius: 0;
    border: none;
    padding: 15px;
}
.bottom-nav .btn-login {
    background: var(--border-color); 
    color: var(--gold-primary);
    border-right: 1px solid var(--gold-primary);
}

/* =================================
   Responsif
   ================================= */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
        padding-bottom: 60px; 
    }
    .top-header { padding: 10px 15px; }
    .logo-link img { max-height: 40px; }
    .header-nav { display: none; }
    
    .bottom-nav { display: flex; }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    /* KOREKSI: Padding container dikurangi agar konten lebih lebar di HP */
    .container {
        padding: 0 10px;
    }

    .promo-grid { 
        grid-template-columns: 1fr; 
    }
    .promo-card, .promo-card:hover {
        /* Memastikan card mengisi lebar penuh dan menghapus efek hover yang menggeser */
        transform: none; 
        box-shadow: 0 4px 15px rgba(0,0,0,0.2), 0 0 5px var(--shadow-light);
    }
    .promo-card img { height: 180px; }
    
    .promo-content h3 {
        font-size: 1.4rem;
    }
    
    .ratings-summary { flex-direction: column; align-items: stretch; }
    .rating-breakdown { min-width: unset; }
    
    .gif-promo-section { grid-template-columns: 1fr; }
    
    .reviews-list-header { flex-direction: column; align-items: flex-start; gap: 5px; }
}