/* ==========================================================================
   PELUANG.INFO — mesin pencari kebutuhan & peluang bisnis
   Desain: modern, bersih, ringan, search-first, mobile responsive
   ========================================================================== */

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --primary-soft: #ecfdf5;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 16px rgba(15, 23, 42, .06);

  /* warna badge tipe */
  --c-need: #dc2626;
  --c-supply: #2563eb;
  --c-business: #7c3aed;
  --c-service: #0891b2;
  --c-asset: #d97706;
  --c-opportunity: #16a34a;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #ffffff;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main { flex: 1; }

button { font-family: inherit; -webkit-appearance: none; appearance: none; }

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container { max-width: 1120px; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: .2px;
  color: var(--text);
}
.logo .accent { color: var(--primary); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  transition: color .15s ease;
}
.nav a:hover { color: var(--text); }
.nav .lang { font-weight: 500; }
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 22px;
  transition: background .15s ease;
  text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-whatsapp { background: #25d366; color: #fff; width: 100%; margin-top: 12px; }
.btn-whatsapp:hover { background: #1ebe5b; color: #fff; }
.btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }

/* --------------------------------------------------------------------------
   HERO + SEARCH (mesin pencari, referensi komposisi Google)
   Satu mekanisme submit di dalam search box. Tidak ada logo ganda,
   tidak ada kategori, tidak ada elemen dekoratif.
   -------------------------------------------------------------------------- */
.hero {
  text-align: center;
  padding: clamp(96px, 13vh, 140px) 20px 24px;
}
.hero-headline {
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.18;
  color: var(--text);
  margin: 0 0 16px;
}
.hero-sub {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 30px;
}

.home-search-wrap { width: 100%; max-width: 620px; }

/* search box — fokus utama, sepenuhnya custom (bukan styling browser) */
.home-search {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  height: 58px;
  padding: 0 12px 0 24px;
  background: #fff;
  border: 1px solid #dfe1e5;
  border-radius: 30px;
  box-shadow: 0 1px 3px rgba(60, 64, 67, .3);
  transition: box-shadow .2s ease, background .2s ease;
  text-align: left;
}
.home-search:hover,
.home-search:focus-within {
  box-shadow: 0 1px 6px rgba(32, 33, 36, .28);
}
.home-search .search-icon {
  flex: 0 0 auto;
  color: #9aa0a6;
}
.home-search input {
  flex: 1;
  min-width: 0;
  align-self: stretch;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  letter-spacing: .01em;
  color: var(--text);
  padding: 0 12px;
}
.home-search input::placeholder { color: #9aa0a6; }
.home-search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.home-search .search-go {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  transition: background .15s ease;
}
.home-search .search-go:hover { background: var(--primary-soft); }
.home-search .search-go:active { opacity: .7; }
.home-search .search-go:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* contoh pencarian — text link, tanpa card/pill/border */
.home-examples {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.home-examples .examples-label { font-weight: 500; }
.home-examples a { color: var(--muted); transition: color .15s ease; }
.home-examples a:hover { color: var(--primary); }
.home-examples .sep { opacity: .5; }

/* filter & kata kunci (halaman hasil pencarian) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 24px; }
.chip {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: .9rem;
  font-weight: 600;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip-active { background: var(--primary); border-color: var(--primary); color: #fff !important; }

/* search form di halaman hasil pencarian */
.search-form {
  display: flex;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto;
}
.search-form input {
  flex: 1;
  padding: 13px 16px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  outline: none;
}
.search-form input:focus { border-color: var(--primary); }
.search-form .btn { box-shadow: var(--shadow); border-radius: 999px; }

/* --------------------------------------------------------------------------
   SECTION / GRID
   -------------------------------------------------------------------------- */
.section { padding: 24px 0 64px; }
.section-title { font-size: 1.3rem; margin: 0 0 16px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }

/* --------------------------------------------------------------------------
   CARD
   -------------------------------------------------------------------------- */
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
  color: var(--text);
}
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(15, 23, 42, .1); color: var(--text); }
.card-top { display: flex; gap: 6px; margin-bottom: 10px; }
.card-title { font-size: 1.05rem; margin: 0 0 4px; line-height: 1.4; }
.card-cat { color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .85rem; }

/* badge */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .3px;
}
.badge-soft { background: var(--bg); color: var(--muted); }
.badge-need { background: var(--c-need); }
.badge-supply { background: var(--c-supply); }
.badge-business { background: var(--c-business); }
.badge-service { background: var(--c-service); }
.badge-asset { background: var(--c-asset); }
.badge-opportunity { background: var(--c-opportunity); }
.badge-demo {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
}
.badge-verified {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #10b981;
}

/* --------------------------------------------------------------------------
   HALAMAN CARI
   -------------------------------------------------------------------------- */
