/* =============================================
   PETSHOP - stylesBlog.css
   Blog page specific styles
   ============================================= */

/* HERO */
.blog-hero {
  background: linear-gradient(135deg, #fff8f4 0%, #fff0f5 50%, #f0fff0 100%);
  padding: 7rem 2rem 3rem;
  text-align: center;
}

.blog-search-wrap {
  margin-top: 2rem;
  max-width: 500px;
  margin-inline: auto;
}

.blog-search {
  width: 100%;
  padding: 1rem 1.75rem;
  border: 2.5px solid var(--gray);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  background: white;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.blog-search:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,145,77,0.12); }

/* CATEGORY FILTERS */
.blog-cats-section { background: white; border-bottom: 1px solid var(--gray); }

.blog-cat-filters {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0;
  scrollbar-width: none;
}

.blog-cat-filters::-webkit-scrollbar { display: none; }

.blog-cat-btn {
  background: transparent;
  border: 2px solid var(--gray);
  padding: 0.55rem 1.25rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  color: var(--text-mid);
}

.blog-cat-btn:hover, .blog-cat-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}

/* FEATURED POST */
.featured-post-section { padding: 3rem 2rem; }

.featured-post {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  align-items: center;
}

.featured-post-img {
  height: 420px;
  position: relative;
  overflow: hidden;
}

.featured-post-img img { width: 100%; height: 100%; object-fit: cover; }

.featured-overlay {
  position: absolute;
  top: 1rem; left: 1rem;
}

.blog-cat-badge {
  background: white;
  color: var(--orange);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.featured-post-content { padding: 2.5rem 2.5rem 2.5rem 0; }

.post-cat-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.post-cat-tag.cuidados { background: rgba(255,145,77,0.12); color: var(--orange); }
.post-cat-tag.alimentacao { background: rgba(255,209,102,0.2); color: #b8860b; }
.post-cat-tag.saude { background: rgba(76,175,80,0.12); color: var(--green-dark); }
.post-cat-tag.comportamento { background: rgba(155,89,182,0.12); color: #7b2d8b; }
.post-cat-tag.adocao { background: rgba(233,30,99,0.12); color: #c2185b; }

.featured-post-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.featured-post-excerpt {
  color: var(--text-mid);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-av {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
}

.author-nm { font-weight: 800; font-size: 0.9rem; display: block; }
.author-role { font-size: 0.78rem; color: var(--text-light); }

.post-info {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.post-info span { font-size: 0.82rem; color: var(--text-light); font-weight: 700; }

/* BLOG LAYOUT */
.blog-main-section { padding: 3rem 2rem 5rem; }

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Post Card */
.post-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.post-img { position: relative; height: 200px; overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-card:hover .post-img img { transform: scale(1.06); }

.post-cat-badge {
  position: absolute;
  bottom: 10px; left: 10px;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
}

.post-cat-badge.cuidados { background: var(--orange); color: white; }
.post-cat-badge.alimentacao { background: var(--yellow); color: #7a6000; }
.post-cat-badge.saude { background: var(--green); color: white; }
.post-cat-badge.comportamento { background: #9B59B6; color: white; }
.post-cat-badge.adocao { background: #E91E63; color: white; }

.post-content { padding: 1.25rem; }
.post-date { font-size: 0.78rem; color: var(--text-light); font-weight: 700; }
.post-title { font-family: var(--font-display); font-size: 1.1rem; margin: 0.4rem 0 0.6rem; line-height: 1.35; }
.post-summary {
  color: var(--text-mid);
  font-size: 0.87rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-light);
}

.post-author-sm { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 700; color: var(--text-mid); }

.auth-av-sm {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 0.75rem;
}

.read-time { font-size: 0.78rem; color: var(--text-light); font-weight: 700; }

/* BLOG SIDEBAR */
.blog-widget {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.blog-widget-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gray-light);
}

.popular-posts { display: flex; flex-direction: column; gap: 0.75rem; }

.popular-post {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition);
  padding: 0.4rem;
  border-radius: 8px;
}

.popular-post:hover { background: var(--gray-light); }

.pp-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: rgba(255,145,77,0.25);
  min-width: 28px;
  line-height: 1;
}

.pp-info { flex: 1; }
.pp-title { font-size: 0.85rem; font-weight: 800; line-height: 1.3; display: block; margin-bottom: 0.2rem; }
.pp-views { font-size: 0.75rem; color: var(--text-light); }

.blog-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.blog-tag {
  background: var(--gray-light);
  border: 1.5px solid var(--gray);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-mid);
}

.blog-tag:hover { background: var(--orange); border-color: var(--orange); color: white; }

.blog-newsletter-widget {
  background: linear-gradient(135deg, var(--orange), var(--yellow)) !important;
  color: white;
  text-align: center;
}

.blog-newsletter-widget h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0.5rem 0 0.4rem;
}

.blog-newsletter-widget p { font-size: 0.85rem; opacity: 0.9; margin-bottom: 1rem; }

.mini-newsletter {
  display: flex;
  gap: 0;
  border-radius: 50px;
  overflow: hidden;
}

.mini-newsletter input {
  flex: 1;
  padding: 0.65rem 1rem;
  border: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
}

.mini-newsletter button {
  background: var(--text-dark);
  color: white;
  border: none;
  padding: 0.65rem 1rem;
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  transition: var(--transition);
}

.mini-newsletter button:hover { background: #000; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .blog-layout { grid-template-columns: 1fr 260px; }
}

@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post-img { height: 280px; }
  .featured-post-content { padding: 2rem; }
}

@media (max-width: 600px) {
  .posts-grid { grid-template-columns: 1fr; }
  .blog-sidebar { grid-template-columns: 1fr; }
}
