/* =================== GLOBAL LIGHT THEME =================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  /* Cores principais */
  --bg-color: #fdfdfd;
  --surface-color: #fff;
  --text-color: #1c1c1c;
  --text-muted: #666666;
  --accent-color: #005f73;
  --highlight-color: #94d2bd;
  --danger-color: #e63946;
  --border-color: #e0e0e0;

  /* Sombras */
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 28px rgba(0,0,0,0.12);

  /* Bordas e raio */
  --radius: 8px;

  /* Tipografia fluida */
  --fs-sm: clamp(0.85rem, 0.2vw + 0.8rem, 0.9rem);
  --fs-base: clamp(1rem, 0.25vw + 0.9rem, 1.05rem);
  --fs-lg: clamp(1.4rem, 0.5vw + 1.2rem, 1.7rem);
}

/* =================== RESET =================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  font-size: var(--fs-base);
}

main {
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
}

/* =================== LINKS =================== */
a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--highlight-color);
  transition: width 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

a:hover::after {
  width: 100%;
}

a:active {
  color: var(--danger-color);
}

/* =================== POSTS =================== */
article.post {
  background: var(--surface-color);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding:33px;
}

article.post:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

article.post img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 30px;
  transition: transform 0.4s ease, filter 0.4s ease;
}

article.post img:hover {
  transform: scale(1.03);
  filter: brightness(1.05);
}

article.post h1 {
  font-size: var(--fs-lg);
  color: var(--accent-color);
  margin-bottom: 10px;
}

article.post h3 {
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 20px;
}

article.post time {
  display: block;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* =================== SECTIONS =================== */
section {
  margin-bottom: 40px;
}

section h2 {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-bottom: 16px;
  border-left: 4px solid var(--highlight-color);
  padding-left: 12px;
}

section ul, section ol {
  padding-left: 20px;
}

section ul li, section ol li {
  margin-bottom: 10px;
}

section strong {
  color: var(--accent-color);
}

/* =================== TABELAS =================== */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  margin-bottom: 10px;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}

table thead {
  background-color: var(--accent-color);
  color: #fff;
}

table th, table td {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  text-align: left;
  white-space: nowrap;
}

table tbody tr:hover {
  background-color: #f1f1f1;
}

/* =================== CTA =================== */
section.cta {
  background-color: var(--highlight-color);
  color: #003845;
  padding: 24px;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
}

section.cta p {
  margin: 0;
  font-size: 1.2rem;
}

/* =================== INTERLINKAGEM =================== */
section.interlinkagem {
  margin-top: 40px;
  padding: 20px;
  background: #f9f9f9;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

section.interlinkagem h3 {
  font-size: 1.3rem;
  color: var(--accent-color);
  margin-bottom: 16px;
  border-left: 4px solid var(--highlight-color);
  padding-left: 10px;
}

section.interlinkagem ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

section.interlinkagem ul li {
  margin-bottom: 12px;
}

section.interlinkagem ul li a {
  display: inline-block;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
  position: relative;
  padding-left: 20px;
}

section.interlinkagem ul li a::before {
  content: "➜";
  position: absolute;
  left: 0;
  color: var(--highlight-color);
  font-weight: bold;
}

section.interlinkagem ul li a:hover {
  color: #003845;
  transform: translateX(4px);
}

/* =================== AUTOR =================== */
.autor {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-family: 'Poppins', sans-serif;
}

.autor b {
  color: var(--text-color);
}

/* =================== RESPONSIVIDADE =================== */
@media (max-width: 768px) {
  article.post h1 { font-size: 1.6rem; }
  article.post h3 { font-size: 1rem; }
  section h2 { font-size: 1.3rem; }
  table th, table td { padding: 10px; font-size: 0.9rem; }
  section.cta p { font-size: 1rem; }
}

@media (max-width: 480px) {
  main { padding: 12px; }
  article.post { padding: 20px 12px; }
  article.post h1 { font-size: 1.4rem; }
  article.post h3 { font-size: 0.95rem; }
  section h2 { font-size: 1.2rem; }
  table th, table td { font-size: 0.85rem; }
}
/* ===== WIDGET AUTOR (VERTICAL PARA ARTICLE) ===== */
.autor-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 14px;
  padding: 24px;
  margin: 40px auto;
  max-width: 520px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  font-family: "Poppins", sans-serif;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.autor-widget:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* ===== IMAGEM ===== */
.autor-widget img {
  width: 160px;
  height: auto; /* mantém proporção natural */
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0077cc;
  margin-bottom: 18px;
}

/* ===== TEXTO ===== */
.autor-info h3 {
  font-size: 1.4rem;
  color: #222;
  margin-bottom: 6px;
}

.autor-info p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 10px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

/* ===== CONTATOS ===== */
.autor-widget .contatos {
  margin-top: 14px;
  font-size: 0.95rem;
  color: #333;
}

.autor-widget .contatos a {
  color: #0077cc;
  text-decoration: none;
  transition: color 0.3s;
}

.autor-widget .contatos a:hover {
  color: #005fa3;
}

/* ===== BOTÃO "SOBRE MIM" ===== */
.autor-widget .contatos a[title="Sobre Mim"] {
  display: inline-block;
  margin-bottom: 14px;
  padding: 10px 20px;
  border-radius: 50px;
  background: linear-gradient(135deg, #0077cc, #005fa3);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s;
}

.autor-widget .contatos a[title="Sobre Mim"]:hover {
  background: linear-gradient(135deg, #005fa3, #003f7a);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 480px) {
  .autor-widget {
    padding: 20px;
    max-width: 92%;
  }

  .autor-widget img {
    width: 140px;
  }

  .autor-info h3 {
    font-size: 1.3rem;
  }

  .autor-info p {
    font-size: 0.95rem;
  }
}

