/* ==========================================================
   Full Professor — page.css
   Páginas estáticas (About, Contact, Publications, etc.)
   ========================================================== */

.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-family: var(--fp-font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
}

.page-content {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fp-ink-soft);
}

.page-content a {
  color: var(--fp-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Página 404 — página "arrancada de um livro" ----------- */
.torn-page {
  position: relative;
  background: #faf6ec;
  padding: 2.5rem 2.5rem;
  margin-top: 1.25rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  transform: rotate(-0.6deg);
  text-align: center;
  font-family: 'Times New Roman', Times, serif;
}

.torn-page .page-title {
  font-family: inherit;
}

.torn-page .page-content {
  font-family: inherit;
  max-width: 520px;
  margin-inline: auto;
}

.torn-page::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
  background: #faf6ec;
  clip-path: polygon(
    0% 100%, 4% 0%, 8% 100%, 12% 0%, 16% 100%, 20% 0%, 24% 100%, 28% 0%,
    32% 100%, 36% 0%, 40% 100%, 44% 0%, 48% 100%, 52% 0%, 56% 100%, 60% 0%,
    64% 100%, 68% 0%, 72% 100%, 76% 0%, 80% 100%, 84% 0%, 88% 100%, 92% 0%,
    96% 100%, 100% 0%, 100% 100%
  );
}

/* --- Hero — página de Publicações ------------------------ */
.publications-hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.publications-hero-image {
  aspect-ratio: 21/9;
  overflow: hidden;
  border-radius: 12px;
  background: var(--fp-surface-2);
  margin-bottom: 1.5rem;
}

.publications-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.publications-hero-title {
  font-family: var(--fp-font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.publications-hero-intro {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fp-ink-soft);
}

/* --- Lista de publicações --------------------------------- */
.pub-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.pub-item {
  padding: 1.5rem 0;
  border-top: 0.5px solid var(--fp-border);
}

.pub-item:last-child {
  border-bottom: 0.5px solid var(--fp-border);
}

.pub-title {
  font-family: var(--fp-font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.375rem;
}

.pub-title a {
  color: var(--fp-ink);
  text-decoration: none;
}

.pub-title a:hover {
  color: var(--fp-accent);
}

.pub-year {
  font-weight: 400;
  color: var(--fp-ink-muted);
}

.pub-authors {
  font-size: 0.875rem;
  color: var(--fp-ink-muted);
  margin: 0 0 0.75rem;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pub-links a,
.pub-links .pub-bibtex-btn {
  display: inline-block;
  font-family: inherit;
  line-height: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 3px 12px;
  border-radius: 99px;
  border: 0.5px solid var(--fp-border);
  background: none;
  color: var(--fp-accent-mid);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--fp-transition);
}

.pub-links a:hover,
.pub-links .pub-bibtex-btn:hover {
  background: var(--fp-accent-light);
  color: var(--fp-accent-mid);
  border-color: #afa9ec;
}

/* --- Painel de BibTeX -------------------------------------- */
.bibtex-dialog {
  width: min(560px, 90vw);
  padding: 1.5rem;
  border: none;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.bibtex-dialog::backdrop {
  background: rgba(15, 17, 23, 0.5);
}

.bibtex-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.bibtex-dialog-header h3 {
  font-family: var(--fp-font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}

.bibtex-dialog-close {
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--fp-ink-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: all var(--fp-transition);
}

.bibtex-dialog-close:hover {
  background: var(--fp-surface-2);
  color: var(--fp-ink);
}

.bibtex-code {
  max-height: 40vh;
  overflow: auto;
  padding: 1rem;
  background: var(--fp-surface-2);
  border-radius: 8px;
  font-size: 0.8125rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0 0 1rem;
}

.bibtex-copy-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  background: var(--fp-accent);
  color: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--fp-transition);
}

.bibtex-copy-btn:hover {
  background: var(--fp-accent-mid);
}

/* --- Publicação — página individual ----------------------- */
.single-publication {
  max-width: 760px;
  margin: 0 auto;
}

.pub-single-image {
  aspect-ratio: 21/9;
  overflow: hidden;
  border-radius: 12px;
  background: var(--fp-surface-2);
  margin-bottom: 2rem;
}

.pub-single-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pub-single-header {
  margin-bottom: 1.5rem;
}

.pub-single-title {
  font-family: var(--fp-font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.pub-single-byline {
  font-size: 0.9375rem;
  color: var(--fp-ink-muted);
  margin: 0;
}

.pub-single-year {
  white-space: nowrap;
}

.pub-single-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  margin-bottom: 2rem;
  border-top: 0.5px solid var(--fp-border);
  border-bottom: 0.5px solid var(--fp-border);
}

.pub-share {
  display: flex;
  gap: 0.5rem;
}

.pub-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0.5px solid var(--fp-border);
  color: var(--fp-ink-muted);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all var(--fp-transition);
}

.pub-share-btn:hover {
  background: var(--fp-accent-light);
  color: var(--fp-accent-mid);
  border-color: #afa9ec;
}

.pub-single-abstract {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--fp-ink-soft);
  margin-bottom: 2rem;
}

.pub-single-meta {
  font-size: 0.875rem;
  color: var(--fp-ink-muted);
  margin: 0 0 1.5rem;
}

.pub-single-type {
  font-weight: 600;
  color: var(--fp-ink-soft);
}

.pub-single-keywords {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  padding-top: 1.5rem;
  border-top: 0.5px solid var(--fp-border);
}

.pub-single-keywords-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fp-ink-muted);
}

