/* Alloro · pagine senza schermata nel mockup (profilo, ricerca, liste, account, testi legali): stessi componenti e token */

/* profilo */
.profile-head { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.profile-head > div { display: grid; gap: 10px; min-width: 0; }
.profile-head h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; }
.profile-head .handle { color: var(--ink-2); }
.profile-head .bio { max-width: 60ch; }
.profile-head .website { display: flex; gap: 6px; align-items: center; min-width: 0; font-size: 15px; }
.profile-head .website svg { width: 16px; height: 16px; flex: none; color: var(--ink-2); }
.profile-head .website a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats { display: flex; gap: 16px; flex-wrap: wrap; font-size: 15px; }
.stats a { color: var(--ink-2); text-decoration: none; }
.stats a:hover { color: var(--ink); text-decoration: underline; }
.stats strong { color: var(--ink); font-family: var(--f-mono); font-weight: 500; }

/* ricettari */
.ccard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px 20px; display: grid; gap: 6px; }
.ccard h3 { font-size: 19px; font-weight: 700; }
.ccard h3 a { color: inherit; text-decoration: none; }
.ccard h3 a:hover { text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 3px; }
.ccard p { font-size: 14px; color: var(--ink-2); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }

/* elenchi di persone, notifiche, condivisioni */
.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.list > li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.list > li:first-child { border-top: 0; }
.list .grow { flex: 1; min-width: 0; line-height: 1.35; }
.list .grow small { display: block; color: var(--ink-2); font-size: 13px; }
.list a { text-decoration: none; }
.list a:hover { text-decoration: underline; }
.notifications li.unread { background: var(--sage-soft); }
.notifications li.unread .grow > a { font-weight: 600; }
.notifications li:first-child.unread { border-radius: var(--r-m) var(--r-m) 0 0; }

/* ricerca */
.search-bar { display: grid; grid-template-columns: minmax(0, 1fr) 200px auto; gap: 10px; align-items: center; }
/* "Solo le mie", per chi ha fatto l'accesso: sotto il campo di testo */
.search-bar .check { grid-column: 1; grid-row: 2; align-items: center; }
.search-bar .check input { margin: 0; }
.search-bar .input-wrap .input { padding-left: 40px; }
@media (max-width: 760px) { .search-bar { grid-template-columns: minmax(0, 1fr) auto; } .search-bar > :first-child, .search-bar .check { grid-column: 1 / -1; grid-row: auto; } }

/* menu dell'account */
.subnav { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.subnav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.subnav a:hover { color: var(--ink); background: var(--surface-2); }
.subnav a[aria-current="page"] { color: var(--ink); background: var(--sage-soft); }

/* moduli dentro un pannello */
.form-stack, .panel form { display: grid; gap: 18px; }
.panel form.inline-form { display: inline; }
.inline-fields { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inline-fields .input { flex: 1; min-width: 200px; width: auto; }

/* testi lunghi (privacy, termini) */
.prose { display: grid; gap: 14px; max-width: 72ch; }
.prose h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; }
.prose h2 { font-size: 22px; font-weight: 700; margin-top: 12px; }
.prose ul { padding-left: 22px; display: grid; gap: 8px; }

/* pagina 404: il piatto vuoto fa da zero */
.e404 { max-width: 640px; margin-inline: auto; width: 100%; justify-items: center; text-align: center; padding-block: 48px 64px; }
.e404__art { display: flex; align-items: center; gap: 6px; font: 800 clamp(96px, 22vw, 168px)/1 var(--f-display); color: var(--ink); letter-spacing: -0.04em; }
.e404__plate { width: .9em; height: .9em; filter: drop-shadow(0 10px 18px rgba(31,58,43,.14)); animation: e404-wobble 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
.e404__text { display: grid; gap: 12px; justify-items: center; }
.e404__text h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; }
.e404__text h1 em { font-style: normal; color: var(--brand); }
.e404__text p { color: var(--ink-2); max-width: 52ch; }
.e404__search { width: 100%; }
.e404__tip { color: var(--ink-2); font-size: 14px; }
@keyframes e404-wobble { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .e404__plate { animation: none; } }

/* la spesa: ricette con le porzioni, poi gli ingredienti da spuntare */
.shop-recipes .grow { font-weight: 600; }
.shop-recipes form, .shop .stepper form { display: contents; }
.shop-items { display: grid; gap: 8px; }
.shop-items h2 { font-size: 24px; font-weight: 700; }
.shop-items .list > li { padding: 0; }
.shop-items .check { flex: 1; align-items: center; gap: 0; color: var(--ink); font-size: 15px; }
.shop-items .check input[type="checkbox"] { margin: 0 0 0 16px; }
.shop-items .check label { flex: 1; min-height: 48px; display: flex; align-items: center; padding: 6px 12px; font-size: 15px; color: inherit; cursor: pointer; overflow-wrap: anywhere; }
.shop-items .check .q { padding-right: 16px; font-size: 14px; }
.shop-items .check:has(input:checked) { color: var(--ink-2); }
.shop-items .check:has(input:checked) label { text-decoration: line-through; }
.shop .empty svg { width: 40px; height: 40px; }
.shop .empty strong { color: var(--ink); font-size: 18px; }
