:root {
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --gold: #d4af37;
}

body {
    background: #0f172a;
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

.background-blob {
    position: fixed;
    top: -10%; left: -10%;
    width: 300px; height: 300px;
    background: var(--gold);
    filter: blur(150px);
    opacity: 0.2;
    z-index: -1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    padding-bottom: 100px; /* Memberi ruang agar tidak tertutup navbar bawah */
}

header { text-align: center; margin-bottom: 3rem; }
header h1 span { color: var(--gold); margin-left: 10px; }

/* Landing Page */
.landing-view {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 80vh;
    animation: fadeIn 1s ease;
}

.landing-view h1 {
    font-size: 2.5rem;
}

.landing-desc {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 500px;
    line-height: 1.8;
    margin: 1rem 0 2rem 0;
}

.btn-start {
    background-color: var(--gold);
    color: #0f172a;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-start:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.search-box input {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--glass);
    color: white;
    backdrop-filter: blur(10px);
}

.hadits-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    transition: 0.3s;
    cursor: pointer;
}

.hadits-card:hover { border-color: var(--gold); transform: translateY(-5px); }

.arabic {
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    text-align: right;
    line-height: 2.5;
    margin: 1rem 0;
    color: #fff;
}

.translation { color: #94a3b8; font-style: italic; }

.btn-syarah {
    margin-top: 1rem;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
}

/* Daftar Isi (Table of Contents) */
.toc-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 2rem;
}

.toc-item {
    background: var(--glass);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.toc-item:hover {
    border-color: var(--gold);
    transform: translateX(5px);
}

.toc-number {
    background-color: var(--gold);
    color: #0f172a;
    font-weight: bold;
    min-width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Detail View */
.hidden { display: none; }
.detail-view { animation: fadeIn 0.5s ease; }

.section-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    border-left: 3px solid var(--gold);
}

.label {
    display: block;
    font-size: 0.8rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.sanad-text { font-style: italic; color: #cbd5e1; line-height: 1.6; }
.syarah-content { line-height: 1.8; color: #e2e8f0; }

.btn-back {
    background: transparent;
    color: var(--gold);
    border: none;
    cursor: pointer;
    margin-bottom: 20px;
    font-size: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto 2rem auto;
}

#searchInput {
    width: 100%;
    padding: 15px 20px;
    border-radius: 30px;
    border: 1px solid var(--border);
    background: var(--glass);
    color: white;
    backdrop-filter: blur(10px);
    outline: none;
    transition: 0.3s;
}

#searchInput:focus {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* Style untuk hasil pencarian instan */
.suggestions {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border);
    border-radius: 15px;
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    backdrop-filter: blur(20px);
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
}

.suggestion-item:hover {
    background: var(--glass);
    color: var(--gold);
}

/* Biography View */
.biography-view, .foreword-view, .support-view {
    animation: fadeIn 0.5s ease;
}

.biography-view h2, .foreword-view h2, .support-view h2 {
    color: var(--gold);
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 1rem;
}

.biography-view p, .biography-view li, .foreword-view p, .foreword-view li, .foreword-view blockquote, .support-view p {
    line-height: 1.8;
    color: #cbd5e1;
}

.biography-view ul, .foreword-view ul {
    padding-left: 20px;
}

/* Bottom Navbar */
.bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.8); /* semi-transparent background */
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    z-index: 200;
}

.nav-btn {
    background: none;
    border: none;
    color: #94a3b8; /* a bit muted */
    cursor: pointer;
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 8px;
    transition: color 0.3s, background-color 0.3s;
    text-decoration: none;
}

.nav-btn.active {
    color: var(--gold);
    background-color: var(--glass);
}