/* A vitrine da principal (partials/showcase-stage.php + assets/showcase.js). */

.vt { position: relative; z-index: 2; padding: 36px 0 110px; min-height: 100vh; display: grid; align-items: start;
    /* O scroll suave da principal desconta scroll-margin e o scroll-padding da página (72px):
       com isto, "Projetos" deixa a secção logo abaixo do cabeçalho. */
    scroll-margin-top: -66px; }
.vt-in { width: min(1480px, 100% - 48px); margin-inline: auto; display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 36px; align-items: stretch; }

/* lista à esquerda */
.vt-side { display: flex; flex-direction: column; min-width: 0; }
.vt-title { font-family: var(--font-display); font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1.1; margin: 10px 0 22px; color: #fff; }
.vt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vt-item {
    position: relative; overflow: hidden; width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 12px; text-align: left; cursor: pointer;
    font: inherit; color: #cfdae8; border-radius: 14px; background: rgba(12,24,42,.55); border: 1px solid rgba(127,211,245,.12);
    transition: background .25s, border-color .25s, color .25s, transform .25s;
}
.vt-item:hover { border-color: rgba(127,211,245,.4); color: #fff; transform: translateX(4px); }
.vt-item.is-on { color: #fff; background: linear-gradient(90deg, rgba(21,112,239,.32), rgba(12,24,42,.7)); border-color: rgba(127,211,245,.5); }
.vt-item-logo { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; background: #fff; color: #0b1f3a; font-weight: 900; font-size: .8rem; }
.vt-item-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.vt-item-txt { display: grid; min-width: 0; }
.vt-item-txt b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-item-txt small { color: #7e8eab; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-item.is-on .vt-item-txt small { color: #7fd3f5; }
/* a barra de tempo do projeto em exibição */
.vt-item-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #7fd3f5, #1570ef); }
.vt-item.is-on .vt-item-bar { animation: vtBar var(--vt-dur, 9s) linear forwards; }
.vt.is-paused .vt-item.is-on .vt-item-bar { animation-play-state: paused; }
@keyframes vtBar { to { transform: scaleX(1); } }
.vt-side-foot { margin-top: auto; padding-top: 22px; }
.vt-all { color: #7fd3f5; font-weight: 800; }
.vt-side-foot p { margin: 10px 0 0; color: #7e8eab; font-size: .84rem; line-height: 1.5; }

/* palco à direita */
/* Cabe entre o cabeçalho e a barra de navegação de baixo quando se chega pelo menu. */
.vt-stage { position: relative; min-width: 0; height: clamp(460px, calc(100vh - 210px), 840px); }
.vt-browser { position: absolute; inset: 0 0 0 0; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); background: #0b1626; box-shadow: 0 40px 110px rgba(0,0,0,.55); display: flex; flex-direction: column; }
.vt-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: rgba(13,17,23,.92); border-bottom: 1px solid rgba(255,255,255,.08); position: relative; }
.vt-dots { display: flex; gap: 7px; }
.vt-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.vt-dots i:nth-child(2) { background: #febc2e; }
.vt-dots i:nth-child(3) { background: #28c840; }
.vt-url { flex: 1; display: flex; align-items: center; min-width: 0; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86rem; color: #e6eef8; white-space: nowrap; overflow: hidden; }
.vt-proto { color: #7e8eab; }
.vt-caret { width: 1px; height: 1.1em; margin-left: 1px; background: #7fd3f5; animation: vtCaret 1s steps(1) infinite; }
@keyframes vtCaret { 50% { opacity: 0; } }
.vt-load { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.vt-load i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #7fd3f5, #1570ef); box-shadow: 0 0 10px #1ba8e6; }
.vt.is-loading .vt-load i { animation: vtLoad .7s ease-out forwards; }
@keyframes vtLoad { to { width: 100%; } }
.vt-view { position: relative; flex: 1; overflow: hidden; background: #0d1f35; }
/* A captura é a página inteira: desce devagar enquanto o projeto está à vista. */
.vt-shot { position: absolute; left: 0; top: 0; width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: translateY(0) scale(1.02);
    transition: opacity .6s ease; will-change: transform, opacity; }
.vt-shot.is-on { opacity: 1; transform: translateY(0) scale(1); }

/* cartão do projeto, por cima do canto do palco */
.vt-card {
    position: absolute; right: 22px; bottom: 22px; z-index: 3; width: min(440px, calc(100% - 44px)); max-height: calc(100% - 100px); overflow: auto;
    padding: 22px; border-radius: 18px; background: rgba(8,21,39,.86); border: 1px solid rgba(127,211,245,.26);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 24px 60px rgba(0,0,0,.5); transition: opacity .35s, transform .35s;
}
.vt.is-switching .vt-card { opacity: 0; transform: translateY(10px); }
.vt-card-head { display: flex; gap: 12px; align-items: center; }
.vt-card-logo { width: 46px; height: 46px; border-radius: 12px; overflow: hidden; background: #fff; flex-shrink: 0; }
.vt-card-logo:empty { display: none; }
.vt-card-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.vt-card-head strong { display: block; color: #fff; font-size: 1.12rem; }
.vt-card-head span { color: #93a2b6; font-size: .82rem; }
.vt-summary { margin: 14px 0 0; color: #cfdae8; font-size: .95rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.vt-quote { margin: 14px 0 0; padding-left: 14px; border-left: 2px solid rgba(127,211,245,.55); color: #eaf1fa; font-size: .95rem; line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; animation: vtIn .5s ease both; }
.vt-quote cite { display: block; margin-top: 6px; color: #93a2b6; font-size: .8rem; font-style: normal; }
@keyframes vtIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.vt-card-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.vt-open { padding: 9px 16px; border-radius: 999px; color: #fff; font-weight: 800; font-size: .88rem; background: linear-gradient(135deg, #1570ef, #1ba8e6); }
.vt-count { color: #7e8eab; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.vt-ctrl { margin-left: auto; display: flex; gap: 6px; }
.vt-ctrl button { width: 34px; height: 34px; border-radius: 50%; cursor: pointer; color: #fff; font-size: 1rem; line-height: 1; background: rgba(255,255,255,.06); border: 1px solid rgba(127,211,245,.3); transition: border-color .2s, background .2s; }
.vt-ctrl button:hover { border-color: #7fd3f5; background: rgba(27,168,230,.15); }
.vt-ctrl [data-play] { font-size: .7rem; letter-spacing: -2px; }

@media (max-width: 1100px) {
    .vt-in { grid-template-columns: 1fr; gap: 22px; }
    .vt-list { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: none; }
    .vt-list li { flex: 0 0 auto; }
    .vt-item:hover { transform: none; }
    .vt-side-foot { display: none; }
    .vt-stage { height: auto; min-height: 0; display: grid; gap: 14px; }
    .vt-browser { position: relative; inset: auto; aspect-ratio: 16 / 10; }
    .vt-card { position: relative; right: auto; bottom: auto; width: 100%; max-height: none; }
}
@media (max-width: 620px) {
    .vt { padding: 56px 0 90px; min-height: 0; }
    .vt-in { width: calc(100% - 32px); }
    .vt-browser { aspect-ratio: 3 / 4; }
    .vt-ctrl button { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
    .vt-shot, .vt-card, .vt-item { transition: none; }
    .vt-item.is-on .vt-item-bar, .vt-caret, .vt.is-loading .vt-load i { animation: none; }
}
