/* ══════════════════════════════════════════════════════════════
   COMPONENT: Blog Post Card
   Used on: blog.html, blog-category.html, blog-post.html (related posts)
   ══════════════════════════════════════════════════════════════ */

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.blog-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.blog-card-img {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--gray-100);
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}

/* Category badge overlay */
.blog-category {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
}

.blog-category.commercial  { color: #0066cc; border: 1px solid rgba(0, 102, 204, 0.3); }
.blog-category.residential { color: #16a34a; border: 1px solid rgba(22, 163, 74, 0.3); }
.blog-category.smart-home  { color: #9333ea; border: 1px solid rgba(147, 51, 234, 0.3); }
.blog-category.tips        { color: #dc2626; border: 1px solid rgba(220, 38, 38, 0.3); }
.blog-category.news        { color: #ea580c; border: 1px solid rgba(234, 88, 12, 0.3); }

.blog-card-content {
  padding: 24px;
}

.blog-card-content h3,
.blog-card-content h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.blog-excerpt {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 14px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 12px;
}

.blog-meta time {
  font-weight: 500;
}

.blog-meta .separator {
  color: var(--gray-300);
}

.read-more {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  transition: gap 0.2s;
  gap: 4px;
}

.blog-card:hover .read-more {
  color: var(--yellow-hover);
  gap: 8px;
}

@media (max-width: 640px) {
  .blog-card-img { height: 180px; }
  .blog-card-content { padding: 20px; }
  .blog-card-content h3,
  .blog-card-content h4 { font-size: 18px; }
}
