/* ============================================================
   ZillerPortal — zp-board.css
   Bacheca del giorno in Dashboard (Components/Pages/Home.razor):
   Da fare / In corso / Fatto oggi, con «Prendo io».
   Solo token esistenti → tema chiaro/scuro automatico.
   ============================================================ */

.hb-run { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--text-soft); }

/* Riepilogo sopra la bacheca */
.hb-summary {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px 18px; margin-bottom: 16px;
}
.hb-sum { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hb-sum > span:last-child { min-width: 0; }
.hb-sum b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--ink-900); letter-spacing: -.01em; }
.hb-sum small { display: block; font-size: .74rem; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-sum-ic {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center; font-size: 1.1rem;
  background: var(--paper-sunk); color: var(--ink-500);
}
.hb-sum-ic--todo { background: var(--ember-50); color: var(--ember-700); }
.hb-sum-ic--ok { background: var(--success-bg); color: var(--success); }

/* Bacheca a tre colonne */
.hb-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.hb-col { background: var(--paper-sunk); border-radius: 18px; padding: 10px; min-width: 0; }
.hb-col-h {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px 12px;
  font-family: var(--font-display); font-weight: 800; font-size: .98rem; color: var(--ink-900);
}
.hb-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.hb-col-n {
  margin-left: 2px; font-family: var(--font-sans); font-size: .74rem; font-weight: 700;
  background: var(--surface); color: var(--ink-500); border-radius: 999px; padding: 1px 9px;
}
.hb-cards { display: flex; flex-direction: column; gap: 10px; }

.hb-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.hb-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hb-card--done { background: var(--surface-2); box-shadow: none; }
.hb-card--done:hover { transform: none; box-shadow: none; }
.hb-card--done .hb-k { color: var(--success); }
.hb-card--done .hb-t { color: var(--ink-700); font-weight: 700; }

.hb-k { display: flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 700; color: var(--ink-400); }
.hb-k > i { font-size: .95rem; }
.hb-pr { margin-left: auto; font-size: .68rem; font-weight: 700; border-radius: 6px; padding: 2px 7px; }
.hb-pr--alta { background: var(--danger-bg); color: var(--danger); }
.hb-pr--media { background: var(--warning-bg); color: var(--warning); }
.hb-pr--bassa { background: var(--paper-sunk); color: var(--ink-500); }

.hb-t { margin: 8px 0 0; font-family: var(--font-display); font-weight: 700; font-size: .98rem; line-height: 1.3; color: var(--ink-900); letter-spacing: -.01em; }
.hb-big { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }
.hb-big b { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; letter-spacing: -.03em; color: var(--ink-900); line-height: 1; }
.hb-big span { font-size: .78rem; font-weight: 700; color: var(--text-faint); }
.hb-note { margin: 6px 0 0; font-size: .8rem; line-height: 1.45; color: var(--text-soft); }
.hb-note--sm { font-size: .74rem; margin-top: 4px; }

.hb-tcgs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.hb-tcg {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 3px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2);
  font-size: .72rem; font-weight: 600; color: var(--ink-700); white-space: nowrap;
}
.hb-tcg img { width: 20px; height: 20px; border-radius: 6px; object-fit: cover; background: #fff; }
.hb-tcg b { font-weight: 800; }

.hb-pg { height: 8px; border-radius: 4px; background: var(--paper-sunk); margin-top: 10px; overflow: hidden; }
.hb-pg i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }

.hb-f { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hb-f small { font-size: .74rem; font-weight: 600; color: var(--text-faint); }
.hb-av {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: .66rem; font-weight: 800;
  background: var(--ember-100); color: var(--ember-700);
}
.hb-take {
  display: inline-flex; align-items: center; gap: 5px; min-height: 32px;
  border: 1px dashed var(--line-strong); background: transparent; border-radius: 999px;
  padding: 0 11px; font-size: .74rem; font-weight: 700; color: var(--ink-500); cursor: pointer;
}
.hb-take:hover { border-color: var(--accent); color: var(--ember-700); background: var(--ember-50); }
.hb-take:focus-visible, .hb-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hb-go { margin-left: auto; }

.hb-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 12px; text-align: center; font-size: .8rem; color: var(--text-faint); }
.hb-empty i { font-size: 1.4rem; color: var(--ink-300); }
.hb-skel { height: 96px; border-radius: 14px; background: var(--surface); opacity: .6; animation: hb-pulse 1.2s ease-in-out infinite alternate; }
@keyframes hb-pulse { to { opacity: .3; } }

/* Telefono: le colonne diventano schede */
.hb-tabs { display: none; }
@media (max-width: 900px) {
  .hb-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; gap: 12px 10px; }
  .hb-tabs {
    display: flex; gap: 4px; padding: 4px; margin-bottom: 12px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  }
  .hb-tab {
    flex: 1; min-height: 44px; border: 0; border-radius: 10px; background: transparent;
    font-weight: 700; font-size: .82rem; color: var(--ink-500); cursor: pointer;
  }
  .hb-tab span { font-weight: 600; opacity: .75; }
  .hb-tab[aria-selected="true"] { background: var(--ink-900); color: var(--bg-700, #fff); }
  .hb-board { grid-template-columns: minmax(0, 1fr); }
  .hb-col { display: none; background: transparent; padding: 0; }
  .hb-col.is-on { display: block; }
  .hb-col-h { display: none; }
  .hb-take { min-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .hb-card, .hb-skel { transition: none; animation: none; }
}

/* Link della bacheca: niente sottolineatura (i bottoni restano bottoni) */
.hb-card a, .hb-card a:hover { text-decoration: none; }
a.hb-tcg--link { color: var(--ink-700); transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
a.hb-tcg--link:hover { border-color: var(--accent); background: var(--ember-50); color: var(--ember-700); }
