/* Halaman publik "Kondisi Konten" (/umkm/content-creator/kondisi/...).
   Komponen dasar (topbar, tombol WA, footer) dari sibakul-ui-standard.css;
   berkas ini hanya untuk layout & tampilan khusus halaman. */
* { box-sizing: border-box; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--bg-gray); margin: 0; }

.kk-owner-strip { background: var(--green-dark); color: #fff; padding: 9px 24px; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; text-align: center; }
.kk-owner-strip a { color: #fff; text-decoration: underline; display: inline-flex; align-items: center; gap: 6px; }

.kk-wrap { max-width: 760px; margin: 0 auto; padding: 32px 24px 72px; }

/* ---------- Hero ringkas ---------- */
.kk-header { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); border-radius: var(--radius-xl); padding: 20px 22px; color: #fff; margin-bottom: 16px; box-shadow: 0 12px 30px -16px rgba(0, 60, 30, .5); animation: kk-rise .5s ease both; }
.kk-header::before, .kk-header::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.kk-header::before { width: 200px; height: 200px; top: -120px; right: -50px; }
.kk-header::after { width: 130px; height: 130px; bottom: -85px; left: 10%; }
.kk-header-top { position: relative; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.kk-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: rgba(255, 255, 255, .2); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; border: 2px solid rgba(255, 255, 255, .55); box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.kk-header-info { flex: 1; min-width: 0; }
body.sb-public .kk-header h1 { font-size: 16.5px; font-weight: 800; margin: 0 0 3px; line-height: 1.25; }
.kk-header-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11.5px; opacity: .9; }
.kk-header-meta span { display: inline-flex; align-items: center; gap: 5px; }
.kk-badge-verifikasi { position: relative; margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; padding: 4px 10px; border-radius: 100px; background: rgba(255, 255, 255, .2); width: fit-content; }

.kk-score-row { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .18); }
.kk-score-circle { position: relative; width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0; background: conic-gradient(#fff var(--kk-percent, 0%), rgba(255, 255, 255, .25) 0); display: flex; align-items: center; justify-content: center; }
.kk-score-circle-inner { width: 48px; height: 48px; border-radius: 50%; background: var(--green-dark); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.kk-score-text { min-width: 0; }
.kk-score-text p { margin: 0; font-size: 12px; opacity: .92; line-height: 1.45; }
.kk-score-text strong { font-size: 13.5px; }
.kk-score-missing { opacity: .88; }
.kk-tone { display: inline-block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 100px; margin-bottom: 4px; }
.kk-tone--baik { background: #dcfce7; color: #166534; }
.kk-tone--cukup { background: #fef3c7; color: #92400e; }
.kk-tone--minim { background: #fee2e2; color: #991b1b; }
.kk-dots { display: flex; gap: 4px; margin-top: 7px; }
.kk-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .28); }
.kk-dot.ok { background: #fff; }
.kk-dot.missing { background: rgba(255, 255, 255, .28); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .65); }

/* ---------- Panel checklist ---------- */
.kk-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 22px; margin-bottom: 16px; animation: kk-rise .5s ease .08s both; }
body.sb-public .kk-panel-head h2 { font-size: 14.5px; font-weight: 800; color: var(--text-primary); margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.kk-panel-head h2 i { color: var(--green); font-size: 13px; }
.kk-panel-sub { font-size: 12px; color: var(--text-muted); margin: 0 0 12px; line-height: 1.5; }

.kk-group { border-top: 1px solid var(--bg-gray); }
.kk-group:first-of-type { border-top: 0; }
.kk-group-head { display: flex; align-items: center; gap: 8px; padding: 13px 6px; cursor: pointer; list-style: none; }
.kk-group-head::-webkit-details-marker { display: none; }
.kk-group-head:hover { background: var(--bg-gray); border-radius: 10px; }
.kk-group-title { font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.kk-group-count { font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 100px; }
.kk-group-count.ok { background: #dcfce7; color: #166534; }
.kk-group-count.missing { background: #fef3c7; color: #92400e; }
.kk-mini-bar { flex: 1; max-width: 120px; height: 6px; border-radius: 100px; background: #e2e8f0; overflow: hidden; margin-left: auto; }
.kk-mini-bar span { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.kk-group-chevron { font-size: 11px; color: var(--text-muted); transition: transform .2s ease; }
.kk-group[open] .kk-group-chevron { transform: rotate(180deg); }

.kk-checklist { display: flex; flex-direction: column; padding: 2px 0 12px; }
.kk-check-item { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 10px; }
.kk-check-item + .kk-check-item { border-top: 1px solid var(--bg-gray); }
.kk-check-item:hover { background: var(--bg-gray); }
.kk-check-item.is-missing { background: #fffbeb; border: 1px solid #fde68a; margin: 4px 0; }
.kk-check-item.is-missing + .kk-check-item { border-top: 0; }
.kk-check-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14.5px; flex-shrink: 0; }
.kk-check-icon.ok { background: var(--green-50); color: var(--green-dark); }
.kk-check-icon.missing { background: #fef3c7; color: #b45309; }
.kk-check-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kk-check-label { font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.kk-check-hint { font-size: 11px; color: #92400e; }
.kk-check-status { font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.kk-check-status.ok { color: var(--green-dark); }
.kk-check-status.missing { color: #92400e; }
.kk-item-cta { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 6px 12px; border-radius: 100px; background: #ecfdf5; border: 1px solid #bbf7d0; color: #15803d; font-size: 11.5px; font-weight: 800; text-decoration: none; flex-shrink: 0; }
.kk-item-cta:hover { background: #dcfce7; }

/* ---------- CTA ---------- */
.kk-cta { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 20px 22px; text-align: center; animation: kk-rise .5s ease .16s both; }
.kk-cta-title { font-size: 13.5px; font-weight: 700; color: var(--text-primary); margin: 0 0 4px; }
.kk-cta-sub { font-size: 12px; color: var(--text-muted); margin: 0 0 16px; }
.kk-cta .sib-wa-btn { margin: 0 auto; }
.kk-no-wa { text-align: center; color: var(--text-muted); font-size: 12.5px; }

.kk-sticky-cta { display: none; }

@keyframes kk-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 640px) {
    .kk-wrap { padding: 20px 16px 112px; }
    .kk-header { padding: 18px 18px 16px; }
    .kk-panel { padding: 18px 16px; }
    body.sb-public .kk-header h1 { font-size: 17px; }
    body.sb-public .kk-panel-head h2 { font-size: 15px; }
    .kk-check-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 4px; }
    .kk-check-icon { grid-row: 1 / span 2; align-self: center; }
    .kk-check-main { grid-column: 2; }
    .kk-check-status { grid-column: 3; grid-row: 1; justify-self: end; }
    .kk-item-cta { grid-column: 3; grid-row: 2; justify-self: end; }
    .kk-badge-verifikasi { margin-left: 0; }
    .kk-sticky-cta {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
        align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .97); border-top: 1px solid var(--border);
        box-shadow: 0 -8px 24px rgba(15, 23, 42, .12);
    }
    .kk-sticky-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
    .kk-sticky-info strong { font-size: 13px; color: var(--text-primary); }
    .kk-sticky-info span { font-size: 11.5px; color: var(--text-muted); }
    .kk-sticky-cta .sib-wa-btn { flex-shrink: 0; }
}

@media (max-width: 420px) {
    .kk-sticky-info span { display: none; }
    .kk-sticky-cta .sib-wa-btn { padding: 10px 14px; font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
    .kk-header, .kk-panel, .kk-cta { animation: none; }
    .kk-group-chevron { transition: none; }
}

/* Gate penawaran: hanya creator aktif yang boleh menghubungi UMKM */
.kk-gate-icon { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: #fef3c7; color: #92400e; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 10px; }
.kk-gate-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 14px; }
.kk-gate-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 12px 22px; border-radius: 100px; background: var(--sib-yellow, #ffc800); color: var(--sib-ink, #14532d); font-weight: 800; font-size: 13.5px; text-decoration: none; }
.kk-gate-btn:hover { filter: brightness(.97); }
.kk-gate-link { font-size: 12.5px; color: var(--green-dark); font-weight: 700; text-decoration: none; }
.kk-gate-link:hover { text-decoration: underline; }

/* Tautan ke profil publik UMKM (hanya untuk usaha terverifikasi) */
.kk-profile-link { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 4px 10px; border-radius: 100px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); color: #fff; font-size: 11px; font-weight: 700; text-decoration: none; }
.kk-profile-link:hover { background: rgba(255, 255, 255, .27); color: #fff; }
.kk-profile-link i:last-child { font-size: 9px; opacity: .8; }
