/* =====================================================
   Blog Page - Professional Design System
   ===================================================== */

:root {
  --primary: #5D4CDA;
  --primary-light: #7867E8;
  --text-dark: #000;
  --text-muted: #666;
  --text-light: #888;
  --bg-light: #fafafa;
  --bg-white: #fff;
  --border-color: #eaeaea;
}

/* =====================================================
   Hero Section
   ===================================================== */
.blog-hero {
  position: relative;
  padding: 140px 0 80px;
  background: #000;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(93, 76, 218, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.blog-hero .hero-background {
  display: none;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 24px;
}

.hero-badge .badge-content {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 13px;
}

.blog-hero-title {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff !important;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.blog-hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  align-items: center;
}

.hero-stats .stat-item {
  text-align: center;
}

.hero-stats .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.hero-stats .stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-stats .stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

/* =====================================================
   Category Filter
   ===================================================== */
.category-filter-section {
  background: var(--bg-white);
  padding: 32px 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 72px;
  z-index: 100;
}

.category-pills-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.category-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.category-pill.active {
  background: #000;
  border-color: #000;
  color: #fff;
}

.pill-count {
  background: rgba(0, 0, 0, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.category-pill.active .pill-count {
  background: rgba(255, 255, 255, 0.2);
}

/* =====================================================
   Featured Article
   ===================================================== */
.featured-article-section {
  padding: 64px 0;
  background: var(--bg-light);
}

.featured-article {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
}

.featured-image-wrapper {
  position: relative;
  height: 100%;
  min-height: 400px;
}

.featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.featured-overlay {
  position: absolute;
  top: 24px;
  left: 24px;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  background: #000;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.featured-content {
  padding: 48px;
}

.article-category {
  display: inline-block;
  background: rgba(93, 76, 218, 0.1);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

.featured-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.featured-excerpt {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.meta-item {
  font-size: 14px;
  color: var(--text-light);
}

.meta-divider {
  color: var(--border-color);
}

.btn-read-featured {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #000;
  color: #fff;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-read-featured:hover {
  background: #1a1a1a;
  color: #fff;
  transform: translateY(-2px);
}

/* =====================================================
   Blog Articles Grid
   ===================================================== */
.blog-articles-section {
  padding: 80px 0;
  background: var(--bg-white);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.btn-view-all:hover {
  color: var(--primary);
}

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

.article-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.article-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.article-image-wrapper {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.article-content {
  padding: 24px;
}

.article-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.article-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
}

.article-date {
  font-size: 12px;
  color: var(--text-light);
}

/* =====================================================
   Newsletter Section
   ===================================================== */
.newsletter-section {
  padding: 80px 0;
  background: #000;
  color: #fff;
}

.newsletter-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.newsletter-subtitle {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 32px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 15px;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--primary);
}

.newsletter-btn {
  padding: 14px 24px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.newsletter-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

/* =====================================================
   Animations
   ===================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.6s ease forwards;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-reveal {
  opacity: 0;
  transform: translateY(40px);
  animation: cardReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 991px) {
  .blog-hero {
    padding: 100px 0 60px;
  }
  
  .blog-hero-title {
    font-size: 2.5rem;
  }
  
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-stats {
    gap: 32px;
  }
}

@media (max-width: 767px) {
  .blog-hero-title {
    font-size: 2rem;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .hero-stats .stat-divider {
    display: none;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .featured-content {
    padding: 32px;
  }
  
  .category-pills {
    justify-content: flex-start;
  }
}
