/* ═══════════════════════════════════════════════════════════
   BLOG PAGE — Hero, Filter Pills, Blog Grid, Cards
   Agencia OZ — css/blog.css
   Deps: base.css, shared-pages.css
   ═══════════════════════════════════════════════════════════ */

/* ─── BLOG HERO ──────────────────────────────────────────── */
.blog-hero {
  padding: 120px 24px 80px;
  text-align: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(181, 114, 75, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.blog-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200, 181, 131, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.blog-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.blog-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--white);
  letter-spacing: -1px;
}

.blog-hero p {
  font-size: 18px;
  color: var(--gold-light);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
}

/* ─── FILTER PILLS ───────────────────────────────────────── */
.filter-section {
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 0 24px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.filter-pill {
  background-color: var(--navy-light);
  border: 1px solid transparent;
  color: var(--light-gray);
  padding: 10px 20px;
  border-radius: 24px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.filter-pill:hover {
  border-color: var(--copper);
  color: var(--copper);
}

.filter-pill.active {
  background-color: var(--copper);
  color: var(--white);
  border-color: var(--copper);
}

/* ─── BLOG GRID ──────────────────────────────────────────── */
.blog-section {
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 0 24px 120px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

/* ─── BLOG CARD ──────────────────────────────────────────── */
.blog-card {
  background-color: var(--navy-light);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(181, 114, 75, 0);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  opacity: 1;
  animation: blogFadeIn 0.5s ease-out forwards;
}

.blog-card.hidden {
  display: none;
}

@keyframes blogFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.blog-card:hover {
  transform: scale(1.02);
  border-color: var(--copper);
  box-shadow: 0 0 30px rgba(181, 114, 75, 0.3);
}

.blog-image-container {
  position: relative;
  width: 100%;
  padding-bottom: 60%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}

.blog-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.blog-card-content {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  background-color: rgba(181, 114, 75, 0.2);
  color: var(--copper);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: capitalize;
}

.blog-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-excerpt {
  font-size: 14px;
  color: var(--warm-gray);
  margin-bottom: 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--warm-gray);
  padding-top: 16px;
  border-top: 1px solid rgba(181, 114, 75, 0.1);
  margin-bottom: 16px;
}

.blog-read-more {
  color: var(--copper);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-read-more:hover {
  color: var(--copper-light);
  transform: translateX(4px);
}

/* ─── RESPONSIVE (blog-specific) ─────────────────────────── */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .blog-hero h1 { font-size: 48px; }
  .blog-hero p { font-size: 16px; }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .blog-hero {
    padding: 80px 24px 60px;
  }
  .blog-hero h1 { font-size: 36px; }
  .blog-hero p { font-size: 16px; }
  .filter-pills { gap: 10px; }
  .filter-pill { padding: 8px 16px; font-size: 13px; }
  .blog-section { padding: 0 24px 80px; }
}

@media (max-width: 480px) {
  .blog-hero {
    padding: 60px 16px 40px;
  }
  .blog-hero h1 {
    font-size: 28px;
    margin-bottom: 12px;
  }
  .blog-hero p { font-size: 14px; }
  .filter-pills { gap: 8px; }
  .filter-pill { padding: 8px 14px; font-size: 12px; }
  .blog-section { padding: 0 16px 60px; }
  .blog-card-content { padding: 20px 16px; }
  .blog-title { font-size: 18px; margin-bottom: 10px; }
  .blog-excerpt { font-size: 13px; margin-bottom: 12px; }
}
