/* Blog Page - Specific Styles */

/* Page Hero */
.page-hero {
  text-align: center;
  padding: 48px 20px 32px;
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease forwards;
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin: 0 0 12px;
}

.page-subtitle {
  font-size: 20px;
  color: var(--muted);
  margin: 0;
}

/* Blog Section */
.blog-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.blog-container {
  width: 100%;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

/* Blog Card */
.blog-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
  border-color: var(--accent);
}

/* Blog Card Header */
.blog-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-date {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.blog-category {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-category .dropdown-badge {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 8px;
  margin-left: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  vertical-align: middle;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
  animation: beaconPulse 2s ease-in-out infinite;
}

/* Blog Title */
.blog-title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.blog-card:hover .blog-title {
  color: var(--accent-2);
}

/* Blog Excerpt */
.blog-excerpt {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
  flex-grow: 1;
}

/* Read More Link */
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
  margin-top: auto;
}

.blog-read-more:hover {
  color: var(--accent-2);
  gap: 10px;
}

.blog-read-more::after {
  content: '→';
  transition: transform 0.2s ease;
}

.blog-read-more:hover::after {
  transform: translateX(4px);
}

/* Load More Container */
.blog-load-more-container {
  text-align: center;
  margin-top: 32px;
}

/* Empty State */
.blog-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.blog-empty h2 {
  margin: 0 0 12px;
  color: var(--text);
}

.blog-empty p {
  margin: 0;
  font-size: 16px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-hero {
    padding: 32px 12px 24px;
  }

  .blog-section {
    padding: 0 12px 32px;
  }

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

  .blog-card {
    padding: 24px;
  }

  .blog-title {
    font-size: 20px;
  }

  .blog-excerpt {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .blog-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-date {
    font-size: 12px;
  }

  .blog-category {
    font-size: 11px;
    padding: 3px 8px;
  }
}

/* Animation for blog cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

