/* ============================================
   PUBLIC BLOG - Viagem em Oferta
   ============================================ */

/* --- Blog Page General --- */
.blog-page {
  background: #f9fafb;
}

.blog-header {
  background: linear-gradient(135deg, #0a1d4e 0%, #1a3a6e 100%);
  color: white;
  padding: 4rem 0 3rem;
  text-align: center;
}

.blog-header__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.blog-header__subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

/* --- Filters --- */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.blog-filter {
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}

.blog-filter:hover {
  background: rgba(255, 255, 255, 0.2);
}

.blog-filter.is-active {
  background: white;
  color: #0a1d4e;
  border-color: white;
}

/* --- Main Layout --- */
.blog-main {
  padding: 4rem 0;
  min-height: 50vh;
}

/* --- States --- */
.blog-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: #6b7280;
  gap: 1rem;
}

.blog-loading__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e7eb;
  border-top-color: #1a56f5;
  border-radius: 50%;
  animation: blog-spin 0.8s linear infinite;
}

@keyframes blog-spin {
  to { transform: rotate(360deg); }
}

.blog-empty, .post-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  color: #4b5563;
}

.blog-empty i, .post-error i {
  font-size: 3rem;
  color: #9ca3af;
  margin-bottom: 1rem;
}

.blog-empty h2, .post-error h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #111827;
}

.blog-empty p, .post-error p {
  color: #6b7280;
  margin-bottom: 1.5rem;
  max-width: 400px;
}

.blog-empty__btn, .post-error__btn {
  padding: 0.75rem 1.5rem;
  background: #1a56f5;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.blog-empty__btn:hover, .post-error__btn:hover {
  background: #0f3cc9;
}

/* --- Blog Grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Reuse tip-card styling from main css but scoped */
.blog-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.blog-card__img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #f3f4f6;
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__img {
  transform: scale(1.05);
}

.blog-card__tag {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  letter-spacing: 0.1em;
  color: white;
  text-transform: uppercase;
}

.blog-card__tag--DICAS { background: #1a56f5; }
.blog-card__tag--ATRAÇÕES { background: #f5a623; }
.blog-card__tag--DESTINOS { background: #16a34a; }
.blog-card__tag--GUIAS { background: #9333ea; }

.blog-card__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.blog-card__excerpt {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
  font-size: 0.8rem;
  color: #9ca3af;
}

.blog-card__author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-card__author i {
  color: #d1d5db;
}

/* ============================================
   INDIVIDUAL POST PAGE
   ============================================ */

.post-page {
  background: white;
}

/* --- Post Hero --- */
.post-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  max-height: 600px;
  display: flex;
  align-items: flex-end;
  background: #0a1d4e;
}

.post-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.post-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 29, 78, 0.9) 0%, rgba(10, 29, 78, 0.4) 50%, rgba(10, 29, 78, 0.1) 100%);
  z-index: 1;
}

.post-hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: 4rem;
  color: white;
}

.post-hero__category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #f5a623;
}

.post-hero__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  max-width: 900px;
}

/* --- Post Layout --- */
.post-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 3rem 0 5rem;
}

@media (min-width: 1024px) {
  .post-layout {
    flex-direction: row;
  }
  
  .post-main {
    flex: 1;
    max-width: 760px;
  }
  
  .post-sidebar {
    width: 320px;
    flex-shrink: 0;
  }
}

/* ============================================ */
/* BREADCRUMB / BACK LINK                       */
/* ============================================ */
.post-breadcrumb-wrap {
  padding: 1.5rem 0 0.5rem;
}

.post-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-500);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}

.post-breadcrumb i {
  font-size: 0.85rem;
  transition: transform 0.2s;
}

.post-breadcrumb:hover {
  color: var(--primary);
}

.post-breadcrumb:hover i {
  transform: translateX(-4px);
}


/* --- Post Meta --- */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.post-meta__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.post-meta__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 1.2rem;
}

.post-meta__info {
  display: flex;
  flex-direction: column;
}

.post-meta__name {
  font-weight: 700;
  color: #111827;
}

.post-meta__date {
  font-size: 0.85rem;
  color: #6b7280;
}

.post-meta__share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-meta__share-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
  margin-right: 0.5rem;
}

.post-meta__share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: white;
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.post-meta__share-btn:hover {
  background: #f3f4f6;
  color: #1a56f5;
  border-color: #d1d5db;
}

/* --- Post Typography & Content --- */
.post-excerpt {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #4b5563;
  font-style: italic;
  margin-bottom: 2.5rem;
}

.post-content {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #374151;
}

.post-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin: 2.5rem 0 1rem;
}

.post-content h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #1f2937;
  margin: 2rem 0 1rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content blockquote {
  border-left: 4px solid #f5a623;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: #f9fafb;
  color: #4b5563;
  font-style: italic;
  font-size: 1.15rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

.post-content ul, .post-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.post-content a {
  color: #1a56f5;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.post-content a:hover {
  color: #0f3cc9;
}

/* --- Post Sidebar --- */
.post-sidebar {
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

.post-sidebar__widget {
  background: #f9fafb;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid #e5e7eb;
}

.post-sidebar__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.post-sidebar__text {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.post-sidebar__cta {
  display: block;
  text-align: center;
  padding: 0.75rem;
  background: #1a56f5;
  color: white;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s;
}

.post-sidebar__cta:hover {
  background: #0f3cc9;
}

/* --- Share Toast --- */
.blog-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #111827;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
