/* Umpatan.web.id — playful, colorful lexicon */
:root {
  --bg: #fffbf2; --ink: #23202b; --muted: #6f6a7d; --card: #ffffff;
  --line: #ece5d8; --coral: #ff5d5d; --purple: #7c5cff; --teal: #00a896;
  --yellow: #ffc53d; --pink: #ff7bac; --blue: #3d8bff;
  --sev1: #22c55e; --sev2: #eab308; --sev3: #f97316; --sev4: #ef4444; --sev5: #a855f7;
  --radius: 18px;
  --shadow: 0 6px 0 rgba(35, 32, 43, 0.9);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.12; margin: 0; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; font-weight: 800; color: var(--purple); margin: 0 0 10px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 251, 242, 0.92);
  backdrop-filter: blur(8px); border-bottom: 2px solid var(--ink);
}
.site-header .wrap { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; }
.brand .dot {
  width: 36px; height: 36px; border-radius: 11px; border: 2px solid var(--ink);
  background: linear-gradient(135deg, var(--coral), var(--yellow) 55%, var(--teal));
  display: grid; place-items: center; color: #fff; font-size: 19px; box-shadow: 3px 3px 0 rgba(35,32,43,.9);
}
.brand em { font-style: normal; color: var(--coral); }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: 999px; }
.main-nav a:hover { background: #f3ecdc; }
.main-nav a.btn-nav { background: var(--ink); color: #fff; }
.main-nav a.btn-nav:hover { background: #3a3648; }
.user-chip { font-size: 13.5px; font-weight: 700; background: #efe9ff; border: 2px solid var(--ink); padding: 6px 12px; border-radius: 999px; }

/* buttons */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer; border: 2px solid var(--ink);
  background: var(--card); color: var(--ink); font-weight: 800; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; box-shadow: 4px 4px 0 rgba(35,32,43,.9);
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 rgba(35,32,43,.9); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(35,32,43,.9); }
.btn.coral { background: var(--coral); color: #fff; }
.btn.purple { background: var(--purple); color: #fff; }
.btn.teal { background: var(--teal); color: #fff; }
.btn.small { padding: 7px 14px; font-size: 13.5px; box-shadow: 3px 3px 0 rgba(35,32,43,.9); }
.btn.plain { box-shadow: none; }
.btn.danger { background: #ffe1e1; }

/* hero */
.hero { padding: 72px 0 30px; text-align: center; position: relative; overflow: hidden; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; letter-spacing: -0.02em; max-width: 820px; margin: 0 auto; }
.hero h1 .grad {
  background: linear-gradient(92deg, var(--coral), var(--pink) 30%, var(--purple) 62%, var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 640px; margin: 18px auto 0; }
.hero .cta-row { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-badge {
  display: inline-block; background: #fff; border: 2px solid var(--ink); border-radius: 999px;
  padding: 6px 16px; font-weight: 800; font-size: 13px; box-shadow: 3px 3px 0 rgba(35,32,43,.9); margin-bottom: 20px;
}
.float-word {
  position: absolute; font-weight: 800; padding: 7px 14px; border-radius: 999px; border: 2px solid var(--ink);
  background: #fff; font-size: 14px; box-shadow: 3px 3px 0 rgba(35,32,43,.9); opacity: 0.95; user-select: none;
}
@media (max-width: 900px) { .float-word { display: none; } }

/* stats */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 44px auto 6px; max-width: 960px; }
@media (max-width: 760px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 20px 14px; box-shadow: var(--shadow);
}
.stat-card .num { font-size: 34px; font-weight: 800; }
.stat-card .lbl { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }
.stat-card.c1 { background: #ffe9e9; } .stat-card.c2 { background: #e7f9f5; }
.stat-card.c3 { background: #fff3d1; } .stat-card.c4 { background: #efe9ff; }

/* sections */
section.block { padding: 58px 0 8px; }
.sec-head { max-width: 640px; margin-bottom: 26px; }
.sec-head p { color: var(--muted); margin-top: 8px; }
.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }

/* viz */
.viz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .viz-grid { grid-template-columns: 1fr; } }
.viz-card { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.viz-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.bar-row { display: grid; grid-template-columns: 128px 1fr 34px; align-items: center; gap: 10px; margin: 9px 0; font-size: 13.5px; }
.bar-row .name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { background: #f1ead9; border-radius: 999px; height: 16px; border: 1.5px solid var(--ink); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; }
.bar-row .n { font-weight: 800; text-align: right; }
.donut-flex { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.legend { font-size: 14px; }
.legend .li { display: flex; align-items: center; gap: 9px; margin: 7px 0; font-weight: 600; }
.legend .sw { width: 15px; height: 15px; border-radius: 5px; border: 1.5px solid var(--ink); flex: none; }
.graph-card { margin-top: 16px; }
#graph { width: 100%; height: auto; display: block; }
.graph-note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* word cards */
.word-card {
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 18px; box-shadow: 5px 5px 0 rgba(35,32,43,.9); position: relative; overflow: hidden;
}
.word-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--bar, var(--coral)); }
.word-card .w { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.word-card .m { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.word-details { display: grid; gap: 9px; margin-top: 14px; }
.word-detail { background: #fffaf0; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.word-detail span {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--purple); margin-bottom: 3px;
}
.word-detail p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #4b4657; }
.word-detail.example { background: #eefaf6; }
.word-detail.example p { font-style: italic; }
.word-card .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.chip { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; border: 1.5px solid var(--ink); background: #f6f1e3; }
.chip.cat { background: #e7f9f5; }
.sev-pill { font-size: 12px; font-weight: 800; color: #fff; padding: 4px 10px; border-radius: 999px; border: 1.5px solid var(--ink); }
.word-card .by { font-size: 12px; color: var(--muted); margin-left: auto; }

/* toolbar / forms */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
input[type="text"], input[type="search"], input[type="password"], select, textarea {
  font: inherit; font-size: 15px; padding: 11px 14px; border: 2px solid var(--ink);
  border-radius: 12px; background: #fff; color: var(--ink); min-width: 0;
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(124, 92, 255, 0.35); }
.toolbar input[type="search"] { flex: 1; min-width: 200px; }
.field { display: block; margin-bottom: 14px; font-weight: 700; font-size: 14px; }
.field input, .field select, .field textarea { display: block; width: 100%; margin-top: 6px; font-weight: 400; }
.form-card { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.form-msg { font-size: 14px; font-weight: 700; margin-top: 12px; min-height: 20px; }
.form-msg.ok { color: #12805c; } .form-msg.err { color: #d33; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tab-btn { border: 2px solid var(--ink); background: #fff; border-radius: 999px; padding: 8px 18px; font-weight: 800; cursor: pointer; font-size: 14px; }
.tab-btn.on { background: var(--ink); color: #fff; }

/* tables */
.table-wrap { overflow-x: auto; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #faf5e8; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.status { font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; border: 1.5px solid var(--ink); white-space: nowrap; }
.status.pending { background: var(--yellow); }
.status.approved { background: #b8f1d4; }
.status.rejected { background: #ffc9c9; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-btn { border: 1.5px solid var(--ink); background: #fff; border-radius: 8px; font-weight: 700; font-size: 12.5px; padding: 5px 10px; cursor: pointer; }
.mini-btn.ok { background: #b8f1d4; } .mini-btn.no { background: #ffc9c9; } .mini-btn.warn { background: #ffe9a8; }

/* top severe list */
.severe-list { counter-reset: sev; }
.severe-item { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1.5px dashed var(--line); }
.severe-item:last-child { border-bottom: 0; }
.severe-item .rank { font-size: 22px; font-weight: 800; color: var(--coral); width: 30px; }
.severe-item .w { font-weight: 800; font-size: 17px; }
.severe-item .m { color: var(--muted); font-size: 13.5px; }

/* cta + footer */
.cta-band {
  margin: 64px 0 0; border: 2px solid var(--ink); border-radius: 26px; box-shadow: var(--shadow);
  background: linear-gradient(120deg, #ffe9e9, #fff3d1 45%, #e7f9f5); padding: 42px 30px; text-align: center;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--muted); max-width: 520px; margin: 0 auto 22px; }
.site-footer { margin-top: 70px; border-top: 2px solid var(--ink); background: #23202b; color: #efe9dc; }
.site-footer .wrap { padding-top: 34px; padding-bottom: 30px; display: flex; gap: 26px; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; }
.site-footer a { color: #efe9dc; text-decoration: none; font-weight: 600; font-size: 14px; display: block; margin: 6px 0; }
.site-footer a:hover { color: var(--yellow); }
.site-footer .fine { width: 100%; border-top: 1px solid #454052; padding-top: 16px; font-size: 12.5px; color: #a49fb5; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-hero { padding: 46px 0 6px; }
.notice { background: #fff3d1; border: 2px solid var(--ink); border-radius: 14px; padding: 14px 18px; font-weight: 600; font-size: 14.5px; }
