/* --------------- PÁGINAS DE PROJETO (Aprova System, Vozes do Elisa) ---------------
   Reaproveita as variáveis, a nav, os cards e o carrossel de style2.css; aqui só
   entram as regras específicas destas páginas de detalhe (que não usam o layout
   de "uma seção = uma tela" do index2, é uma página de conteúdo normal). */

.v2-project-page {
  padding-top: calc(var(--nav-height) + 48px);
  padding-bottom: 64px;
}

/* -------- cabeçalho -------- */
.v2-project-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--v2-text-muted);
  margin-bottom: 28px;
  transition: color 0.2s ease, gap 0.2s ease;
}

.v2-project-back:hover {
  color: var(--v2-heading);
  gap: 12px;
}

.v2-project-back i {
  font-size: 0.8rem;
}

.v2-project-head {
  margin-bottom: 40px;
}

.v2-project-head .v2-headline {
  margin-bottom: 12px;
}

.v2-project-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--v2-brand-soft);
  background: rgba(181, 101, 245, 0.1);
  border: 1px solid rgba(181, 101, 245, 0.3);
}

.v2-project-role {
  color: var(--v2-text-muted);
  font-size: 0.95rem;
  max-width: 640px;
  margin-bottom: 20px;
}

/* -------- layout geral: About + Highlights empilhados à esquerda, com a galeria de
   telas ao lado direito (do tablet em diante); a timeline vem depois, ocupando a
   largura toda. No celular, uma coluna só, com a galeria antes da timeline --------  */
.v2-project-layout {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "about"
    "highlights"
    "shots"
    "timeline";
  gap: 32px;
  margin-bottom: 56px;
}

@media (min-width: 768px) {
  .v2-project-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "about      shots"
      "highlights shots"
      "timeline   timeline";
    align-items: start;
    gap: 24px 32px;
  }
}

.v2-area-about { grid-area: about; }
.v2-area-highlights { grid-area: highlights; }
.v2-area-timeline { grid-area: timeline; }
.v2-area-shots { grid-area: shots; }

.v2-project-layout h2.v2-headline {
  font-size: clamp(22px, 2.4vw, 28px);
  margin-top: 20px;
  margin-bottom: 24px;
}

/* "About the project" é o único título de destaque maior da página; "Highlights",
   "Screenshots" e "Timeline" ficam todos no mesmo tamanho, um nível abaixo */
.v2-proj-card.v2-area-about h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin-top: 20px;
  margin-bottom: 4px;
}

.v2-area-shots h2.v2-headline,
.v2-area-timeline h2.v2-headline {
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.v2-proj-card {
  /* ".v2-card" sozinho tem 300px fixos, pensado para grades de cards lado a lado;
     aqui o card preenche a coluna de texto inteira */
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.v2-proj-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 20px;
  color: var(--v2-heading);
}

.v2-proj-card p {
  color: var(--v2-text);
  line-height: 1.65;
  font-size: 0.95rem;
}

/* lista de destaques (não usa este nome no ".v2-project-stack", que já tem seu próprio layout em linha) */
.v2-proj-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.v2-proj-list li {
  position: relative;
  padding-left: 18px;
  color: var(--v2-text);
  line-height: 1.55;
  font-size: 0.9rem;
}

.v2-proj-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--v2-brand);
}

.v2-proj-list li strong {
  color: var(--v2-heading);
  font-weight: 600;
}

.v2-proj-card .v2-project-stack {
  margin-top: auto;
  padding-top: 6px;
}

/* linha vertical do tempo, com uma bolinha por marco */
.v2-milestones {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 640px;
  margin: 0;
  padding-left: 26px;
  list-style: none;
}

.v2-milestones::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--v2-line);
}

.v2-milestone {
  position: relative;
}

.v2-milestone::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 3px;
  width: 10px;
  height: 10px;
  /* o "*" de style2.css não cobre pseudo-elementos (só ele mesmo cobriria com
     "*, *::before, *::after"); sem isso aqui a borda de 2px soma por fora dos
     10px declarados e a bolinha fica 4px maior e descentralizada da linha */
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--v2-panel);
  border: 2px solid var(--v2-text-muted);
}

.v2-milestone.is-done::before {
  background: var(--v2-brand);
  border-color: var(--v2-brand);
}

.v2-milestone.is-doing::before {
  background: var(--v2-bg);
  border-color: var(--v2-brand);
  box-shadow: 0 0 0 3px rgba(181, 101, 245, 0.25);
}

.v2-milestone h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--v2-heading);
  margin-bottom: 2px;
}

.v2-milestone p {
  color: var(--v2-text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* galeria de telas: reaproveita o componente .v2-carousel (setas, bolinhas, arrastar) */
.v2-shots {
  --carousel-gap: 16px;
  --carousel-per-view: 1;
  --carousel-peek: 0px;
}

.v2-shots .v2-carousel-viewport {
  border-radius: 16px;
}

.v2-shots .v2-carousel-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(220px, 32vw, 420px);
  background: var(--v2-panel);
  border: 1px solid var(--v2-line);
  border-radius: 16px;
  overflow: hidden;
}

.v2-shots .v2-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* rodapé isolado (sem a seção de Contato acima para emprestar a borda) */
.v2-project-page .v2-footer {
  margin-top: 56px;
  border-top: 1px solid var(--v2-line);
  padding-top: 24px;
}
