/* --- 1. VARIABEL & RESET DASAR --- */
:root {
    --color-primary: #000000;
    --color-secondary: #00adeb;
    --color-cta: #0055fa;
    --color-text: #FFFFFF;
    --color-bg-light: #1a1a1a;
    --color-bg-dark: #000000;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--color-bg-dark);
    color: var(--color-text);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- 2. KOMPONEN UMUM --- */
.section {
    padding: 60px 0;
    text-align: center;
}

.section h2, .page-header h1 {
    font-size: 32px;
    margin-bottom: 40px;
    border-bottom: 3px solid var(--color-secondary);
    display: inline-block;
    padding-bottom: 5px;
}

.cta-button {
    background-color: var(--color-cta);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s;
    display: inline-block;
}

.cta-button:hover {
    background-color: #E03D00;
}

/* --- 3. HEADER & NAVIGASI --- */
.header {
    background-color: var(--color-primary);
    padding: 15px 0;
    border-bottom: 3px solid var(--color-secondary);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--color-secondary);
    text-decoration: none;
}

.search-bar {
    flex-grow: 1;
    margin: 0 40px;
}

.search-bar input {
    width: 80%;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background-color: var(--color-bg-light);
    color: var(--color-text);
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
}

/* Sub-navigasi di bawah header */
.sub-nav {
    background-color: var(--color-bg-light); 
    padding: 10px 0;
}
.sub-nav a {
    text-transform: uppercase;
    font-weight: bold;
    color: #ccc;
    margin: 0 15px;
    text-decoration: none;
}
.sub-nav span {
    color: #444;
}

/* --- 4. HERO BANNER --- */
.hero-banner {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.8)), url('../images/hero-banner.jpg') center/cover no-repeat;
    padding: 100px 0;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text h1 {
    font-size: 48px;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* --- 5. PRODUK & GRID --- */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.product-card {
    background-color: var(--color-bg-light);
    padding: 20px;
    border-radius: 8px;
    width: calc(25% - 15px); /* 4 kolom */
    text-align: left;
    /* --- EDIT BARU: Mengaktifkan Flexbox untuk menyamakan tinggi tombol --- */
    display: flex; 
    flex-direction: column; 
    /* ------------------------------------------------------------------- */
}
.product-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.product-card h3 {
    color: var(--color-secondary);
    margin-top: 0;
    font-size: 18px;
}

/* Tambahan CSS untuk tombol CTA di dalam product card */
.product-card .cta-button {
    padding: 8px 15px;
    font-size: 14px;
    /* EDIT BARU: Dorong tombol ke bawah */
    margin-top: auto; 
    /* ---------------------------------- */
    margin-bottom: 0; 
    text-align: center;
}

.product-card p {
    color: #ccc;
    margin-bottom: 15px;
}

/* --- 6. PEMBAYARAN --- */
.payment-section {
    background-color: var(--color-bg-light);
    padding: 40px 0;
}

.payment-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}
.payment-icons img {
    height: 40px;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.payment-icons img:hover {
    opacity: 1;
}

/* --- 7. FOOTER & COPYRIGHT --- */
.footer {
    background-color: var(--color-primary);
    padding: 40px 0 10px 0;
    font-size: 14px;
    color: #aaa;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    text-align: left;
    margin-bottom: 30px;
}

.footer-column h4 {
    color: var(--color-secondary);
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-column a {
    display: block;
    color: #aaa;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--color-secondary);
}

.copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 10px;
    margin-top: 20px;
}

.copyright span {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* --- 8. STYLES KHUSUS HALAMAN --- */

/* Halaman Katalog (Game Lokal) */
.page-header {
    background-color: var(--color-bg-light);
    padding: 40px 0;
    text-align: center;
    border-bottom: 2px solid var(--color-secondary);
}
.catalog-layout {
    display: flex;
    gap: 30px;
    padding: 40px 0;
}
.sidebar {
    width: 25%;
    background-color: var(--color-bg-light);
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
}
.sidebar h4 {
    color: var(--color-secondary);
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
}
.main-catalog {
    width: 75%;
}
.product-grid-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* Halaman FAQ & TOS */
.content-page {
    padding: 60px 0;
    line-height: 1.8;
    color: #ccc;
    text-align: left;
}
.content-page h2 {
    color: white;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
    margin-top: 40px;
    font-size: 24px;
}

.faq-question {
    padding: 15px 20px;
    background-color: #333;
    cursor: pointer;
    font-weight: bold;
    color: white;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1px;
    border-radius: 5px;
}
.faq-answer {
    padding: 15px 20px;
    background-color: var(--color-bg-light);
    color: #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* --- 9. RESPONSIVE DESIGN (DASAR) --- */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    .search-bar {
        margin: 0;
        width: 100%;
    }
    .search-bar input {
        width: 95%;
    }
    .product-card {
        width: calc(50% - 10px); /* 2 kolom di HP */
    }
    .footer-grid {
        flex-direction: column;
        gap: 20px;
    }
    .catalog-layout {
        flex-direction: column;
    }
    .sidebar, .main-catalog {
        width: 100%;
    }
}