<?php $__env->startSection('title', 'Jenis Sampah - Edukasi Sampah'); ?>

<?php $__env->startSection('styles'); ?>
<style>
    .card-hover-eco {
        cursor: pointer;
        position: relative;
        overflow: hidden;
        border: 2px solid transparent !important;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .card-hover-eco:hover {
        transform: translateY(-10px) scale(1.03);
    }
    .category-organik:hover {
        border-color: var(--organik-color) !important;
        box-shadow: 0 20px 35px rgba(16, 185, 129, 0.25);
    }
    .category-anorganik:hover {
        border-color: var(--anorganik-color) !important;
        box-shadow: 0 20px 35px rgba(245, 158, 11, 0.25);
    }
    .category-b3:hover {
        border-color: var(--b3-color) !important;
        box-shadow: 0 20px 35px rgba(239, 68, 68, 0.25);
    }
    
    /* Animations for Kids */
    .animate-float {
        animation: kidFloat 3s ease-in-out infinite;
    }
    .animate-wiggle {
        animation: kidWiggle 1.5s ease-in-out infinite;
    }
    .animate-bounce-slow {
        animation: kidBounce 2s infinite;
    }
    .animate-pulse-slow {
        animation: kidPulse 2.5s infinite;
    }
    
    @keyframes kidFloat {
        0%, 100% { transform: translateY(0) rotate(0deg); }
        50% { transform: translateY(-12px) rotate(3deg); }
    }
    @keyframes kidWiggle {
        0%, 100% { transform: rotate(-5deg); }
        50% { transform: rotate(5deg); }
    }
    @keyframes kidBounce {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-15px); }
    }
    @keyframes kidPulse {
        0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0px rgba(0,0,0,0)); }
        50% { transform: scale(1.05); filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.5)); }
    }

    /* Kid Friendly Cards inside Modal */
    .kid-card-example {
        background: #ffffff;
        border: 2px solid #e2e8f0;
        border-radius: 1.25rem;
        padding: 1.25rem 1rem;
        text-align: center;
        transition: all 0.2s ease;
    }
    .kid-card-example:hover {
        border-color: inherit;
        transform: translateY(-5px);
    }
    .kid-card-example .emoji {
        font-size: 3rem;
        display: block;
        margin-bottom: 0.5rem;
    }
    
    /* Process Arrow for kids */
    .process-box {
        background: rgba(255, 255, 255, 0.8);
        border: 3px dashed #cbd5e1;
        border-radius: 1.5rem;
        padding: 1.5rem;
    }
    .process-item {
        font-size: 1.1rem;
        font-weight: 800;
    }
