/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: white;
    padding-bottom: 70px; /* Space for bottom nav */
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #000;
}
.logo { font-size: 22px; font-weight: bold; color: #FFD700; }
.logo span { color: white; }

/* Hero Section */
.banner-placeholder {
    height: 220px;
    background: linear-gradient(to right, #333, #111);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.banner-placeholder h2 { color: #fff; font-size: 28px; text-shadow: 2px 2px 4px #000; }

/* Buttons */
.auth-buttons { display: flex; }
.auth-buttons button {
    flex: 1; padding: 15px; border: none; font-weight: bold; font-size: 16px; cursor: pointer;
}
.btn-login { background-color: #FFD700; color: black; }
.btn-register { background-color: #FFB300; color: black; }

/* Ticker & Categories */
.ticker { background-color: #222; padding: 10px; font-size: 13px; color: #ddd; border-bottom: 1px solid #444; }
.categories {
    display: flex; overflow-x: auto; padding: 15px 10px; background-color: #d4af37; color: black; gap: 15px;
}
.categories::-webkit-scrollbar { display: none; } /* Hide scrollbar */
.cat-item { min-width: 70px; text-align: center; font-size: 12px; font-weight: bold; }
.cat-item span { font-size: 24px; }

/* Highlight Banner */
.highlight-banner {
    margin: 15px; padding: 20px; border: 3px solid #FFD700; border-radius: 8px;
    text-align: center; background-color: #000; box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
.highlight-banner h2 { color: #FFD700; font-size: 24px; margin-bottom: 10px; text-shadow: 0 0 5px #FFD700; }
.highlight-banner p { font-size: 20px; font-weight: bold; }

/* Item Grid (Horizontal Scroll) */
.item-section { padding: 15px; }
.item-section h3 { color: #FFD700; font-size: 14px; margin-bottom: 15px; text-transform: uppercase; font-weight: normal; }
.item-grid { display: flex; overflow-x: auto; gap: 12px; padding-bottom: 10px; }
.item-grid::-webkit-scrollbar { display: none; }
.item-card { min-width: 110px; background-color: #1e1e1e; border-radius: 8px; overflow: hidden; }
.image-placeholder { height: 110px; background-color: #444; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #aaa; }
.item-info { padding: 8px; font-size: 11px; text-align: center; }
.item-info span { color: #aaa; }

/* Bottom Navigation */
.bottom-nav {
    position: fixed; bottom: 0; width: 100%; background-color: #222;
    display: flex; justify-content: space-around; padding: 10px 0; border-top: 1px solid #444; z-index: 1000;
}
.nav-item { text-align: center; font-size: 11px; color: #aaa; cursor: pointer; }

/* Styling Modal (Pop-up) */
.modal {
    display: none; /* Sembunyikan secara default */
    position: fixed; z-index: 2000; left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}
.modal-content {
    background-color: #222; margin: 20% auto; padding: 20px;
    border: 1px solid #FFD700; width: 80%; max-width: 400px;
    border-radius: 10px; color: white; text-align: center;
}
.close-btn {
    color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer;
}
.close-btn:hover { color: #FFD700; }
.modal-content input {
    width: 100%; padding: 10px; margin: 10px 0;
    border: none; border-radius: 5px; background: #333; color: white;
}
.btn-submit {
    width: 100%; padding: 10px; background-color: #FFD700;
    border: none; border-radius: 5px; font-weight: bold; cursor: pointer;
}

/* --- Banner Slider Custom --- */
.banner-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #000;
    overflow: hidden;
    text-align: center;
}

.banner-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}

/* Memindahkan teks overlay ke bagian bawah banner agar tidak menutupi gambar */
.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.40); /* Latar belakang gelap semi-transparan */
    padding: 10px;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
    border-top: 2px solid #FFD700;
}

.banner-overlay h2 {
    color: #FFD700;
    font-size: 16px; /* Ukuran disesuaikan agar pas di bawah */
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.banner-overlay p {
    color: #ffffff;
    font-size: 12px; /* Ukuran disesuaikan */
    margin-top: 3px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}