.pub-keyword-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding: 0;
  margin: 0;
}

.pub-keyword-list li {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 99px;
  border: 0.5px solid var(--fp-border);
  color: var(--fp-ink-soft);
}

/* --- Página About ------------------------------------------ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

@media (min-width: 900px) {
  .about-intro {
    grid-template-columns: 320px 1fr;
  }
}

.about-intro-image img {
  border-radius: 12px;
  border: 1px solid var(--fp-border);
}

.about-intro-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.about-intro-role {
  color: var(--fp-ink-muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

.about-bio {
  margin-bottom: 1.5rem;
}

.about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.about-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--fp-transition), color var(--fp-transition), border-color var(--fp-transition);
}

.about-cta-primary {
  background: var(--fp-accent);
  color: #fff;
  border: 1px solid var(--fp-accent);
}

.about-cta-primary:hover {
  background: var(--fp-accent-mid);
  border-color: var(--fp-accent-mid);
}

.about-cta-secondary {
  background: transparent;
  color: var(--fp-accent-mid);
  border: 1px solid var(--fp-accent);
}

.about-cta-secondary:hover {
  background: var(--fp-accent-light);
}

.about-social {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.about-social a {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 99px;
  border: 1px solid var(--fp-border);
  color: var(--fp-ink-soft);
  font-size: 0.8rem;
  text-decoration: none;
  transition: border-color var(--fp-transition), color var(--fp-transition);
}

.about-social a:hover {
  border-color: var(--fp-accent);
  color: var(--fp-accent-mid);
}

/* --- Timeline de experiência --------------------------------- */
.about-timeline-section {
  margin-top: 2.5rem;
}

.about-timeline {
  position: relative;
  padding-left: 1.75rem;
  border-left: 2px solid var(--fp-border);
}

.about-timeline h3 {
  position: relative;
  font-size: 1.15rem;
  margin: 2rem 0 0.35rem;
}

.about-timeline h3:first-child {
  margin-top: 0;
}

.about-timeline h3::before {
  content: '';
  position: absolute;
  left: -2.15rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--fp-accent);
  border: 2px solid var(--fp-surface);
  box-shadow: 0 0 0 2px var(--fp-border);
}

.about-timeline p {
  color: var(--fp-ink-muted);
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}

.about-timeline ul {
  margin: 0 0 0.5rem;
  padding-left: 1.25rem;
  color: var(--fp-ink-soft);
}

/* --- Página Contact ------------------------------------------ */
.contact-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.contact-intro {
  color: var(--fp-ink-muted);
  margin-top: 0.5rem;
}

.contact-notice {
  max-width: 640px;
  margin: 0 auto 2rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
}

.contact-notice-success {
  background: var(--fp-accent-light);
  color: var(--fp-accent-mid);
}

.contact-notice-error {
  background: #fdeceb;
  color: #b3261e;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 300px;
  }
}

.contact-field-website {
  position: absolute;
  left: -9999px;
}

.contact-field {
  margin: 0 0 1.25rem;
}

.contact-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fp-ink-soft);
  margin-bottom: 0.375rem;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 0.5px solid var(--fp-border);
  border-radius: 6px;
  font-size: 0.9375rem;
  font-family: var(--fp-font-body);
  background: var(--fp-surface);
  color: var(--fp-ink);
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--fp-accent);
  box-shadow: 0 0 0 3px var(--fp-accent-light);
}

.contact-submit {
  padding: 0.75rem 2rem;
  background: var(--fp-accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--fp-transition);
}

.contact-submit:hover {
  background: var(--fp-accent-mid);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-info-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--fp-accent-light);
  color: var(--fp-accent-mid);
}

.contact-info-item p {
  margin: 0.375rem 0 0;
  color: var(--fp-ink-soft);
}

.contact-map {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--fp-border);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

/* --- Serviço/Projeto — imagem destacada, página individual ---- */
.single-media-image img {
  border-radius: 12px;
  border: 1px solid var(--fp-border);
  margin-bottom: 1.5rem;
}

.service-single-cta {
  margin-top: 2rem;
}

.service-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 2rem;
  background: var(--fp-accent);
  color: #fff;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--fp-transition);
}

.service-cta-btn:hover {
  background: var(--fp-accent-mid);
}

/* --- Projeto — artigos relacionados, página individual --------- */
.project-related-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 0.5px solid var(--fp-border);
}

.project-related-section .fp-section-title {
  margin-bottom: 1.5rem;
}