</style>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<div class="container">
    <div class="text-center mb-5">
        <span class="badge bg-success bg-opacity-10 text-success font-heading px-3 py-2 rounded-pill mb-2">Materi Edukasi 1</span>
        <h2 class="fw-bold font-heading text-success">Mengenal 3 Kategori Jenis Sampah ♻️</h2>
        <p class="text-muted col-lg-8 mx-auto mb-1">Memahami perbedaan jenis sampah adalah kunci pertama dalam sukses memilah sampah dari rumah tangga.</p>
        <span class="badge bg-warning text-dark font-heading px-3 py-1 rounded-pill mt-2 animate-bounce-slow">
            <i class="fa-solid fa-hand-pointer me-1"></i> Klik kartu di bawah untuk membuka penjelasan seru bagi anak-anak!
        </span>
    </div>

    <div class="row gy-4 mb-5">
        <!-- 1. SAMPAH ORGANIK -->
        <div class="col-lg-4">
            <div class="card card-eco card-hover-eco h-100 p-4 category-organik" data-bs-toggle="modal" data-bs-target="#modalOrganik">
                <div class="d-flex align-items-center gap-3 mb-3">
                    <div class="icon-box-lg bg-success bg-opacity-10 text-success animate-float">
                        🥬
                    </div>
                    <div>
                        <h4 class="fw-bold font-heading mb-0 text-success">Sampah Organik</h4>
                        <span class="badge bg-success text-white">Dapat Membusuk</span>
                    </div>
                </div>
                <p class="text-muted">Sampah yang berasal dari mahluk hidup (hayati) dan mudah terurai secara alami oleh mikroorganisme tanah.</p>
                <hr>
                <h6 class="fw-bold font-heading text-dark mb-2">Contoh Sampah Organik:</h6>
                <ul class="list-unstyled mb-4">
                    <li class="mb-2"><i class="fa-solid fa-circle-check text-success me-2"></i> Sisa makanan & tulang</li>
                    <li class="mb-2"><i class="fa-solid fa-circle-check text-success me-2"></i> Kulit buah & sayuran</li>
                    <li class="mb-2"><i class="fa-solid fa-circle-check text-success me-2"></i> Daun & ranting kering</li>
                    <li class="mb-2"><i class="fa-solid fa-circle-check text-success me-2"></i> Ampas kopi & teh</li>
                </ul>
                <div class="mt-auto bg-light p-3 rounded-3 border border-success border-opacity-25 text-center">
                    <small class="fw-bold text-success d-block mb-1"><i class="fa-solid fa-eye me-1"></i> Klik untuk Detail Anak SD</small>
                </div>
            </div>
        </div>

        <!-- 2. SAMPAH ANORGANIK -->
        <div class="col-lg-4">
            <div class="card card-eco card-hover-eco h-100 p-4 category-anorganik" data-bs-toggle="modal" data-bs-target="#modalAnorganik">
                <div class="d-flex align-items-center gap-3 mb-3">
                    <div class="icon-box-lg bg-warning bg-opacity-10 text-warning animate-wiggle">
                        🧴
                    </div>
                    <div>
                        <h4 class="fw-bold font-heading mb-0 text-warning">Sampah Anorganik</h4>
                        <span class="badge bg-warning text-dark">Sulit Terurai</span>
                    </div>
                </div>
                <p class="text-muted">Sampah buatan manufaktur/sintetis yang sangat sulit atau tidak dapat terurai secara alami di alam.</p>
                <hr>
                <h6 class="fw-bold font-heading text-dark mb-2">Contoh Sampah Anorganik:</h6>
                <ul class="list-unstyled mb-4">
                    <li class="mb-2"><i class="fa-solid fa-circle-check text-warning me-2"></i> Botol & gelas plastik</li>
                    <li class="mb-2"><i class="fa-solid fa-circle-check text-warning me-2"></i> Kaleng alumunium & seng</li>
                    <li class="mb-2"><i class="fa-solid fa-circle-check text-warning me-2"></i> Kemasan bungkus makanan</li>
                    <li class="mb-2"><i class="fa-solid fa-circle-check text-warning me-2"></i> Botol kaca & styrofoam</li>
                </ul>
                <div class="mt-auto bg-light p-3 rounded-3 border border-warning border-opacity-25 text-center">
                    <small class="fw-bold text-warning d-block mb-1"><i class="fa-solid fa-eye me-1"></i> Klik untuk Detail Anak SD</small>
                </div>
            </div>
        </div>

        <!-- 3. SAMPAH B3 -->
        <div class="col-lg-4">
            <div class="card card-eco card-hover-eco h-100 p-4 category-b3" data-bs-toggle="modal" data-bs-target="#modalB3">
                <div class="d-flex align-items-center gap-3 mb-3">
                    <div class="icon-box-lg bg-danger bg-opacity-10 text-danger animate-pulse-slow">
                        🔋
                    </div>
                    <div>
                        <h4 class="fw-bold font-heading mb-0 text-danger">Sampah B3</h4>
                        <span class="badge bg-danger text-white">Bahan Berbahaya</span>
                    </div>
                </div>
                <p class="text-muted">Sampah yang mengandung bahan kimia beracun dan berbahaya yang dapat merusak lingkungan & kesehatan.</p>
                <hr>
                <h6 class="fw-bold font-heading text-dark mb-2">Contoh Sampah B3:</h6>
                <ul class="list-unstyled mb-4">
                    <li class="mb-2"><i class="fa-solid fa-circle-check text-danger me-2"></i> Baterai bekas & HP rusak</li>
                    <li class="mb-2"><i class="fa-solid fa-circle-check text-danger me-2"></i> Lampu neon & bohlam</li>
                    <li class="mb-2"><i class="fa-solid fa-circle-check text-danger me-2"></i> Obat-obatan kedaluwarsa</li>
                    <li class="mb-2"><i class="fa-solid fa-circle-check text-danger me-2"></i> Botol pembasmi serangga</li>
                </ul>
                <div class="mt-auto bg-light p-3 rounded-3 border border-danger border-opacity-25 text-center">
                    <small class="fw-bold text-danger d-block mb-1"><i class="fa-solid fa-eye me-1"></i> Klik untuk Detail Anak SD</small>
                </div>
            </div>
        </div>
    </div>

    <!-- CALL TO ACTION TO QUIZ / STEP -->
    <div class="p-4 bg-success text-white rounded-4 shadow-sm text-center d-flex flex-column flex-md-row align-items-center justify-content-between gap-3">
        <div class="text-start">
            <h5 class="fw-bold font-heading mb-1">Sudah Paham Jenis Sampah? 🎓</h5>
            <p class="mb-0 text-white-50 small">Lanjut pelajari 5 langkah praktis memilah sampah di rumah!</p>
        </div>
        <a href="<?php echo e(route('cara-memilah')); ?>" class="btn btn-warning rounded-pill fw-bold text-dark px-4 flex-shrink-0">
            Lanjut ke Cara Memilah &rarr;
        </a>
    </div>
