/* ===================================
   ABOUT PAGE
==================================== */

.about-page {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 24px;
}

.about-header {
  text-align: center;
  margin-bottom: 70px;
}

.about-header h1 {
  font-size: 2.8rem;
  letter-spacing: 0.18em;
  margin-bottom: 8px;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* =====================================
   SEÇÕES & CONTEÚDO
===================================== */

section {
  display: flex;
  gap: 48px;
  margin: 60px 0;
  align-items: flex-start;
}

.content {
  flex: 1;
  min-width: 0;
  /* Previne estouros na grid flex */
}

h2 {
  font-size: 1.4rem;
  margin-bottom: 18px;
  color: var(--accent-cyan);
}

p {
  margin-bottom: 16px;
  color: var(--text-main);
}

.content a {
  color: var(--accent-cyan);
  transition: opacity 0.15s;
}

.content a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* =====================================
   IMAGENS
===================================== */

.image {
  width: 300px;
  flex-shrink: 0;
}

.image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--panel-border);
  display: block;
}

.caption {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.image:has(img[hidden]),
.image:empty {
  display: none;
}

/* =====================================
   BLOCO DE CÓDIGO (PRE)
===================================== */

pre {
  background: var(--panel-bg);
  border: none;
  border-left: 3px solid var(--accent-cyan);
  border-radius: 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--accent-cyan);
  width: 100%;
  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

pre.center-text {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* =====================================
   RESPONSIVIDADE (MOBILE)
===================================== */

@media (max-width: 850px) {
  .about-page {
    padding: 40px 18px;
  }

  .about-header {
    margin-bottom: 40px;
  }

  .about-header h1 {
    font-size: 2.1rem;
  }

  section {
    flex-direction: column;
    gap: 20px;
    margin: 40px 0;
  }

  .image {
    width: 100%;
  }

  pre {
    padding: 12px 14px;
    font-size: 0.8rem;
  }
}