/* style.css - Pusat visual! Bergaya 3D, Multi-halaman, dan Animasi penuh! */

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0fdf4; 
    color: #166534; 
    overflow-x: hidden; 
    transition: background-color 0.5s ease, color 0.5s ease; 
}

body.mode-malam {
    background-color: #0f172a; 
    color: #e2e8f0; 
}
body.mode-malam .kartu-informasi,
body.mode-malam .area-jurnal,
body.mode-malam .pot-tanaman,
body.mode-malam .area-atap,
body.mode-malam .buku-3d {
    background-color: #1e293b; 
    box-shadow: 0 10px 0 #0b1120; 
    color: #f8fafc;
}
body.mode-malam .judul-goyang, body.mode-malam .judul-rak { color: #38bdf8; }
body.mode-malam .sub-judul, body.mode-malam .intro-teks { color: #94a3b8; }
body.mode-malam .matahari {
    background-color: #f1f5f9;
    box-shadow: inset -15px -15px 0 #cbd5e1, 0 0 40px #e2e8f0;
    animation: none; 
}

.matahari {
    position: absolute; top: -30px; right: -30px; width: 150px; height: 150px;
    background-color: #fde047; border-radius: 50%; 
    animation: denyutCahaya 3s ease-in-out infinite alternate; 
    z-index: -1; transition: all 0.8s ease; 
}
@keyframes denyutCahaya {
    0% { transform: scale(1); box-shadow: 0 0 30px #facc15, 0 0 60px #eab308; }
    100% { transform: scale(1.1); box-shadow: 0 0 50px #facc15, 0 0 100px #eab308; }
}

.wadah-utama { max-width: 900px; margin: 0 auto; padding: 30px; text-align: center; }

.tombol-cuaca {
    background-color: #4f46e5; color: white; border: none; padding: 10px 20px;
    border-radius: 30px; font-weight: bold; cursor: pointer; margin-bottom: 20px;
    box-shadow: 0 6px 0 #3730a3; transition: all 0.2s;
}
.tombol-cuaca:active { transform: translateY(6px); box-shadow: 0 0 0 #3730a3; }

.kepala-halaman { margin-bottom: 30px; }

@keyframes mengambang {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.judul-goyang { font-size: 2.8rem; color: #ef4444; animation: mengambang 3s ease-in-out infinite; transition: color 0.5s; }
.sub-judul { font-size: 1.2rem; color: #15803d; font-weight: bold; transition: color 0.5s; }

/* --- GAYA MENU NAVIGASI UTAMA --- */
.menu-navigasi {
    display: flex; justify-content: center; gap: 15px; margin-bottom: 20px; flex-wrap: wrap;
}
.tombol-menu {
    text-decoration: none; background-color: #ffffff; color: #047857;
    padding: 12px 25px; border-radius: 20px; font-weight: bold; font-size: 1.1rem;
    box-shadow: 0 6px 0 #cbd5e1; transition: all 0.2s; border: 2px solid transparent;
}
.tombol-menu:hover { transform: translateY(2px); box-shadow: 0 4px 0 #cbd5e1; }
.tombol-menu:active { transform: translateY(6px); box-shadow: 0 0 0 #cbd5e1; }
.tombol-menu.aktif { background-color: #10b981; color: white; box-shadow: 0 6px 0 #059669; }

body.mode-malam .tombol-menu { background-color: #1e293b; color: #f8fafc; box-shadow: 0 6px 0 #0f172a; }
body.mode-malam .tombol-menu.aktif { background-color: #3b82f6; box-shadow: 0 6px 0 #1d4ed8; }

/* --- GAYA SUB-MENU --- */
.sub-menu-navigasi {
    display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap;
}
.tombol-sub-menu {
    text-decoration: none; background-color: #f1f5f9; color: #475569;
    padding: 8px 18px; border-radius: 15px; font-weight: bold; font-size: 0.95rem;
    box-shadow: 0 4px 0 #cbd5e1; transition: all 0.2s;
}
.tombol-sub-menu:hover { transform: translateY(2px); box-shadow: 0 2px 0 #cbd5e1; }
.tombol-sub-menu:active { transform: translateY(4px); box-shadow: 0 0 0 #cbd5e1; }
.tombol-sub-menu.aktif { background-color: #f59e0b; color: white; box-shadow: 0 4px 0 #d97706; }

body.mode-malam .tombol-sub-menu { background-color: #334155; color: #cbd5e1; box-shadow: 0 4px 0 #0f172a; }
body.mode-malam .tombol-sub-menu.aktif { background-color: #d97706; color: white; box-shadow: 0 4px 0 #92400e; }
/* --------------------------------- */

.area-bunga-ajaib { margin-bottom: 50px; }
.warna-bunga { border-bottom: 8px solid #d946ef; margin: 0 auto; width: 250px; }
.glowing-bunga { animation: cahayaBunga 2s infinite alternate; }
@keyframes cahayaBunga {
    0% { box-shadow: 0 10px 0 #0b1120, 0 0 20px #f0abfc; }
    100% { box-shadow: 0 10px 0 #0b1120, 0 0 60px #d946ef; }
}
.efek-tumbuh { animation: membalTumbuh 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes membalTumbuh {
    0% { transform: scale(0.5); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.area-buku-panduan { margin-bottom: 50px; }
.buku-3d {
    background-color: #ffffff; border-radius: 30px; padding: 30px;
    box-shadow: 0 12px 0 rgba(0,0,0,0.08); transition: all 0.5s; text-align: left; 
}
.sampul-buku { margin-bottom: 30px; border-bottom: 4px dashed #cbd5e1; padding-bottom: 20px; }
.sampul-buku h3 { font-size: 1.8rem; color: #d946ef; margin-bottom: 10px; margin-top: 0; }
.sampul-buku p { font-weight: bold; color: #0f766e; font-size: 1.1rem; }
.intro-teks { font-weight: normal !important; color: #475569 !important; line-height: 1.6; }
.daftar-laci { display: flex; flex-direction: column; gap: 15px; }
.laci-bab { border-radius: 15px; overflow: hidden; }
.tombol-laci {
    width: 100%; text-align: left; background-color: #fbbf24; color: #78350f;
    border: none; padding: 20px; font-size: 1.2rem; font-weight: bold;
    cursor: pointer; border-radius: 15px; box-shadow: 0 6px 0 #d97706; transition: all 0.2s;
}
.tombol-laci:active { transform: translateY(6px); box-shadow: 0 0 0 #d97706; }
.tombol-laci.terbuka {
    background-color: #f59e0b; box-shadow: 0 2px 0 #b45309;
    transform: translateY(4px); border-bottom-left-radius: 0; border-bottom-right-radius: 0;
}
.isi-laci {
    max-height: 0; overflow: hidden; background-color: #fef3c7; color: #92400e; 
    border-radius: 0 0 15px 15px; transition: max-height 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
body.mode-malam .isi-laci { background-color: #334155; color: #f1f5f9; }
.isi-laci ul { padding: 20px 40px; margin: 0; line-height: 1.6; font-size: 1.05rem; }

.area-kebun { margin-bottom: 50px; }
.judul-rak { font-size: 2rem; color: #065f46; margin-bottom: 20px; transition: color 0.5s;}
.rak-tanaman { display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; }
.pot-tanaman {
    background-color: white; width: 200px; padding: 25px 15px; border-radius: 30px;
    box-shadow: 0 10px 0 rgba(0,0,0,0.1); cursor: pointer; transition: all 0.2s ease;
}
.pot-tanaman:active { transform: translateY(10px); box-shadow: 0 0 0 rgba(0,0,0,0.1); }
.ikon-tanaman { font-size: 4rem; margin-bottom: 10px; display: inline-block; }
.warna-tomat { border-bottom: 8px solid #f87171; }
.warna-cabai { border-bottom: 8px solid #fb923c; }
.warna-perawatan { border-bottom: 8px solid #2dd4bf; }

@keyframes goyang {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    50% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
    100% { transform: rotate(0deg); }
}
.animasi-panen { animation: goyang 0.5s ease-in-out; }

.area-jurnal {
    background-color: #ffffff; border-radius: 30px; padding: 30px;
    box-shadow: 0 12px 0 rgba(0,0,0,0.08); margin-bottom: 40px; transition: all 0.5s;
}
.wadah-input { display: flex; justify-content: center; gap: 15px; margin-bottom: 20px; flex-wrap: wrap; }
.kotak-ketik {
    padding: 15px; width: 300px; border-radius: 15px; border: 3px solid #bbf7d0;
    font-size: 1rem; font-family: inherit; outline: none; background-color: transparent; color: inherit;
}
.kotak-ketik:focus { border-color: #22c55e; }
.tombol-simpan {
    background-color: #22c55e; color: white; border: none; padding: 15px 25px;
    border-radius: 15px; font-size: 1rem; font-weight: bold; cursor: pointer;
    box-shadow: 0 6px 0 #16a34a; transition: all 0.2s;
}
.tombol-simpan:active { transform: translateY(6px); box-shadow: 0 0 0 #16a34a; }
.papan-catatan { list-style-type: none; padding: 0; text-align: left; max-width: 500px; margin: 0 auto; }
.kertas-catatan {
    background-color: #fef08a; padding: 15px; margin-bottom: 15px; border-radius: 15px;
    color: #854d0e; border-left: 8px solid #eab308; box-shadow: 0 6px 0 rgba(0,0,0,0.1);
    animation: munculCatatan 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
@keyframes munculCatatan {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.area-atap {
    background-color: #ffffff; border-radius: 30px; padding: 30px;
    box-shadow: 0 12px 0 rgba(0,0,0,0.08); margin-bottom: 40px; transition: all 0.5s;
}
.panel-struktur {
    display: flex; justify-content: center; gap: 15px; margin-bottom: 25px; flex-wrap: wrap;
}
.tombol-struktur {
    background-color: #94a3b8; color: white; border: none; padding: 12px 20px;
    border-radius: 15px; font-weight: bold; cursor: pointer;
    box-shadow: 0 6px 0 #475569; transition: all 0.2s;
}
.tombol-struktur.aktif {
    background-color: #10b981; box-shadow: 0 2px 0 #059669; transform: translateY(4px);
    pointer-events: none; 
}
.atap-lemah {
    height: 120px; background-color: #e2e8f0; border-radius: 15px 15px 100px 100px; 
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
    font-weight: bold; color: #64748b; border: 4px dashed #94a3b8; 
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55); 
}
.atap-lemah.kokoh {
    border-radius: 15px; background-color: #22c55e; color: white; border: 4px solid #15803d;
    box-shadow: 0 20px 0 #166534; font-size: 1.5rem;
}

.area-tombol { 
    margin-top: 30px; margin-bottom: 50px; 
    display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
}
.tombol-tanam {
    background-color: #f97316; color: white; border: none; padding: 15px 35px;
    font-size: 1.4rem; border-radius: 50px; cursor: pointer; font-weight: bold;
    box-shadow: 0 8px 0 #c2410c; transition: all 0.2s; 
}
.tombol-tanam:active { transform: translateY(8px); box-shadow: 0 0 0 #c2410c; }
.tombol-air {
    background-color: #0ea5e9; color: white; border: none; padding: 15px 35px;
    font-size: 1.4rem; border-radius: 50px; cursor: pointer; font-weight: bold;
    box-shadow: 0 8px 0 #0369a1; transition: all 0.2s; 
}
.tombol-air:active { transform: translateY(8px); box-shadow: 0 0 0 #0369a1; }

.tetesan-air {
    position: fixed; top: -50px; width: 15px; height: 30px; background-color: #7dd3fc;
    border-radius: 50px; box-shadow: inset -4px -4px 0 rgba(0,0,0,0.15); 
    z-index: 10; pointer-events: none; animation: jatuhHujan 1s linear forwards; 
}
@keyframes jatuhHujan {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(110vh) scale(0.5); opacity: 0; }
}
.daun-animasi {
    position: fixed; top: -50px; font-size: 2rem;
    animation: jatuhDaun 4s linear forwards; z-index: 10; pointer-events: none; 
}
@keyframes jatuhDaun {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

.kaki-halaman {
    margin-top: 40px; padding-top: 20px; text-align: center;
    font-size: 1.1rem; color: #64748b; border-top: 2px dashed #cbd5e1; 
    transition: color 0.5s, border-color 0.5s;
}
body.mode-malam .kaki-halaman { color: #94a3b8; border-top: 2px dashed #334155; }
.hati-berdetak {
    display: inline-block; color: #ef4444; animation: detak 1s infinite ease-in-out; 
}
@keyframes detak {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}