</div>

<!-- ================= MODALS FOR KIDS ================= -->

<!-- 1. MODAL ORGANIK -->
<div class="modal fade" id="modalOrganik" tabindex="-1" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered modal-lg">
        <div class="modal-content border-0 rounded-4 shadow">
            <div class="modal-header bg-success text-white py-3 rounded-top-4">
                <h4 class="modal-title fw-bold font-heading mb-0 mx-auto text-white"><span class="animate-bounce-slow d-inline-block">🥬</span> Si Organik: "Sisa Makanan yang Ramah Lingkungan"</h4>
            </div>
            <div class="modal-body p-4 text-center">
                <!-- VISUAL HEADLINE -->
                <div class="mb-4">
                    <span class="badge bg-success bg-opacity-10 text-success font-heading px-4 py-2 fs-5 rounded-pill mb-2">
                        🌟 "Bisa membusuk & dijadikan makanan tanaman!"
                    </span>
                </div>

                <!-- ANIMATED PROCESS FLOW -->
                <h5 class="fw-bold font-heading text-dark mb-3"><i class="fa-solid fa-wand-magic-sparkles text-success"></i> Proses Sihir Alami Organik:</h5>
                <div class="process-box mb-4 mx-auto" style="max-width: 600px;">
                    <div class="row align-items-center justify-content-center text-center">
                        <div class="col-4 process-item">
                            <span class="emoji-lg animate-float" style="font-size: 3rem; display:block;">🍏</span>
                            <small class="text-muted">Sisa Makanan</small>
                        </div>
                        <div class="col-4">
                            <span class="fs-4 text-success fw-bold d-block"><i class="fa-solid fa-plus"></i> 🐛 <i class="fa-solid fa-arrow-right"></i></span>
                            <small class="text-success fw-bold font-heading">Cacing Tanah</small>
                        </div>
                        <div class="col-4 process-item">
                            <span class="emoji-lg animate-bounce-slow" style="font-size: 3rem; display:block;">🌱</span>
                            <small class="text-success">Kompos Subur</small>
                        </div>
                    </div>
                </div>

                <!-- CARD GRID EXAMPLES -->
                <h5 class="fw-bold font-heading text-dark mb-3"><i class="fa-solid fa-circle-question text-success"></i> Apa Saja Contohnya?</h5>
                <div class="row g-3 mb-4" style="color: var(--organik-color);">
                    <div class="col-6 col-md-3">
                        <div class="kid-card-example border-success">
                            <span class="emoji animate-float">🍎</span>
                            <strong class="text-dark font-heading">Kulit Buah</strong>
                        </div>
                    </div>
                    <div class="col-6 col-md-3">
                        <div class="kid-card-example border-success">
                            <span class="emoji animate-wiggle">🍖</span>
                            <strong class="text-dark font-heading">Tulang Ayam</strong>
                        </div>
                    </div>
                    <div class="col-6 col-md-3">
                        <div class="kid-card-example border-success">
                            <span class="emoji animate-float">🍂</span>
                            <strong class="text-dark font-heading">Daun Kering</strong>
                        </div>
                    </div>
                    <div class="col-6 col-md-3">
                        <div class="kid-card-example border-success">
                            <span class="emoji animate-bounce-slow">🥚</span>
                            <strong class="text-dark font-heading">Cangkang Telur</strong>
                        </div>
                    </div>
                </div>

                <!-- KID FRIENDLY CALL TO ACTION -->
                <div class="alert alert-success rounded-4 border-2 border-success border-opacity-50">
                    <h5 class="fw-bold font-heading"><i class="fa-solid fa-trash-can"></i> Aksi Keren Pahlawan Lingkungan:</h5>
                    <p class="mb-0 fs-6">
                        Buang ke **Tempat Sampah Hijau 🟢** agar bisa dicampur cacing untuk menyuburkan bunga dan buah kesayanganmu!
                    </p>
                </div>
            </div>
            <div class="modal-footer border-0 justify-content-center">
                <button type="button" class="btn btn-success rounded-pill fw-bold px-5 py-2 fs-5" data-bs-dismiss="modal">
                    Aku Paham! 👍
                </button>
            </div>
        </div>
    </div>
