/* Designers Hub — página de Vídeo (/video/). Usa os tokens e componentes de /styles.css. */

/* ── Hero ── */
.vd-hero { position: relative; overflow: hidden; isolation: isolate; padding: 150px 0 110px; }
.vd-hero-art { position: absolute; inset: 0; z-index: -2; }
.vd-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.vd-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0c0c0c 0%, rgba(12, 12, 12, 0.92) 32%, rgba(12, 12, 12, 0.35) 62%, rgba(12, 12, 12, 0.2) 100%), linear-gradient(0deg, #0c0c0c 0%, transparent 30%); }
.vd-hero-copy { max-width: 600px; }
.vd-badge { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 24px; padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); font-size: 13px; font-weight: 500; color: var(--text); backdrop-filter: blur(10px); }
.vd-rec { width: 8px; height: 8px; border-radius: 50%; background: #ff2b3a; box-shadow: 0 0 0 4px rgba(255, 43, 58, 0.18); animation: vdRec 1.6s ease-in-out infinite; }
@keyframes vdRec { 50% { opacity: 0.35; } }
.vd-h1 { font-size: clamp(42px, 6.4vw, 84px); line-height: 1; letter-spacing: -0.035em; }
.vd-hero .lead { max-width: 540px; }
.vd-hero .hero-actions { justify-content: flex-start; }
.vd-numbers { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 40px; }
.vd-numbers dd { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.vd-numbers dt { margin-top: 2px; font-size: 13px; color: var(--muted); }

/* ── Cabeça de seção ── */
.vd-head { max-width: 680px; margin-bottom: 44px; }
.vd-head.is-center { margin-inline: auto; text-align: center; }
.vd-head.is-center .lead { margin-inline: auto; }

/* ── Galeria de presets (vídeos em loop) ── */
.vd-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.vd-clip { position: relative; overflow: hidden; margin: 0; aspect-ratio: 3 / 4; border-radius: 18px; border: 1px solid var(--line); background: #0d0e11; }
.vd-clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.vd-clip:hover video { transform: scale(1.04); }
.vd-clip figcaption { position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(8px); font-size: 12px; font-weight: 500; }
.vd-gallery-note { margin-top: 20px; text-align: center; font-size: 14px; color: var(--muted); }

/* ── Modos ── */
.vd-modes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.vd-mode { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; padding: 20px; border-radius: 20px; border: 1px solid var(--line); background: #0d0e11; color: var(--text); transition: border-color 0.3s, transform 0.3s var(--ease); }
.vd-mode:hover { border-color: var(--line-2); transform: translateY(-4px); }
.vd-mode img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.3s; }
.vd-mode:hover img { opacity: 1; }
.vd-mode::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(8, 8, 10, 0.95) 0%, rgba(8, 8, 10, 0.55) 45%, transparent 75%); }
.vd-mode > span { position: relative; z-index: 2; }
.vd-mode b { display: block; font-size: 17px; font-weight: 600; }
.vd-mode small { display: block; margin-top: 6px; font-size: 13px; line-height: 1.5; color: #c4c4cc; }
.vd-mode.is-sharingan { border-color: rgba(255, 43, 58, 0.45); }
.vd-mode.is-sharingan b { color: #ff6b75; }
.vd-mode-tag { display: inline-block; margin-bottom: 8px; padding: 2px 8px; border-radius: 999px; background: #ff2b3a; color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* ── Destaque do Sharingan ── */
.vd-sharingan { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; padding: 40px; border-radius: 30px; border: 1px solid rgba(255, 43, 58, 0.35); background: radial-gradient(70% 90% at 0% 100%, rgba(255, 43, 58, 0.16), transparent 70%), #0b0b0d; }
.vd-sharingan-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 20px; border: 1px solid var(--line); }
.vd-sharingan-media video { width: 100%; height: 100%; object-fit: cover; object-position: 60% 25%; }
.vd-sharingan .kicker { color: #ff8a93; }
.vd-sharingan em { color: #ff2b3a; }
.vd-sharingan .btn-primary { background: #ff2b3a; color: #fff; box-shadow: 0 12px 40px rgba(255, 43, 58, 0.35); }
.vd-sharingan .btn-primary:hover { background: #ff4552; }
.vd-sharingan .hero-actions { justify-content: flex-start; }

/* ── Recursos ── */
.vd-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.vd-feat { padding: 26px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); }
.vd-feat-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 13px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); }
.vd-feat-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vd-feat h3 { font-size: 17px; }
.vd-feat p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* ── Modelos ── */
.vd-models { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.vd-models span { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; }

@media (max-width: 1100px) {
  .vd-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .vd-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vd-sharingan { grid-template-columns: 1fr; padding: 26px; gap: 28px; }
  .vd-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .vd-hero { padding: 120px 0 70px; }
  .vd-hero::before { background: linear-gradient(0deg, #0c0c0c 8%, rgba(12, 12, 12, 0.78) 55%, rgba(12, 12, 12, 0.45) 100%); }
  .vd-hero-art img { object-position: 78% center; }
  .vd-numbers { gap: 22px; }
  .vd-numbers dd { font-size: 24px; }
  .vd-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .vd-clip { border-radius: 14px; }
  .vd-modes { grid-template-columns: 1fr 1fr; }
  .vd-mode { min-height: 220px; padding: 14px; }
  .vd-mode:last-child { grid-column: 1 / -1; }
  .vd-feats { grid-template-columns: 1fr; }
  .vd-sharingan { padding: 18px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .vd-rec { animation: none; }
}

/* Destaque vermelho no título do Sharingan (o estilo geral pinta de cinza) */
.vd-sharingan .title em, .vd-sharingan .title em .w { background: linear-gradient(180deg, #ff8a93 0%, #ff2b3a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Direção: bento com os seletores do app ── */
.vd-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 250px 250px 250px auto; gap: 12px; }
.vd-tile { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; border-radius: 24px; border: 1px solid var(--line); background: #0d0e11; }
.vd-tile > img, .vd-tile > video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.vd-tile:hover > img, .vd-tile:hover > video { transform: scale(1.04); }
.vd-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 8, 10, 0.1) 30%, rgba(8, 8, 10, 0.85) 100%); }
.vd-t-camera { grid-column: 1 / 3; grid-row: 1 / 3; }
.vd-t-lente { grid-column: 3 / 5; grid-row: 1; }
.vd-t-foco { grid-column: 3; grid-row: 2 / 4; }
.vd-t-luz { grid-column: 4; grid-row: 2 / 4; }
.vd-t-movimento { grid-column: 1 / 3; grid-row: 3; }
.vd-t-cor { grid-column: 1 / 5; grid-row: 4; flex-direction: row; align-items: center; gap: 28px; background: radial-gradient(60% 120% at 100% 0%, rgba(255, 255, 255, 0.05), transparent 70%), var(--card); }
.vd-t-cor::after { display: none; }

/* Painel de seleção (igual ao do app) */
.vd-panel { align-self: flex-start; max-width: 100%; padding: 10px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(12, 12, 14, 0.62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.vd-panel.is-static { flex: 1; background: transparent; border: 0; padding: 0; backdrop-filter: none; }
.vd-panel-title { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #d4d4d8; }
.vd-panel-title svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vd-chips span { padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.05); font-size: 12.5px; color: #d4d4d8; white-space: nowrap; }
.vd-chips span.is-on { border-color: #fff; background: #fff; color: #0c0c0c; font-weight: 600; }
.vd-chips.is-small span { padding: 4px 9px; font-size: 11.5px; }
.vd-tile-copy { max-width: 360px; }
.vd-tile-copy h3 { font-size: 20px; }
.vd-tile-copy p { margin-top: 6px; font-size: 14px; line-height: 1.55; color: #c4c4cc; }
.vd-t-cor .vd-tile-copy { flex: 0 0 300px; }
.vd-t-cor .vd-tile-copy p { color: var(--muted); }

/* Régua de abertura */
.vd-aperture { display: flex; flex-direction: column; gap: 9px; }
.vd-aperture-scale { display: flex; justify-content: space-between; gap: 8px; font: 500 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #a1a1aa; }
.vd-aperture-scale .is-on { color: #fff; }
.vd-aperture-track { position: relative; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.15); }
.vd-aperture-track i { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; border-radius: 50%; background: #fff; translate: -2px -50%; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18); animation: vdAperture 6s var(--ease) infinite; }
@keyframes vdAperture { 0%, 30% { left: 0; } 45%, 65% { left: 34%; } 80%, 100% { left: 0; } }

/* Paletas */
.vd-palettes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.vd-palettes span { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.vd-palettes span.is-on { border-color: #fff; }
.vd-palettes i { display: block; height: 46px; border-radius: 9px; background: linear-gradient(90deg, var(--a) 0 33%, var(--b) 33% 66%, var(--c) 66%); }
.vd-palettes b { font-size: 12px; font-weight: 500; color: #d4d4d8; }

@media (max-width: 960px) {
  .vd-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 240px; }
  .vd-t-camera { grid-column: 1 / 3; grid-row: span 2; }
  .vd-t-lente { grid-column: 1 / 3; grid-row: auto; }
  .vd-t-foco, .vd-t-luz { grid-column: auto; grid-row: span 2; }
  .vd-t-movimento { grid-column: 1 / 3; grid-row: auto; }
  .vd-t-cor { grid-column: 1 / 3; grid-row: auto; flex-direction: column; align-items: stretch; height: auto; }
  .vd-t-cor .vd-tile-copy { flex: none; }
  .vd-palettes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .vd-bento { grid-template-columns: 1fr; grid-auto-rows: 300px; gap: 10px; }
  .vd-t-camera, .vd-t-lente, .vd-t-foco, .vd-t-luz, .vd-t-movimento, .vd-t-cor { grid-column: auto; grid-row: auto; }
  .vd-t-camera { min-height: 340px; }
  .vd-tile { padding: 14px; border-radius: 20px; }
  .vd-chips span { font-size: 11.5px; padding: 5px 9px; }
  .vd-palettes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .vd-aperture-track i { animation: none; } }

/* Sharingan com a imagem nova (homem do breaking) */
.vd-mode.is-sharingan img { object-position: 60% center; }
.vd-sharingan-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.vd-panel:not(.is-static) { max-width: 460px; }
.vd-t-luz { justify-content: flex-end; }
.vd-t-luz > img { object-position: center 35%; }
.vd-t-lente { justify-content: flex-end; } .vd-t-lente .vd-panel { align-self: flex-end; } .vd-t-lente > img { object-position: center 40%; }
@media (max-width: 640px) {
  .vd-bento { grid-auto-rows: auto; }
  .vd-tile { min-height: 300px; gap: 16px; }
  .vd-t-camera { min-height: 400px; }
  .vd-t-foco, .vd-t-luz { min-height: 380px; }
  .vd-t-cor { min-height: 0; }
}