.search-page { padding: 32px 0 64px; }
.search-page .search-form { margin: 0 0 18px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.count { color: var(--muted); margin: 0 0 16px; font-size: .95rem; }

.empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.empty h3 { margin: 0 0 8px; }
.empty p { color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   HALAMAN TAMBAH
   -------------------------------------------------------------------------- */
.add-page { padding: 36px 0 64px; max-width: 720px; }
.add-page h1 { margin: 0 0 6px; }
.muted { color: var(--muted); }

.intents { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.intent {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: border-color .15s ease, transform .15s ease;
}
.intent:hover { border-color: var(--primary); transform: translateY(-2px); }
.intent strong { display: block; font-size: 1.05rem; margin-bottom: 4px; color: var(--text); }
.intent span { color: var(--muted); font-size: .9rem; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  margin-top: 24px;
}
.field { border: none; margin: 0 0 18px; padding: 0; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field input[type="search"],
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: .98rem;
  font-family: inherit;
  background: #fff;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { color: var(--muted); font-size: .83rem; margin-top: 4px; }
.radios { display: flex; flex-wrap: wrap; gap: 10px; }
.radio {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 500;
  font-size: .95rem;
}
.radio input { accent-color: var(--primary); }

/* --------------------------------------------------------------------------
   DETAIL
   -------------------------------------------------------------------------- */
.detail-page { padding: 32px 0 64px; }
.detail-back { color: var(--muted); font-size: .9rem; display: inline-block; margin-bottom: 16px; }
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.detail-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.detail-head h1 { margin: 12px 0 10px; font-size: 1.6rem; line-height: 1.35; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .9rem; }
.detail-meta strong { color: var(--text); font-weight: 600; }
.detail-body h2 { font-size: 1.05rem; margin: 26px 0 10px; }
.description { white-space: pre-line; margin: 0; }

.detail-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.detail-table td { padding: 9px 0; border-bottom: 1px solid var(--border); vertical-align: top; font-size: .95rem; }
.detail-table td:first-child { color: var(--muted); width: 40%; font-weight: 500; }
.detail-table tr:last-child td { border-bottom: none; }
.detail-photo img { max-width: 100%; border-radius: 10px; margin-top: 8px; }

.detail-side { display: flex; flex-direction: column; gap: 14px; }
.contact-card, .related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.contact-card h3, .related-card h3 { margin: 0 0 12px; font-size: 1rem; }
.contact-row { display: flex; justify-content: space-between; gap: 10px; font-size: .93rem; padding: 6px 0; }
.contact-row .k { color: var(--muted); }
.contact-row .v { font-weight: 500; text-align: right; word-break: break-all; }

/* trust & verifikasi */
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.trust {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
}
.trust-demo {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
  width: 100%;
}
.trust-verified {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #10b981;
}
.trust-unverified {
  background: #fffbeb;
  color: #a16207;
  border: 1px solid #fde047;
}

/* CTA & bagikan */
.share-row { margin-top: 14px; text-align: center; }
.share-link { color: var(--muted); font-size: .9rem; }
.share-link:hover { color: var(--primary); }
.share-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: .9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 100;
}
.share-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* flash */
.flash { border-radius: 10px; padding: 12px 16px; margin: 16px 0; font-size: .95rem; }
.flash-success { background: var(--primary-soft); color: var(--primary-dark); border: 1px solid #a7f3d0; }
.flash-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  padding: 28px 20px 36px;
  background: #f8fafc;
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
}
.site-footer .container { max-width: 1000px; }
.site-footer .footer-brand {
  margin: 0 0 12px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .3px;
  color: var(--text);
}
.site-footer .footer-brand span { color: var(--primary); }
.site-footer .footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
}
.site-footer .footer-links a { color: var(--muted); transition: color .15s ease; }
.site-footer .footer-links a:hover { color: var(--primary); }
.site-footer .footer-links .lang { font-weight: 500; }
.site-footer .footer-copy {
  margin: 14px 0 0;
  font-size: 12px;
  color: #9aa0a6;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .home-search-wrap { max-width: 80vw; }
}

@media (max-width: 720px) {
  .header-inner { height: 56px; }
  .logo { font-size: 18px; }
  .nav { gap: 14px; }
  .nav a { font-size: 13px; }
  .hero { padding: 64px 16px 20px; }
  .hero-headline { font-size: clamp(1.9rem, 8vw, 2.15rem); }
  .hero-sub { font-size: 14px; margin-bottom: 24px; }
  .home-search-wrap { max-width: calc(100% - 32px); }
  .home-search { height: 54px; padding-left: 18px; }
  .home-search input { font-size: 15px; }
  .home-search .search-go { width: 36px; height: 36px; }
  .home-examples { flex-direction: column; gap: 6px; }
  .home-examples .sep { display: none; }
  .intents { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
}