</div>

<!-- 2. MODAL ANORGANIK -->
<div class="modal fade" id="modalAnorganik" tabindex="-1" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered modal-lg">
        <div class="modal-content border-0 rounded-4 shadow">
            <div class="modal-header bg-warning text-dark py-3 rounded-top-4">
                <h4 class="modal-title fw-bold font-heading mb-0 mx-auto text-dark"><span class="animate-wiggle d-inline-block">🧴</span> Si Anorganik: "Si Keras yang Sangat Kuat"</h4>
            </div>
            <div class="modal-body p-4 text-center">
                <!-- VISUAL HEADLINE -->
                <div class="mb-4">
                    <span class="badge bg-warning bg-opacity-10 text-warning font-heading px-4 py-2 fs-5 rounded-pill mb-2" style="color: #b45309 !important;">
                        🚨 "Tidak Bisa Hancur Selama Ratusan Tahun!"
                    </span>
                </div>

                <!-- ANIMATED PROCESS FLOW -->
                <h5 class="fw-bold font-heading text-dark mb-3"><i class="fa-solid fa-triangle-exclamation text-danger"></i> Mengapa Bahaya Jika Dibuang Sembarangan?</h5>
                <div class="process-box mb-4 mx-auto bg-danger bg-opacity-10 border-danger" style="max-width: 600px;">
                    <div class="row align-items-center justify-content-center text-center">
                        <div class="col-4 process-item">
                            <span class="emoji-lg animate-wiggle" style="font-size: 3rem; display:block;">🥤</span>
                            <small class="text-muted">Plastik Dibuang</small>
                        </div>
                        <div class="col-4">
                            <span class="fs-4 text-danger fw-bold d-block"><i class="fa-solid fa-arrow-right"></i> 🌊 <i class="fa-solid fa-arrow-right"></i></span>
                            <small class="text-danger fw-bold font-heading">Hanyut Ke Laut</small>
                        </div>
                        <div class="col-4 process-item">
                            <span class="emoji-lg animate-bounce-slow" style="font-size: 3rem; display:block;">🐢😢</span>
                            <small class="text-danger">Penyu Tersedak</small>
                        </div>
                    </div>
                </div>

                <!-- CARD GRID EXAMPLES -->
                <h5 class="fw-bold font-heading text-dark mb-3"><i class="fa-solid fa-circle-question text-warning"></i> Apa Saja Contohnya?</h5>
                <div class="row g-3 mb-4" style="color: var(--anorganik-color);">
                    <div class="col-6 col-md-3">
                        <div class="kid-card-example border-warning">
                            <span class="emoji animate-wiggle">🥤</span>
                            <strong class="text-dark font-heading">Botol Plastik</strong>
                        </div>
                    </div>
                    <div class="col-6 col-md-3">
                        <div class="kid-card-example border-warning">
                            <span class="emoji animate-float">🥫</span>
                            <strong class="text-dark font-heading">Kaleng Soda</strong>
                        </div>
                    </div>
                    <div class="col-6 col-md-3">
                        <div class="kid-card-example border-warning">
                            <span class="emoji animate-bounce-slow">🛍️</span>
                            <strong class="text-dark font-heading">Tas Kresek</strong>
                        </div>
                    </div>
                    <div class="col-6 col-md-3">
                        <div class="kid-card-example border-warning">
                            <span class="emoji animate-wiggle">📦</span>
                            <strong class="text-dark font-heading">Kardus Bekas</strong>
                        </div>
                    </div>
                </div>

                <!-- KID FRIENDLY CALL TO ACTION -->
                <div class="alert alert-warning rounded-4 border-2 border-warning border-opacity-50">
                    <h5 class="fw-bold font-heading text-dark"><i class="fa-solid fa-recycle"></i> Aksi Keren Pahlawan Lingkungan:</h5>
                    <p class="mb-0 fs-6 text-dark">
                        Masukkan ke **Tempat Sampah Kuning 🟡**! Kumpulkan yang bersih lalu bawa ke **Bank Sampah** untuk ditukar menjadi mainan atau tabungan!
                    </p>
                </div>
            </div>
            <div class="modal-footer border-0 justify-content-center">
                <button type="button" class="btn btn-warning rounded-pill fw-bold text-dark px-5 py-2 fs-5" data-bs-dismiss="modal">
                    Aku Paham! 👍
                </button>
            </div>
        </div>
    </div>
