/*
 * BresciaTicket organizer — componente TILE
 *
 * Tile cliccabili formato compatto orizzontale "label · valore".
 * Usate nella griglia "Gestione evento" del hub e in altre dashboard.
 *
 * Canonical: .org-tile (+ figli + varianti --readonly --feature)
 * Legacy alias: .hub-tile (+ figli + varianti)
 */

.org-tile,
.hub-tile {
    background: var(--bt-surface);
    border: 1px solid var(--bt-border);
    padding: 12px 14px;
    text-decoration: none;
    color: var(--bt-ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--bt-space-2);
    transition: border-color .12s;
    line-height: 1.4;
    min-height: 50px;
    border-radius: var(--bt-radius);
}
.org-tile:hover,
.hub-tile:hover {
    border-color: var(--bt-org-accent);
    color: var(--bt-ink);
    text-decoration: none;
}

.org-tile-label,
.hub-tile-label {
    font-size: 13px;
    font-weight: 600;
    flex: 1;
    min-width: 0;
}

.org-tile-value,
.hub-tile-value {
    color: var(--bt-org-accent);
    font-weight: 700;
    font-family: var(--bt-font-mono);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}
.org-tile-value--muted,
.hub-tile-value--muted {
    color: var(--bt-ink-faint);
    font-weight: 700;
}
/* Valore testuale ("copertina caricata", "pagamento online"): e' una frase,
 * non un numero, quindi torna al font del testo. Il mono sta sul valore
 * perche' il caso normale e' un contatore. */
.org-tile-value--text,
.hub-tile-value--text {
    font-family: var(--bt-font);
    color: var(--bt-ink-faint);
    font-size: 12px;
    font-weight: 500;
}
/* Sottotitolo fatto di soli numeri (date, orari): mono come i contatori. */
.org-tile-value--num,
.hub-tile-value--num {
    font-family: var(--bt-font-mono);
}

/* ---------------------------------------------------------------------------
 * Gruppi della griglia. Tre famiglie, tre ruoli diversi:
 *   --config : com'è fatto l'evento (data, testi, prezzi). Valore testuale.
 *   (default): come sta andando (ordini, check-in). Valore numerico, accent.
 *   --stats  : il risultato. Non si configura e non si opera: si legge.
 *
 * Il "valore testuale sembra spento" si risolve raggruppando: dentro --config
 * sono tutti testi, quindi nessuno sfigura accanto a un numero colorato. Per
 * questo qui il valore è ink-muted e non ink-faint: è quieto, non scolorito.
 * ------------------------------------------------------------------------- */
.org-tile--config,
.hub-tile--config {
    background: var(--bt-bg-alt);
}
.org-tile--config .org-tile-value,
.hub-tile--config .hub-tile-value {
    color: var(--bt-ink-muted);
    font-size: 12px;
    font-weight: 500;
}

.org-tile--stats,
.hub-tile--stats {
    background: var(--bt-org-accent-soft);
    border-color: var(--bt-org-accent-soft);
}
.org-tile--stats:hover,
.hub-tile--stats:hover {
    border-color: var(--bt-org-accent);
}

/* Variante "alert": la tile chiede un'azione (es. disdette da evadere).
 * Il numero resta il protagonista, il rosso è il motivo per cui lo guardi. */
.org-tile--alert,
.hub-tile--alert {
    background: var(--bt-danger-soft);
    border-color: var(--bt-danger);
}
.org-tile--alert .org-tile-value,
.hub-tile--alert .hub-tile-value {
    color: var(--bt-danger);
}
.org-tile--alert:hover,
.hub-tile--alert:hover {
    border-color: var(--bt-danger);
}

/* Variante "readonly": tile di configurazione su evento concluso */
.org-tile--readonly,
.hub-tile--readonly {
    opacity: .55;
}

/* Variante "feature": tile evidenziata (es. Stats check-in dopo l'evento) */
.org-tile--feature,
.hub-tile--feature {
    background: var(--bt-org-accent-soft);
    border-color: var(--bt-org-accent);
}
