/* =========================
   FONTES
========================= */
@font-face {
  font-family: 'GalanoGrotesqueRegular';
  src: url('/assets/fonts/GalanoGrotesqueRegular.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'GalanoGrotesqueBold';
  src: url('/assets/fonts/GalanoGrotesqueBold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'AlbraDisplay-LightItalic';
  src: url('/assets/fonts/fonte_blog/AlbraDisplay-LightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: 'AlbraDisplay-Regular';
  src: url('/assets/fonts/fonte_blog/AlbraDisplay-Regular.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'AlbraDisplay-Bold';
  src: url('/assets/fonts/fonte_blog/AlbraDisplay-Bold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
}

/* =========================
   BASE
========================= */
body {
  margin: 0;
  font-family: 'GalanoGrotesqueRegular' !important;
  background: #f9f9f9;
  color: #333;
}

/* =========================
   BREADCRUMB
========================= */
.breadcrumb-container {
  max-width: 1300px;
  margin: 20px auto 10px;
  padding: 0 25px;
}

.breadcrumb {
  font-family: 'GalanoGrotesqueRegular' !important;
  font-size: 14px;
  color: #666;
}

.breadcrumb a {
  color: #4a6fa5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #c72041;
  text-decoration: underline;
}

.breadcrumb .sep {
  margin: 0 6px;
  color: #aaa;
}

.breadcrumb span {
  color: #333;
  font-weight: 600;
}

/* =========================
   CONTAINER DO POST
========================= */
.blog-post-container {
  max-width: 1300px;
  margin: 40px auto;
  padding: 0 20px;
}

.blog-row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.blog-main {
  flex: 3;
}

.blog-sidebar {
  flex: 1;
  min-width: 260px;
  position: sticky;
  top: 100px;
  height: fit-content;
}

/* =========================
   CONTEÚDO DO POST
========================= */
.post-title {
  font-family: 'AlbraDisplay-Bold' !important;
  font-size: 52px;
  text-align: left;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 10px;
  line-height: 1.2;
  word-break: break-word;
}

.post-meta {
  font-size: 14px;
  color: #777;
  margin-bottom: 20px;
}

.post-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  margin: 20px 0;
  border-radius: 10px;
}

.post-body {
  line-height: 1.6;
  color: #444;
  text-align: justify;
  font-size: 16px;
  word-break: break-word;
}

.post-body,
.post-body * {
  font-family: 'GalanoGrotesqueRegular' !important;
}


/* =========================
   TAGS NO POST
========================= */
.post-tags-content {
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
}

.post-tags-content h4 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #c72041;
  font-weight: 600;
}

.post-tags-content .tag {
  display: inline-block;
  margin: 4px 6px 4px 0;
  padding: 6px 14px;
  font-size: 13px;
  color: #c72041;
  background: #f0f1f1;
  border-radius: 20px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.post-tags-content .tag:hover {
  background: #c72041;
  color: #fff;
}



.share-box {
  margin: 30px 0;
  padding: 15px 0;
  border-top: 2px solid var(--accent-color);
}

.share-box h3 {
  font-family: 'GalanoGrotesqueBold';
  margin-bottom: 15px;
  color: var(--dark-color);
}

.share-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.share-buttons img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.share-buttons img:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}
.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  max-width: 400px;
  text-align: center;
}
.modal-content input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
}
.close {
  float: right;
  font-size: 24px;
  cursor: pointer;
}



/* =========================
   COMENTÁRIOS
========================= */
.comments-box {
  margin-top: 40px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
}

.comments-box h3 {
  margin-bottom: 20px;
  color: #c72041;
}

.comment {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.comment strong {
  color: #2c3e50;
}

.comment .date {
  font-size: 12px;
  color: #777;
  margin-left: 10px;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.comment-form button {
  background: #c72041;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 200px;
  transition: background 0.3s;
}

.comment-form button:hover {
  background: #a31833;
}

/* =========================
   SIDEBAR
========================= */
.sidebar-box {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.sidebar-box h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #c72041;
}

/* Últimos Posts */
.recent-posts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recent-post-card {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.recent-post-card img {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.recent-post-card span {
  font-family: 'AlbraDisplay-Regular' !important;
  font-size: 16px;
  color: #606060;
  line-height: 1.2;
  word-break: break-word;
}

.recent-post-card:hover span {
  text-decoration: underline;
  color: #c72041;
}

/* TAGS (sidebar) */
.post-tags {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.post-tags .tag {
  background: transparent;
  color: grey;
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid grey;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.post-tags .tag:hover {
  color: #c72041;
  border-color: #c72041;
}

.post-tags .tag.active {
  background: #c72041;
  color: #fff;
  border-color: #c72041;
}

/* Newsletter */
.newsletter-form-blog {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form-blog input[type="email"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

.newsletter-form-blog button {
  background: #c72041;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.newsletter-form-blog button:hover {
  background: #a31833;
}

/* Banner */
.sidebar-banner {
  width: 100%;
  border-radius: 8px;
}


/* =========================
   RESPONSIVIDADE POST
========================= */

/* Tablet - até 1024px */
@media (max-width: 1024px) {
  .blog-row {
    flex-direction: column;    /* 🔹 sidebar vai para baixo */
    gap: 20px;
  }

  .blog-sidebar {
    position: relative;        /* 🔹 remove sticky */
    top: auto;
    width: 100%;
    max-width: none;
  }

  .post-title {
    font-size: 42px;           /* 🔹 título menor em tablet */
  }

  .post-body {
    font-size: 15px;
  }
}

/* Mobile - até 768px */
@media (max-width: 768px) {
  .blog-post-container {
    padding: 0 15px;
    margin: 20px auto;
  }

  .post-title {
    font-size: 32px;           /* 🔹 título ainda menor */
    line-height: 1.3;
  }

  .post-meta {
    font-size: 13px;
  }

  .post-body {
    font-size: 14px;
    line-height: 1.5;
    text-align: left;          /* 🔹 melhora leitura */
  }

  .share-buttons img {
    width: 36px;
    height: 36px;
  }

  .comment-form button {
    width: 100%;               /* 🔹 botão ocupa largura total */
  }
}

/* Mobile pequeno - até 480px */
@media (max-width: 480px) {
  .post-title {
    font-size: 26px;
  }

  .post-body {
    font-size: 13px;
  }

  .recent-post-card img {
    width: 50px;
    height: 50px;
  }

  .recent-post-card span {
    font-size: 14px;
  }

  .post-tags-content .tag {
    font-size: 11px;
    padding: 4px 10px;
  }
}