</div>

<!-- 3. MODAL B3 -->
<div class="modal fade" id="modalB3" tabindex="-1" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered modal-lg">
        <div class="modal-content border-0 rounded-4 shadow">
            <div class="modal-header bg-danger text-white py-3 rounded-top-4">
                <h4 class="modal-title fw-bold font-heading mb-0 mx-auto text-white"><span class="animate-pulse-slow d-inline-block">🔋</span> Si B3: "Si Racun Berbahaya"</h4>
            </div>
            <div class="modal-body p-4 text-center">
                <!-- VISUAL HEADLINE -->
                <div class="mb-4">
                    <span class="badge bg-danger bg-opacity-10 text-danger font-heading px-4 py-2 fs-5 rounded-pill mb-2">
                        ☠️ "BAHAYA! Jangan Disentuh Sembarangan!"
                    </span>
                </div>

                <!-- ANIMATED PROCESS FLOW -->
                <h5 class="fw-bold font-heading text-dark mb-3"><i class="fa-solid fa-triangle-exclamation text-danger"></i> Apa Akibatnya Jika Dibuang Sembarangan?</h5>
                <div class="process-box mb-4 mx-auto bg-dark bg-opacity-10 border-secondary" style="max-width: 600px;">
                    <div class="row align-items-center justify-content-center text-center">
                        <div class="col-4 process-item">
                            <span class="emoji-lg animate-pulse-slow" style="font-size: 3rem; display:block;">🔋</span>
                            <small class="text-muted">Baterai Bocor</small>
                        </div>
                        <div class="col-4">
                            <span class="fs-4 text-danger fw-bold d-block"><i class="fa-solid fa-skull"></i> 💧 <i class="fa-solid fa-arrow-right"></i></span>
                            <small class="text-danger fw-bold font-heading">Zat Kimia Merembes</small>
                        </div>
                        <div class="col-4 process-item">
                            <span class="emoji-lg animate-wiggle" style="font-size: 3rem; display:block;">🤢⛲</span>
                            <small class="text-danger">Sumur Air Beracun</small>
                        </div>
                    </div>
                </div>

                <!-- CARD GRID EXAMPLES -->
                <h5 class="fw-bold font-heading text-dark mb-3"><i class="fa-solid fa-circle-question text-danger"></i> Apa Saja Contohnya?</h5>
                <div class="row g-3 mb-4" style="color: var(--b3-color);">
                    <div class="col-6 col-md-3">
                        <div class="kid-card-example border-danger">
                            <span class="emoji animate-pulse-slow">🔋</span>
                            <strong class="text-dark font-heading">Baterai Bekas</strong>
                        </div>
                    </div>
                    <div class="col-6 col-md-3">
                        <div class="kid-card-example border-danger">
                            <span class="emoji animate-wiggle">💡</span>
                            <strong class="text-dark font-heading">Lampu Rusak</strong>
                        </div>
                    </div>
                    <div class="col-6 col-md-3">
                        <div class="kid-card-example border-danger">
                            <span class="emoji animate-bounce-slow">🧴</span>
                            <strong class="text-dark font-heading">Semprotan Nyamuk</strong>
                        </div>
                    </div>
                    <div class="col-6 col-md-3">
                        <div class="kid-card-example border-danger">
                            <span class="emoji animate-pulse-slow">💊</span>
                            <strong class="text-dark font-heading">Obat Kadaluwarsa</strong>
                        </div>
                    </div>
                </div>

                <!-- KID FRIENDLY CALL TO ACTION -->
                <div class="alert alert-danger rounded-4 border-2 border-danger border-opacity-50">
                    <h5 class="fw-bold font-heading"><i class="fa-solid fa-shield-halved"></i> Aksi Keren Pahlawan Lingkungan:</h5>
                    <p class="mb-0 fs-6">
                        Jangan dipegang sembarangan! Minta bantuan orang tuamu untuk membuangnya ke **Tempat Sampah Merah 🔴** atau Drop Box khusus B3 desa!
                    </p>
                </div>
            </div>
            <div class="modal-footer border-0 justify-content-center">
                <button type="button" class="btn btn-danger rounded-pill fw-bold px-5 py-2 fs-5" data-bs-dismiss="modal">
                    Aku Mengerti! 👍
                </button>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\ProkerKKN\resources\views/jenis-sampah.blade.php ENDPATH**/ ?>