/* ==========================================================================
   Blog Styles - Indition Spam Killer
   ========================================================================== */

/* Blog Hero */
.blog-hero {
  padding: 120px 0 60px;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--gray-200);
}

.blog-hero-content {
  max-width: 640px;
}

.blog-hero h1 {
  font-size: 48px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.blog-hero p {
  font-size: 18px;
  color: var(--gray-500);
}

/* Blog Section */
.blog-section {
  padding: 60px 0 100px;
}

/* Featured Article */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: 48px;
  background: var(--white);
  transition: box-shadow 0.2s;
}

.blog-featured:hover {
  box-shadow: var(--shadow-lg);
}

.blog-featured-image {
  border-radius: var(--radius);
  overflow: hidden;
}

.blog-placeholder-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: color-mix(in srgb, var(--card-color, #F79126) 12%, white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--card-color, #F79126);
}

.blog-placeholder-img.featured-img {
  --card-color: #F79126;
  aspect-ratio: 4/3;
  background: color-mix(in srgb, #F79126 12%, white);
  color: #F79126;
}

.blog-placeholder-img svg {
  width: 40%;
  height: 40%;
}

.blog-featured h2 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--dark);
  margin-bottom: 12px;
}

.blog-featured h2 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.blog-featured h2 a:hover {
  color: var(--red);
}

.blog-featured p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Blog Meta */
.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.blog-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--red-light);
  color: var(--red);
}

.cat-email-security { background: #EFF6FF; color: #2563EB; }
.cat-how-to { background: #F0FDF4; color: #16A34A; }
.cat-features { background: #FFF7ED; color: #F79126; }
.cat-business { background: #F5F3FF; color: #7C3AED; }

.blog-date {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 500;
}

.blog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-read-time {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 500;
}

.blog-read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-read-more:hover {
  color: var(--red-dark);
}

/* Filters */
.blog-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
}

.blog-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.blog-card.visible:hover {
  transform: translateY(-3px);
}

.blog-card-image {
  padding: 20px 20px 0;
}

.blog-card-content {
  padding: 20px;
}

.blog-card h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--dark);
  margin-bottom: 8px;
}

.blog-card h3 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.blog-card h3 a:hover {
  color: var(--red);
}

.blog-card p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Newsletter */
.blog-newsletter {
  background: var(--dark);
  padding: 80px 0;
  text-align: center;
}

.newsletter-content {
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-content h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.newsletter-content p {
  font-size: 16px;
  color: var(--gray-400);
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-sm);
  background: var(--gray-800);
  color: var(--white);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input::placeholder { color: var(--gray-500); }
.newsletter-form input:focus { border-color: var(--red); }

/* Nav active state */
.nav-links a.active {
  color: var(--red);
}

/* Blog preview section on homepage */
.blog-preview-section {
  padding: 100px 0;
  background: var(--gray-50);
}

.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.blog-preview-footer {
  text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .blog-featured {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-hero h1 { font-size: 32px; }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .blog-featured {
    padding: 24px;
  }

  .blog-featured h2 {
    font-size: 20px;
  }
}
