/* YouppyChef, correzioni 02.11.2026 */

/* niente bande marroni ai lati: lo sfondo è quello del tema, la colonna resta centrata */
body, body:not(#x) { background: var(--sfondo) !important; }
#app { max-width: none; box-shadow: none !important; }
.pagina { max-width: 760px; margin-inline: auto; width: 100%; }
@media (min-width: 900px) { .r-lista { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .pagina.chat { max-width: 700px; } }

/* barre di scorrimento: pollice nel colore del tema, nessuna freccia (verticali e orizzontali) */
*::-webkit-scrollbar { width: 10px; height: 10px; background: transparent; }
*::-webkit-scrollbar-track { background: var(--sfondo); }
*::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accento) 70%, var(--sfondo)); border-radius: 8px; border: 2px solid var(--sfondo); }
*::-webkit-scrollbar-thumb:hover { background: var(--accento); }
*::-webkit-scrollbar-button, *::-webkit-scrollbar-button:single-button { display: none; width: 0; height: 0; }
*::-webkit-scrollbar-corner { background: var(--sfondo); }

/* barra in basso: sei voci, il + al centro con il colore del tema */
#barra { justify-content: center; gap: 0; padding-left: max(4px, env(safe-area-inset-left)); padding-right: max(4px, env(safe-area-inset-right)); }
#barra > button { max-width: 112px; min-width: 0; font-size: 10.5px; }
#barra .icona { width: 44px; padding: 3px 10px; }
#barra button.centro { flex: 0 0 72px; padding: 0; align-items: center; justify-content: center; }
.piu-tondo { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin-top: -24px; background: var(--accento); color: var(--su-accento);
  border: 5px solid var(--carta); box-shadow: 0 6px 16px color-mix(in srgb, var(--accento) 45%, transparent); transition: transform .1s; box-sizing: content-box; width: 46px; height: 46px; }
.piu-tondo:active { transform: scale(.93); }
#barra .piu-tondo .icona { width: 26px; height: 26px; padding: 0; background: none; }

/* filtri su una riga, tutti allo stesso livello */
.filtri { flex-wrap: nowrap; align-items: center; -webkit-overflow-scrolling: touch; cursor: grab; }
.filtri .chip { flex: none; }
.filtri-sep { flex: none; width: 1px; height: 22px; background: var(--linea); margin: 0 2px; }

/* ricette più belle */
.r-card { padding: 12px 14px 12px 12px; gap: 14px; border: 1px solid color-mix(in srgb, var(--linea) 60%, transparent); }
.r-card .cat, .hero-ric { background: linear-gradient(145deg, #ffd9c7, #ffb08f); }
[data-tema="scuro"] .r-card .cat, [data-tema="scuro"] .hero-ric { background: linear-gradient(145deg, #4a2a1e, #6b3a28); }
.r-card .cat { width: 62px; height: 62px; border-radius: 18px; font-size: 30px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .06); }
.r-card .cat[data-cat="colazione"], .hero-ric[data-cat="colazione"] { background: linear-gradient(145deg, #ffe7a8, #ffc94d); }
.r-card .cat[data-cat="antipasto"], .hero-ric[data-cat="antipasto"], .r-card .cat[data-cat="insalata"], .hero-ric[data-cat="insalata"], .r-card .cat[data-cat="contorno"], .hero-ric[data-cat="contorno"] { background: linear-gradient(145deg, #d3f1c4, #8fd47a); }
.r-card .cat[data-cat="dolce"], .hero-ric[data-cat="dolce"] { background: linear-gradient(145deg, #ffd0e1, #ff9cc0); }
.r-card .cat[data-cat="zuppa"], .hero-ric[data-cat="zuppa"] { background: linear-gradient(145deg, #ffe0b8, #ffb366); }
[data-tema="scuro"] .r-card .cat[data-cat], [data-tema="scuro"] .hero-ric[data-cat] { filter: saturate(.8) brightness(.62); }
.r-card .tag-riga .tag { font-size: 10.5px; }
.hero-ric { height: 120px; border-radius: 20px; display: grid; place-items: center; font-size: 64px; flex: none; }
.s-card.ricettario .hero-ric { border-radius: 0; height: 150px; font-size: 76px; }
.ricettario h3 { font-size: 19px; }
.ricettario .riga-btn .bottone { min-height: 44px; font-size: 15px; padding: 0 12px; text-decoration: none; }
.riga-info { display: flex; align-items: center; justify-content: space-between; }

/* Chef (chat) */
.pref { display: flex; flex-direction: column; gap: 12px; }
.azioni-chef { display: flex; flex-wrap: wrap; gap: 8px; }
.azioni-chef .bottone { min-height: 44px; font-size: 15px; padding: 0 14px; flex: 1 1 auto; }
.azioni-chef .bottone:first-child { flex-basis: 100%; }
.chat-log { display: flex; flex-direction: column; gap: 10px; }
.fumetto { max-width: 92%; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.fumetto > p { padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--carta); box-shadow: var(--ombra); overflow-wrap: anywhere; }
.fumetto.io { align-self: flex-end; align-items: flex-end; }
.fumetto.io > p { background: var(--accento); color: var(--su-accento); border-radius: 18px 18px 6px 18px; }
.fumetto .r-card { width: min(100%, 420px); }
.chat-scrivi { position: sticky; bottom: 0; display: flex; gap: 8px; align-items: center; background: var(--sfondo); padding: 8px 0 4px; }
.chat-scrivi input { flex: 1; min-width: 0; height: 48px; border-radius: 24px; border: 1px solid var(--linea); background: var(--carta); padding: 0 16px; }

/* + : cosa aggiungere */
.piu-voce { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; padding: 12px; border-radius: 18px; background: var(--sfondo); }
.piu-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--accento); color: var(--su-accento); display: grid; place-items: center; flex: none; }
.piu-t { display: flex; flex-direction: column; min-width: 0; }
.piu-t small { color: var(--tenue); font-size: 13px; }

/* profilo */
.profilo-testa { display: flex; align-items: center; gap: 14px; }
.avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--accento); color: var(--su-accento); display: grid; place-items: center; font: 800 26px 'Baloo 2', system-ui, sans-serif; flex: none; }
.numeri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.numero { background: var(--carta); border-radius: 16px; box-shadow: var(--ombra); padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.numero b { font: 800 24px 'Baloo 2', system-ui, sans-serif; color: var(--accento); line-height: 1.1; }
.numero span { font-size: 12.5px; color: var(--tenue); font-weight: 600; }
