/* RESET SEDERHANA */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* HEADER */
.header {
    background-color: #ffffff; /* Putih */
    color: #004d99; /* Biru Gelap - untuk teks */
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 40px; /* Ukuran Logo Sesuai Ilustrasi */
    height: 40px;
    margin-right: 15px;
}

.site-title h1 {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 2px;
}

.site-title p {
    font-size: 0.7em;
    color: #555;
}

.menu-icon {
    font-size: 1.5em;
    cursor: pointer;
}

/* MAIN CONTENT - AREA PENCARIAN */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.search-area {
    position: relative;
    background: url('background-leaf.jpg') no-repeat center center; /* Ganti dengan gambar kamu */
    background-size: cover;
    padding: 100px 20px 50px;
    text-align: center;
    color: white;
}

/* Overlay untuk memberi efek gelap pada gambar latar belakang */
.search-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4); /* Overlay gelap */
    z-index: 1;
}

.search-title, .search-instruction, .search-form, .advanced-search {
    position: relative;
    z-index: 2; /* Pastikan elemen-elemen ini di atas overlay */
}

.search-title {
    font-size: 2.5em;
    font-weight: 300;
    margin-bottom: 5px;
    letter-spacing: 5px;
}

.search-instruction {
    font-size: 0.9em;
    margin-bottom: 25px;
}

.search-form {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    width: 100%;
    max-width: 600px; /* Lebar maksimum form */
    margin-left: auto;
    margin-right: auto;
}

.search-input {
    padding: 15px;
    font-size: 1em;
    border: none;
    border-radius: 5px 0 0 5px;
    width: 80%;
    outline: none;
}

.search-button {
    background-color: #004d99; /* Biru Tua */
    color: white;
    padding: 15px 20px;
    font-size: 1em;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s; /* Transisi dan Hover */
}

.search-button:hover {
    background-color: #003366;
    transform: scale(1.05); /* Sedikit membesar saat disentuh */
}

.advanced-search {
    color: #90ee90; /* Hijau muda */
    text-decoration: none;
    font-size: 0.8em;
}

/* BOOK CAROUSEL */
.book-carousel-container {
    background-color: #212121; /* Warna strip hitam/gelap di bawah */
    padding: 20px 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.nav-arrow {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2em;
    padding: 10px;
    cursor: pointer;
    z-index: 3;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.nav-arrow:hover {
    opacity: 1;
}

.left-arrow {
    left: 0;
}

.right-arrow {
    right: 0;
}

.book-carousel {
    display: flex;
    overflow-x: scroll; /* PENTING: Membuatnya bisa di-scroll secara horizontal */
    scroll-behavior: smooth;
    gap: 15px;
    padding: 0 50px; /* Ruang untuk panah */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.book-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.book-item img {
    width: 120px; /* Ukuran buku yang proporsional */
    height: 180px;
    display: block;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    transition: transform 0.3s, box-shadow 0.3s; /* Transisi yang halus */
}

.book-item img:hover {
    transform: translateY(-8px) scale(1.05); /* Sedikit naik dan membesar */
    box-shadow: 0 10px 20px rgba(0,0,0,0.8); /* Bayangan lebih gelap */
}

.slims-info {
    background-color: #111;
    color: #aaa;
    font-size: 0.7em;
    padding: 5px 20px;
    text-align: left;
}

/* FOOTER */
.footer {
    background-color: #333333; /* Abu-abu Gelap */
    color: white;
    padding: 10px 20px;
    text-align: center;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-size: 0.8em;
    margin: 0 10px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* RESPONSIFITAS (Media Queries) */
@media (max-width: 768px) {
    /* Untuk tablet dan layar kecil */
    
    .search-area {
        padding: 60px 10px 30px; /* Kurangi padding */
    }

    .search-title {
        font-size: 1.8em;
    }

    /* Gabungkan input dan tombol pada form secara vertikal */
    .search-form {
        flex-direction: column;
        max-width: 90%;
    }

    .search-input {
        width: 100%;
        border-radius: 5px 5px 0 0; /* Ubah border radius */
        margin-bottom: 0;
        padding: 12px;
    }

    .search-button {
        width: 100%;
        border-radius: 0 0 5px 5px; /* Ubah border radius */
        padding: 12px;
    }
    
    /* Carousel */
    .book-item img {
        width: 90px; /* Perkecil ukuran buku */
        height: 135px;
    }

    /* Footer */
    .footer-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .footer-nav a {
        font-size: 0.7em;
        margin: 0 5px;
    }
}

@media (max-width: 480px) {
    /* Untuk layar ponsel sangat kecil */
    
    .header {
        padding: 10px;
    }
    
    .site-title h1 {
        font-size: 0.9em;
    }

    .site-title p {
        font-size: 0.6em;
    }
}