/* ============================================================
   AK4 LABS — Portfólio (página dedicada)
   Estende styles.css. Mesma linguagem visual: Poppins, azul de
   marca, cards em glass sobre fundo escuro.
   ============================================================ */

.portfolio-page { padding-top: 96px; padding-bottom: 40px; }

/* ─── TOPO / VOLTAR ─── */
.pf-topbar {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pf-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #c8cdd4;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}
.pf-back svg { width: 15px; height: 15px; flex-shrink: 0; }
.pf-back:hover { color: #ffffff; }

/* ─── CABEÇALHO ─── */
.pf-header {
  max-width: 720px;
  margin: 56px auto 64px;
  padding: 0 28px;
  text-align: center;
}
.pf-header .eyebrow { text-align: center; margin-bottom: 18px; }
.pf-header h1 {
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 700;
  line-height: 1.14;
  color: #ffffff;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.pf-header h1 em {
  font-style: normal;
  background: var(--silver-grad-diag);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pf-header p {
  font-size: 15px;
  color: #c8cdd4;
  line-height: 1.75;
  font-weight: 300;
  max-width: 480px;
  margin: 0 auto;
}

/* ─── GRID DE PROJETOS ─── */
.pf-grid {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pf-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 6px;
  padding: 28px 26px 64px;
  display: flex;
  flex-direction: column;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.pf-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.5s ease;
}
/* Cards clicáveis (com link publicado) */
a.pf-card { cursor: pointer; }
a.pf-card:hover,
a.pf-card:focus-visible { background: rgba(34,29,23,0.45); border-color: rgba(224,136,56,0.32); transform: translateY(-2px); }
a.pf-card:hover::before,
a.pf-card:focus-visible::before { width: 100%; }

/* Cards sem link ainda (ex: "Em construção") — sem estados de link */
div.pf-card { cursor: default; }

.pf-card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.pf-card-icon svg { width: 20px; height: 20px; stroke: #ffffff; }

.pf-card-cat {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  display: block;
}
.pf-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.25;
}
.pf-card p {
  font-size: 13.5px;
  color: #c8cdd4;
  line-height: 1.72;
  font-weight: 300;
  margin: 0 0 18px;
  flex-grow: 1;
}

.pf-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.pf-tag {
  font-size: 11px;
  font-weight: 500;
  color: #c8cdd4;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 5px 12px;
  letter-spacing: 0.01em;
}

.pf-card-link {
  position: absolute;
  left: 26px; bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}
.pf-card-link svg { width: 12px; height: 12px; transition: transform 0.25s ease; }
a.pf-card:hover .pf-card-link,
a.pf-card:focus-visible .pf-card-link { opacity: 1; transform: translateY(0); }
a.pf-card:hover .pf-card-link svg { transform: translate(2px,-2px); }

.pf-badge-progress {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0b429;
  background: rgba(240,180,41,0.1);
  border: 1px solid rgba(240,180,41,0.28);
  border-radius: 20px;
  padding: 4px 10px;
}

/* ─── LIGHT MODE (caso o toggle global seja ativado futuramente) ─── */
body.light-mode .pf-back { color: var(--text-secondary); }
body.light-mode .pf-card { background: var(--card-bg); border-color: var(--card-border); }
body.light-mode .pf-card h3 { color: var(--text-primary); }
body.light-mode .pf-card-icon { background: rgba(0,0,0,0.04); border-color: var(--card-border); }
body.light-mode .pf-card-icon svg { stroke: var(--text-primary); }

/* ─── RESPONSIVO ─── */
@media (max-width: 1024px) {
  .pf-grid { grid-template-columns: repeat(2, 1fr); padding: 0 28px; }
  .pf-topbar { padding: 0 28px; }
}
@media (max-width: 640px) {
  .portfolio-page { padding-top: 80px; }
  .pf-grid { grid-template-columns: 1fr; }
  .pf-header { margin: 44px auto 48px; }
}
