* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background-color: #f8f9fa; color: #333; line-height: 1.6; }
.navbar { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.nav-container { max-width: 900px; margin: 0 auto; padding: 15px 20px; display: flex; align-items: center; }
.logo { text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-icon { font-size: 24px; }
.logo-text { font-size: 22px; font-weight: 800; color: #111; letter-spacing: -0.5px; }
.main-content { max-width: 800px; margin: 40px auto; padding: 0 20px; text-align: center; }
.hero h1 { font-size: 2.2rem; color: #ffffff; margin-bottom: 10px; font-weight: 800; }
.hero p { font-size: 1.1rem; color: #fff3f3; margin-bottom: 30px; }
.search-container { max-width: 600px; margin: 0 auto; }
.input-group { display: flex; background: #fff; border-radius: 8px; box-shadow: 0 8px 20px rgba(0,0,0,0.08); overflow: hidden; border: 2px solid #3b82f6; }
.input-group input { flex: 1; border: none; padding: 18px 20px; font-size: 16px; outline: none; }
.input-group button { background: #3b82f6; color: white; border: none; padding: 0 30px; font-size: 16px; font-weight: bold; cursor: pointer; transition: background 0.2s; }
.input-group button:hover { background: #2563eb; }

#result { margin-top: 40px; }
.result-card { background: #fff; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); padding: 20px; text-align: left; display: flex; flex-direction: column; gap: 20px; max-width: 600px; margin: 0 auto; }
.result-header { display: flex; flex-direction: column; gap: 5px; }
.result-title { font-size: 16px; font-weight: 600; color: #222; }
.result-author { color: #666; font-size: 14px; }

.media-preview { display: flex; gap: 15px; align-items: center; background: #f1f5f9; padding: 10px; border-radius: 8px; }
.media-preview img { width: 100px; height: 100px; object-fit: cover; border-radius: 6px; }
.media-preview video { width: 100%; max-height: 400px; border-radius: 8px; background: #000; }

.action-buttons { display: flex; flex-direction: column; gap: 10px; }
.btn-download-video { display: block; text-align: center; background: #10b981; color: white; text-decoration: none; padding: 12px; border-radius: 8px; font-weight: bold; transition: background 0.2s; }
.btn-download-video:hover { background: #059669; }

.btn-download-audio { display: block; text-align: center; background: #8b5cf6; color: white; text-decoration: none; padding: 12px; border-radius: 8px; font-weight: bold; transition: background 0.2s; }
.btn-download-audio:hover { background: #7c3aed; }

/* Kotak JSON */
.json-container { margin-top: 20px; text-align: left; background: #1e293b; color: #38bdf8; padding: 15px; border-radius: 8px; font-family: monospace; font-size: 13px; max-height: 250px; overflow-y: auto; }

.badge { display: inline-block; padding: 4px 10px; background: #e0f2fe; color: #0369a1; border-radius: 20px; font-size: 12px; font-weight: 600; width: fit-content; }
.loading { color: #555; font-size: 16px; font-weight: 500; }
.error { color: #ef4444; background: #fee2e2; padding: 15px; border-radius: 8px; font-weight: 500; }

@media (max-width: 600px) {
    .input-group { flex-direction: column; border: none; background: transparent; box-shadow: none; gap: 10px; }
    .input-group input { border-radius: 8px; border: 2px solid #ccc; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
    .input-group button { padding: 16px; border-radius: 8px; }
    .hero h1 { font-size: 1.8rem; }
    .media-preview { flex-direction: column; text-align: center; }
}

/* =========================
   FOOTER
========================= */

.footer {
    width: 100%;
    margin-top: 80px;
    padding: 25px 20px;
    box-sizing: border-box;
    background: #111827;
    color: #ffffff;
    text-align: center;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
}

.footer p {
    margin: 5px 0;
    font-size: 14px;
}

.footer-subtitle {
    margin-top: 8px !important;
    font-size: 13px !important;
    opacity: 0.7;
}


/* =========================
   MENU POJOK KIRI ATAS
========================= */

.nav-container {
    position: relative;
    display: flex;
    align-items: center;
}

.menu-wrapper {
    position: relative;
    margin-right: 15px;
}

.menu-button {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: #f3f4f6;
    color: #111827;
    font-size: 22px;
    cursor: pointer;
    transition: 0.2s;
}

.menu-button:hover {
    background: #e5e7eb;
}

.menu-dropdown {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    width: 210px;
    background: #ffffff;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 9999;
}

.menu-dropdown.show {
    display: block;
}

.menu-dropdown button {
    width: 100%;
    border: none;
    background: transparent;
    padding: 12px 14px;
    text-align: left;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.menu-dropdown button:hover {
    background: #f3f4f6;
}

/* =========================
   REPORT MASALAH
========================= */

.report-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.report-overlay.show {
    display: flex;
}

.report-box {
    position: relative;
    width: 100%;
    max-width: 450px;
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    box-sizing: border-box;
    box-shadow: 0 15px 50px rgba(0,0,0,0.25);
}

.report-box h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.report-box p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

.report-box label {
    display: block;
    margin-top: 15px;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

.report-box input,
.report-box select,
.report-box textarea {
    width: 100%;
    padding: 11px;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
}

.report-box textarea {
    resize: vertical;
}

.report-close {
    position: absolute;
    top: 12px;
    right: 15px;
    border: none;
    background: none;
    font-size: 27px;
    cursor: pointer;
    color: #6b7280;
}

.report-submit {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.report-submit:hover {
    background: #1d4ed8;
}

/* ### Background Image */
body {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;

    transition: background-image 1s ease-in-out;
}

/* =========================
   CARA PENGGUNAAN
========================= */

.how-to-use {
    max-width: 1100px;
    margin: 80px auto 0;
    padding: 0 20px;
}


.section-title {
    text-align: center;
    margin-bottom: 35px;
}


.section-title > span {
    display: inline-block;

    padding: 7px 14px;

    border-radius: 999px;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;

    color: #ffffff;

    background:
        rgba(255,255,255,0.10);

    border:
        1px solid rgba(255,255,255,0.16);
}


.section-title h2 {
    margin-top: 15px;

    font-size:
        clamp(28px, 5vw, 42px);

    font-weight: 900;

    color: #ffffff;
}


.section-title p {
    max-width: 600px;

    margin: 10px auto 0;

    color:
        rgba(255,255,255,0.65);

    font-size: 14px;
}


.steps-container {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 16px;
}


.step-card {
    position: relative;

    padding: 25px 20px;

    border-radius: 20px;

    background:
        rgba(255,255,255,0.09);

    border:
        1px solid rgba(255,255,255,0.13);

    backdrop-filter: blur(18px);

    text-align: center;

    overflow: hidden;

    transition:
        transform 0.25s,
        background 0.25s;
}


.step-card:hover {
    transform: translateY(-7px);

    background:
        rgba(255,255,255,0.14);
}


.step-number {
    position: absolute;

    top: 12px;
    right: 15px;

    font-size: 11px;

    font-weight: 900;

    color:
        rgba(255,255,255,0.25);
}


.step-icon {
    width: 60px;
    height: 60px;

    display: grid;

    place-items: center;

    margin: 5px auto 18px;

    border-radius: 17px;

    font-size: 27px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #7c3aed,
            #ec4899
        );

    box-shadow:
        0 12px 30px
        rgba(124,58,237,0.25);
}


.step-card h3 {
    margin-bottom: 9px;

    color: #ffffff;

    font-size: 16px;
}


.step-card p {
    color:
        rgba(255,255,255,0.60);

    font-size: 13px;

    line-height: 1.7;
}


@media (max-width: 900px) {

    .steps-container {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .how-to-use {
        margin-top: 55px;

        padding: 0 14px;
    }


    .steps-container {
        grid-template-columns: 1fr;
    }

}

/* PAKSA SEMUA TEKS CARA PENGGUNAAN MENJADI PUTIH */

.how-to-use,
.how-to-use h2,
.how-to-use h3,
.how-to-use p,
.how-to-use span,
.how-to-use div {
    color: #ffffff !important;
}

.section-title h2 {
    color: #ffffff !important;
}

.section-title p {
    color: rgba(255, 255, 255, 0.75) !important;
}

.step-card h3 {
    color: #ffffff !important;
}

.step-card p {
    color: rgba(255, 255, 255, 0.70) !important;
}

.step-number {
    color: rgba(255, 255, 255, 0.30) !important;
}

.section-title > span {
    color: #ffffff !important;
}


/* =========================
   WHATSAPP COMMUNITY
========================= */

.whatsapp-section {
    max-width: 1100px;
    margin: 80px auto 0;
    padding: 0 20px;
}


.whatsapp-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}


.whatsapp-card {
    display: flex;
    align-items: center;
    gap: 18px;

    padding: 25px;

    border-radius: 22px;

    background:
        rgba(255,255,255,0.09);

    border:
        1px solid rgba(255,255,255,0.14);

    backdrop-filter: blur(18px);

    box-shadow:
        0 20px 45px rgba(0,0,0,0.16);

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}


.whatsapp-card:hover {
    transform: translateY(-6px);

    background:
        rgba(255,255,255,0.14);
}


.whatsapp-icon {
    width: 65px;
    height: 65px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 18px;

    font-size: 30px;

    background:
        linear-gradient(
            135deg,
            #22c55e,
            #16a34a
        );

    box-shadow:
        0 12px 25px
        rgba(34,197,94,0.25);
}


.whatsapp-content {
    flex: 1;
}


.whatsapp-content h3 {
    color: #ffffff !important;

    font-size: 19px;

    margin-bottom: 6px;
}


.whatsapp-content p {
    color:
        rgba(255,255,255,0.68) !important;

    font-size: 13px;

    line-height: 1.6;

    margin-bottom: 15px;
}


.whatsapp-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 10px 17px;

    border-radius: 11px;

    text-decoration: none;

    color: #ffffff;

    font-size: 13px;

    font-weight: 800;

    background:
        linear-gradient(
            90deg,
            #16a34a,
            #22c55e
        );

    box-shadow:
        0 8px 20px
        rgba(34,197,94,0.25);

    transition:
        transform 0.2s ease;
}


.whatsapp-button:hover {
    transform: translateY(-2px);
}


@media (max-width: 700px) {

    .whatsapp-cards {
        grid-template-columns: 1fr;
    }


    .whatsapp-card {
        align-items: flex-start;
    }

}
