/* =================== GLOBAL LIGHT THEME =================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --bg-color: #f9f9fb;
  --surface-color: #ffffff;
  --text-color: #2a2a2a;
  --text-muted: #666666;

  --accent-color: #005f73;
  --highlight-color: #94d2bd;
  --danger-color: #e63946;

  --border-color: #e5e7eb;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.12);

  --radius: 14px;

  /* 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', Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  font-size: var(--fs-base);
}

/* =================== 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);
}

/* =================== MAIN =================== */
main {
  max-width: 900px;
  margin: 40px auto;
  padding: 15px;
}

/* =================== POSTS =================== */
.post {
  cursor:pointer;
  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;
}

.post:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.post img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 320px;
  border-bottom: 1px solid var(--border-color);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.post img:hover {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.post .content {
  padding: 24px;
}

.post h2 {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 12px;
}

.post time {
  display: block;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: 16px;
}

.post-desc {
  font-size: var(--fs-base);
  color: var(--text-muted);
  margin-bottom: 12px;
}

.post-desc a.ler-mais {
  color: var(--danger-color);
  font-weight: 600;
  margin-left: 6px;
  transition: color 0.3s ease;
}

.post-desc a.ler-mais:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* =================== RESPONSIVIDADE =================== */
@media (max-width: 768px) {
  main {
    margin: 20px auto;
    padding: 12px;
  }

  .post .content {
    padding: 18px;
  }

  .post h2 {
    font-size: 1.4rem;
  }

  .post img {
    max-height: 240px;
  }
}
/* ===== WIDGET AUTOR ===== */
.autor-widget {
    background: var(--surface-color, #fff);
    border: 1px solid var(--border-color, #ddd);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    padding: 24px;
    max-width: 950px;
    width: 95%;
    margin: 50px auto;
    display: flex;
    align-items: center;
    gap: 28px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    word-wrap: break-word;
}

.autor-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

.autor-widget img {
    width: 140px;
    height: 170px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--accent-color, #4B6CB7);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.autor-widget img:hover {
    transform: scale(1.05);
}

.autor-info {
    flex: 1;
    min-width: 0; /* evita quebra de layout */
}

.autor-info h3 {
    font-size: 1.8rem;
    color: var(--text-color, #222);
    margin-bottom: 8px;
    word-break: break-word;
}

.autor-info p {
    font-size: 1rem;
    color: var(--text-muted, #555);
    line-height: 1.6;
    margin-bottom: 12px;
    word-break: break-word;
}

.autor-info a {
    color: var(--accent-color, #4B6CB7);
    text-decoration: underline;
}

/* ===== CONTATOS ===== */
.autor-widget .contatos {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.autor-widget .contatos a {
    display: inline-block;
    padding: 8px 14px;
    background: #4B6CB7;
    color: #FFFFFF;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    white-space: nowrap;
}

.autor-widget .contatos a:hover {
    background: #182848;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* ===== BOTÃO DESTAQUE ===== */
.autor-widget .contatos a.destaque {
    background: #4d9bac !important;
    color: var(--surface-color, #fff);
    font-weight: 700;
}

.autor-widget .contatos a.destaque:hover {
    background: #E55A5A !important;
}

/* ===== Responsivo ===== */
@media (max-width: 768px) {
    .autor-widget {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }

    .autor-widget img {
        width: 120px;
        height: 150px;
    }

    .autor-info h3 {
        font-size: 1.5rem;
    }

    .autor-info p {
        font-size: 0.95rem;
    }

    .autor-widget .contatos {
        justify-content: center;
    }
}
