/*
 * animeunity-v2 · landing (`/` while Admin › Settings › Show Front Page is on)
 * View: resources/themes/animeunity-v2/views/frontend/front-page.blade.php
 *
 * Colours are the theme's own tokens (so .light works too):
 *   surfaces  --tw-fore-800 (card) / --tw-fore-700 (raised) / --tw-back-1000 (deep)
 *   lines     --tw-fore-600 / --tw-fore-500
 *   text      --tw-text-50 (headings) / -100 / -200 / -300 (muted)
 *   action    --tw-blue-300 (button) · --tw-blue-200 (focus) · --tw-blue-100 (links)
 * Radius 6px everywhere (the theme's --border-radius), 8px on the posters.
 */
.v2l { --v2l-ease: cubic-bezier(.22, 1, .36, 1); font-family: Overpass, sans-serif; color: rgb(var(--tw-text-100)); padding-bottom: 2.5rem; }
.v2l-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 1024px) { .v2l-wrap { padding: 0 2rem; } }

/* hero */
.v2l-hero { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 3rem; align-items: center; padding-top: 2.5rem; padding-bottom: 1rem; }
.v2l-hero--solo { grid-template-columns: minmax(0, 1fr); }
.v2l-h1 { margin: 0 0 1.25rem; max-width: 16em; font-size: 2.5rem; line-height: 1.1; font-weight: 500; letter-spacing: -.025em; text-wrap: balance; color: rgb(var(--tw-text-50)); }
.v2l-q { display: flex; align-items: center; gap: .75rem; width: 100%; max-width: 640px; height: 52px; padding: 0 4px 0 14px; border-radius: 6px; background: rgb(var(--tw-fore-800)); border: 1px solid rgb(var(--tw-fore-500)); transition: border-color .15s var(--v2l-ease), background-color .15s var(--v2l-ease); }
.v2l-q:focus-within { border-color: rgb(var(--tw-blue-200)); background: rgb(var(--tw-fore-700)); }
.v2l-q-i { flex: none; color: rgb(var(--tw-text-300)); }
.v2l-q input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: rgb(var(--tw-text-50)); font: 400 17px Overpass, sans-serif; }
.v2l-q input::placeholder { color: rgb(var(--tw-text-300)); }
.v2l-kbd { flex: none; padding: 2px 6px; border-radius: 4px; border: 1px solid rgb(var(--tw-fore-500)); color: rgb(var(--tw-text-300)); font: 400 12px/16px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.v2l-q button { flex: none; height: 44px; padding: 0 1.25rem; border: 0; border-radius: 6px; background: rgb(var(--tw-blue-300)); color: #fff; font: 500 15px Overpass, sans-serif; cursor: pointer; transition: filter .15s var(--v2l-ease), transform .12s var(--v2l-ease); }
.v2l-q button:hover { filter: brightness(1.1); }
.v2l-q button:active { transform: scale(.98); }
.v2l-q button:focus-visible, .v2l-tag:focus-visible, .v2l-feat:focus-visible, .v2l-pc:focus-visible, .v2l-faq summary:focus-visible { outline: 2px solid rgb(var(--tw-blue-200)); outline-offset: 2px; }

.v2l-pop { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 640px; margin-top: 1rem; }
.v2l-pop-l { margin-right: 4px; font-size: 13px; color: rgb(var(--tw-text-300)); }
.v2l-tag { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 6px; background: rgb(var(--tw-fore-800)); border: 1px solid rgb(var(--tw-fore-600)); color: rgb(var(--tw-text-200)); font-size: 13px; text-decoration: none; transition: color .15s var(--v2l-ease), border-color .15s var(--v2l-ease); }
.v2l-tag:hover { color: rgb(var(--tw-text-50)); border-color: rgb(var(--tw-fore-500)); }

/* poster fan */
.v2l-fan { position: relative; height: 380px; }
.v2l-pc { position: absolute; top: 20px; left: 50%; width: 210px; aspect-ratio: 230 / 326; border-radius: 8px; overflow: hidden; border: 1px solid rgba(var(--tw-text-50), .1); background: rgb(var(--tw-fore-800)); box-shadow: 0 24px 48px rgba(0, 0, 0, .5); transition: transform .35s var(--v2l-ease); }
.v2l-pc img { width: 100%; height: 100%; object-fit: cover; }
.v2l-pc-c { z-index: 3; top: 0; width: 230px; transform: translateX(-50%); }
.v2l-pc-l { z-index: 1; transform: translateX(calc(-50% - 120px)) translateY(28px) rotate(-8deg); }
.v2l-pc-r { z-index: 2; transform: translateX(calc(-50% + 120px)) translateY(28px) rotate(8deg); }
.v2l-pc-l::after, .v2l-pc-r::after { content: ""; position: absolute; inset: 0; background: rgba(var(--tw-back-1000), .25); transition: background-color .35s var(--v2l-ease); }
.v2l-fan:hover .v2l-pc-l { transform: translateX(calc(-50% - 140px)) translateY(24px) rotate(-10deg); }
.v2l-fan:hover .v2l-pc-r { transform: translateX(calc(-50% + 140px)) translateY(24px) rotate(10deg); }
.v2l-pc:hover::after { background: transparent; }
.v2l-pc-c:hover { transform: translateX(-50%) translateY(-4px); }

/* features: one panel, four cells; icon and title on one line */
.v2l-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 1.5rem; }
.v2l-feats > .v2l-feat { background: rgb(var(--tw-fore-800)); border: 1px solid rgb(var(--tw-fore-600)); border-left-width: 0; }
.v2l-feats > .v2l-feat:first-child { border-left-width: 1px; border-radius: 6px 0 0 6px; }
.v2l-feats > .v2l-feat:last-child { border-radius: 0 6px 6px 0; }
.v2l-feat { display: flex; flex-direction: column; padding: 1rem; color: inherit; text-decoration: none; transition: background-color .15s var(--v2l-ease); }
.v2l-feats > .v2l-feat:hover { background: rgb(var(--tw-fore-700)); }
.v2l-feat-h { display: flex; align-items: center; gap: 10px; font-size: 16px; line-height: 22px; font-weight: 500; color: rgb(var(--tw-text-50)); }
.v2l-ib { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: rgb(var(--tw-back-1000)); border: 1px solid rgb(var(--tw-fore-600)); color: rgb(var(--tw-text-200)); font-size: 12px; transition: color .15s var(--v2l-ease); }
.v2l-feat:hover .v2l-ib { color: rgb(var(--tw-blue-100)); }
.v2l-feat-p { margin-top: 8px; font-size: 14px; line-height: 20px; color: rgb(var(--tw-text-200)); }
.v2l-go { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px; font-size: 14px; color: rgb(var(--tw-text-300)); transition: color .15s var(--v2l-ease); }
.v2l-go span { transition: transform .15s var(--v2l-ease); }
.v2l-feat:hover .v2l-go { color: rgb(var(--tw-blue-100)); }
.v2l-feat:hover .v2l-go span { transform: translateX(2px); }

/* article + FAQ */
.v2l-read { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; padding-top: 2.5rem; }
.v2l-read--solo { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.v2l-read h2 { margin: 0 0 1rem; font-size: 24px; line-height: 30px; font-weight: 500; letter-spacing: -.01em; color: rgb(var(--tw-text-50)); }
.v2l-prose { font-size: 15px; line-height: 24px; color: rgb(var(--tw-text-200)); }
.v2l-prose h2 ~ h2 { margin-top: 1.5rem; font-size: 18px; line-height: 24px; }
.v2l-prose h3 { margin: 1.25rem 0 .5rem; font-size: 16px; font-weight: 500; color: rgb(var(--tw-text-50)); }
.v2l-prose p { margin: 0 0 .75rem; }
.v2l-prose strong { font-weight: 500; color: rgb(var(--tw-text-50)); }
.v2l-prose a, .v2l-faq-a a { color: rgb(var(--tw-blue-100)); text-decoration: none; }
.v2l-prose a:hover, .v2l-faq-a a:hover { text-decoration: underline; }
.v2l-prose ul { margin: 0 0 .75rem; padding: 0; list-style: none; }
.v2l-prose li { padding: .5rem 0; border-top: 1px solid rgb(var(--tw-fore-600)); }
.v2l-prose li:last-child { border-bottom: 1px solid rgb(var(--tw-fore-600)); }

.v2l-faq { position: sticky; top: 5rem; }
.v2l-faq details { border-top: 1px solid rgb(var(--tw-fore-600)); }
.v2l-faq details:last-child { border-bottom: 1px solid rgb(var(--tw-fore-600)); }
.v2l-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 14px 0; list-style: none; cursor: pointer; font-weight: 500; color: rgb(var(--tw-text-100)); transition: color .15s var(--v2l-ease); }
.v2l-faq summary::-webkit-details-marker { display: none; }
.v2l-faq summary:hover { color: rgb(var(--tw-text-50)); }
.v2l-faq-i { flex: none; font-size: 11px; color: rgb(var(--tw-text-300)); transition: transform .2s var(--v2l-ease); }
.v2l-faq details[open]:not([data-closing]) .v2l-faq-i { transform: rotate(45deg); }
.v2l-faq-a { overflow: hidden; padding-right: 2rem; font-size: 15px; line-height: 24px; color: rgb(var(--tw-text-200)); }
.v2l-faq-a > :last-child { margin-bottom: 0; padding-bottom: 1rem; }
.v2l-faq-a p { margin: 0 0 .75rem; }

@media (max-width: 1023px) {
    .v2l-hero { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-top: 2rem; }
    .v2l-h1 { font-size: 2rem; }
    .v2l-q { height: 48px; }
    .v2l-q button { height: 40px; padding: 0 1rem; }
    .v2l-kbd { display: none; }
    .v2l-fan { height: 260px; }
    .v2l-pc { width: 140px; }
    .v2l-pc-c { width: 156px; }
    .v2l-pc-l { transform: translateX(calc(-50% - 84px)) translateY(20px) rotate(-8deg); }
    .v2l-pc-r { transform: translateX(calc(-50% + 84px)) translateY(20px) rotate(8deg); }
    .v2l-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .v2l-feats > .v2l-feat, .v2l-feats > .v2l-feat:first-child, .v2l-feats > .v2l-feat:last-child { border-width: 1px 1px 0 0; border-radius: 0; }
    .v2l-feats > .v2l-feat:nth-child(odd) { border-left-width: 1px; }
    .v2l-feats > .v2l-feat:nth-child(n+3) { border-bottom-width: 1px; }
    .v2l-feats > .v2l-feat:nth-child(1) { border-radius: 6px 0 0 0; }
    .v2l-feats > .v2l-feat:nth-child(2) { border-radius: 0 6px 0 0; }
    .v2l-feats > .v2l-feat:nth-child(3) { border-radius: 0 0 0 6px; }
    .v2l-feats > .v2l-feat:nth-child(4) { border-radius: 0 0 6px 0; }
    .v2l-read { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .v2l-faq { position: static; }
}
@media (max-width: 479px) {
    .v2l-feats { grid-template-columns: minmax(0, 1fr); }
    .v2l-feats > .v2l-feat, .v2l-feats > .v2l-feat:nth-child(n) { border-width: 1px 1px 0; border-radius: 0; }
    .v2l-feats > .v2l-feat:first-child { border-radius: 6px 6px 0 0; }
    .v2l-feats > .v2l-feat:last-child { border-bottom-width: 1px; border-radius: 0 0 6px 6px; }
}
@media (prefers-reduced-motion: reduce) { .v2l-pc, .v2l-faq-i { transition: none; } }

/* "Vai alla home" (solid) + "Archivio" (outlined), under the search */
.v2l-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.v2l-home, .v2l-alt { display: inline-flex; align-items: center; gap: .5rem; height: 40px; padding: 0 1rem; border-radius: 6px; font-size: 15px; font-weight: 500; text-decoration: none; transition: background-color .15s var(--v2l-ease), border-color .15s var(--v2l-ease), color .15s var(--v2l-ease); }
.v2l-home { background: rgb(var(--tw-text-50)); color: rgb(var(--tw-back-1000)); }
.v2l-home:hover { background: rgb(var(--tw-text-100)); }
.v2l-home-i { font-size: 11px; }
.v2l-alt { border: 1px solid rgb(var(--tw-fore-500)); color: rgb(var(--tw-text-100)); }
.v2l-alt:hover { border-color: rgb(var(--tw-text-300)); color: rgb(var(--tw-text-50)); }
.v2l-home:focus-visible, .v2l-alt:focus-visible { outline: 2px solid rgb(var(--tw-blue-200)); outline-offset: 2px; }
.v2l-actions + .v2l-pop { margin-top: 1.25rem; }
