/* home.css: kartu "Perlu perhatian" dan grid peluncur modul. */

/* ── Perlu perhatian ───────────────────────────────────────────────────── */

.attention {
  margin-top: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
}

.attention__head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.attention__head .eyebrow { color: var(--ink-muted); }
.attention__head .icn { color: var(--brand-2); width: 17px; height: 17px; }

.attention__list { display: grid; gap: var(--sp-1); }

.attention__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  padding: var(--sp-2) 0;
  text-align: left;
  border-top: 1px solid var(--ink-border);
}

.attention__item:first-child { border-top: none; }

.attention__when {
  flex-shrink: 0;
  width: 76px;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-2);
}

.attention__what { flex: 1; min-width: 0; }

.attention__what strong {
  display: block;
  font-weight: 650;
  font-size: var(--text-sm);
  color: var(--ink-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attention__what span { font-size: var(--text-xs); color: var(--ink-muted); }

.attention__empty {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.55;
}

.attention__more {
  margin-top: var(--sp-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── Grid modul ────────────────────────────────────────────────────────── */

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
}

.tile {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-4);
  min-height: 118px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-fast) linear;
}

.tile:hover { box-shadow: var(--shadow-2); border-color: var(--border-strong); }
.tile:active { transform: scale(0.98); }

.tile__body { margin-top: auto; }

.tile__name {
  display: block;
  font-weight: 750;
  font-size: var(--text-base);
  letter-spacing: -0.012em;
}

.tile__meta {
  display: block;
  margin-top: 2px;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ── Kartu "Hari Ini" (dua kolom) ──────────────────────────────────────── */

.tile--today {
  grid-column: span 2;
  min-height: 0;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
}

.today__head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.today__head-text { flex: 1; min-width: 0; }
.today__head .icn:last-child { color: var(--text-muted); }

.today__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-2);
}

.today__stat {
  padding: var(--sp-3);
  border-radius: var(--r-sm);
  background: var(--tint-bg);
}

.today__stat-value {
  display: block;
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -0.028em;
  color: var(--tint-fg);
  line-height: 1.15;
}

.today__stat-label {
  display: block;
  margin-top: 2px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Hasil pencarian global ────────────────────────────────────────────── */

.search-results { margin-top: var(--sp-4); }

.result-group { margin-bottom: var(--sp-5); }

.result-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-2);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: border-color var(--dur-fast) linear;
}

.result-item:hover { border-color: var(--border-strong); }
.result-item:active { transform: scale(0.99); }

.result-item__text { flex: 1; min-width: 0; }

.result-item__text strong {
  display: block;
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1.45;
}

.result-item__text span { font-size: var(--text-xs); color: var(--text-muted); }

.result-item mark {
  background: color-mix(in srgb, var(--brand-2) 55%, transparent);
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}
