/* ============ PORTFOLIO.CSS — Media, Gallery, Achievements ============ */

/* ---- Section headers ---- */
.section-head {
  max-width: 640px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head .lede {
  margin-top: 12px;
}

/* ---- Process / Experience steps ---- */
.process {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.proc-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  transition: background 200ms ease;
}
.proc-step:first-child { border-top: 1px solid var(--line); }
.proc-step:hover { background: var(--bg-soft); padding-inline: 20px; margin-inline: -20px; border-radius: var(--radius); }

.proc-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 6px;
}
.proc-body h3 {
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}
.proc-desc {
  color: var(--ink-2);
  margin: 0;
  max-width: 680px;
}

.achievement {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(232,160,32,.1);
  border: 1px solid rgba(232,160,32,.3);
  font-size: 13px;
  color: #7A5A00;
  font-weight: 600;
}

/* ---- Projects ---- */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.project-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  transition: all 200ms ease;
}
.project-row:hover {
  background: rgba(45,95,166,.03);
  padding-inline: 20px;
  margin-inline: -20px;
  border-radius: var(--radius);
}
.project-row h3 {
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}
.project-row p {
  color: var(--ink-2);
  margin: 0;
  max-width: 640px;
  line-height: 1.65;
}

/* ---- Formation / Studies ---- */
.studies {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 48px;
  border-top: 1px solid var(--line);
}
.study {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.study h3 {
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
}
.study p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.status {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  font-family: var(--font-mono);
  text-transform: uppercase;
  background: rgba(34,197,94,.1);
  color: #16A34A;
}
/* Last 2 studies = Concluído */
.studies article:nth-last-child(-n+2) .status {
  background: rgba(45,95,166,.08);
  color: var(--primary);
}

/* ---- Qualifications / Certifications ---- */
.qualifications {
  margin-bottom: 32px;
  padding: 28px 32px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.qualifications-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.qual-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qual-list li {
  font-size: 14.5px;
  color: var(--ink-2);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.qual-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---- Skills block ---- */
.skills-block {
  padding: 28px 32px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 0;
}
.skill-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tags li {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--bg);
  border: 1.5px solid var(--line-2);
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
  transition: all 200ms ease;
  cursor: default;
}
.skill-tags li:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(45,95,166,.05);
}

/* ---- Publication ---- */
.pub-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.book-slot {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}
.book-slot img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.pub-meta p {
  margin: 0 0 14px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}
.pub-meta strong { color: var(--ink); }
.pub-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.pub-links a {
  font-weight: 600;
  color: var(--primary);
  font-size: 14px;
  border-bottom: 1.5px solid rgba(45,95,166,.3);
  padding-bottom: 2px;
  transition: border-color 200ms ease, color 200ms ease;
}
.pub-links a:hover {
  color: var(--accent-hover);
  border-color: var(--accent);
}

/* ---- Contact ---- */
.contact-block { max-width: 720px; }
.contact-row {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.channels {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.channels li a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--ink-2);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  transition: all 200ms ease;
  text-decoration: none;
}
.channels li a:hover {
  background: rgba(45,95,166,.05);
  border-color: var(--primary);
  color: var(--primary);
}

/* ---- Media blocks ---- */
.media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media:empty { display: none; }

/* ---- Band (alternate bg sections) ---- */
.band {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

/* ---- Note text ---- */
.note {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .pub-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .book-slot {
    aspect-ratio: 2/1;
    max-height: 200px;
  }
  .study {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .project-row {
    flex-direction: column;
  }
  .qualifications,
  .skills-block {
    padding: 22px 20px;
  }
}
