/* ============================================
   BLOG PAGE STYLES
   Magazine-style layout with featured articles
   ============================================ */

.page-blog {
  background: var(--bg-dark);
}

/* Hero Section */
.page-hero-blog {
  position: relative;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 0;
}

.hero-overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  max-width: 800px;
  padding: 2rem;
}

/* Force white text in blog page hero */
.page-hero-blog .hero-badge,
.page-hero-blog .hero-badge .mono,
.page-hero-blog .hero-title-large,
.page-hero-blog .hero-subtitle,
.page-hero-blog .hero-subtitle.mono {
  color: #ffffff !important;
}

/* Featured Article Section (dark) */
.featured-article-section {
  padding: 4rem 0;
  background: var(--bg-surface);
}

.featured-article {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  transition: transform 0.4s ease;
}

.featured-article:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
  border-color: var(--accent-blue);
}

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

.featured-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}

.featured-badge {
  position: absolute;
  top: 2rem;
  left: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--accent-blue);
  color: white;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 2;
  font-family: var(--font-heading);
}

.featured-badge i {
  font-size: 0.875rem;
}

.featured-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-card);
  color: var(--text-primary);
}

.article-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.article-date {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.article-category {
  padding: 0.25rem 0.75rem;
  background: rgba(0, 94, 184, 0.1);
  color: var(--accent-blue);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-heading);
}

.featured-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.featured-excerpt {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.btn-featured-read {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--accent-blue);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  align-self: flex-start;
}

.btn-featured-read:hover {
  background: #004a8f;
  transform: translateX(5px);
}

.btn-featured-read i {
  transition: transform 0.3s ease;
}

.btn-featured-read:hover i {
  transform: translateX(5px);
}

/* Blog Grid Section (dark) */
.blog-grid-section {
  padding: 4rem 0;
  background: var(--bg-dark);
}

.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.blog-grid-section .section-title-large {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.blog-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-tag {
  padding: 0.5rem 1.25rem;
  background: var(--bg-card);
  border: 2px solid var(--border-default);
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-tag:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.filter-tag.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: white;
}

/* Blog Masonry */
.blog-masonry {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

.blog-card-enhanced {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-default);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: scale(1);
}

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

.blog-card-enhanced.fade-out {
  opacity: 0;
  transform: scale(0.95);
}

.blog-card-enhanced.large-card {
  grid-column: span 8;
}

.blog-card-enhanced:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  border-color: var(--accent-blue);
}

.blog-image-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.blog-card-enhanced.large-card .blog-image-wrapper {
  height: 320px;
}

.blog-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-card-enhanced:hover .blog-overlay {
  opacity: 1;
}

.blog-category-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.375rem 0.875rem;
  background: rgba(0, 94, 184, 0.9);
  color: white;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
  font-family: var(--font-heading);
}

.blog-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  color: var(--text-primary);
}

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: center;
  font-size: 0.875rem;
}

.blog-date {
  color: var(--text-secondary);
}

.blog-read-time {
  color: var(--text-muted);
}

.blog-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.blog-card-enhanced.large-card .blog-title {
  font-size: 1.75rem;
}

.blog-excerpt {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex: 1;
}

.btn-blog-read {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: transparent;
  border: 2px solid var(--accent-blue);
  border-radius: 50px;
  color: var(--accent-blue);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: auto;
}

.btn-blog-read:hover {
  background: var(--accent-blue);
  color: white;
  transform: translateX(5px);
}

.btn-blog-read i {
  transition: transform 0.3s ease;
}

.btn-blog-read:hover i {
  transform: translateX(5px);
}

/* Responsive */
@media (max-width: 1024px) {
  .featured-article {
    grid-template-columns: 1fr;
  }
  
  .featured-image-wrapper {
    min-height: 300px;
  }
  
  .blog-masonry {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .blog-card-enhanced {
    grid-column: span 3;
  }
  
  .blog-card-enhanced.large-card {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .featured-content {
    padding: 2rem;
  }
  
  .blog-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .blog-masonry {
    grid-template-columns: 1fr;
  }
  
  .blog-card-enhanced,
  .blog-card-enhanced.large-card {
    grid-column: span 1;
  }
  
  .blog-image-wrapper {
    height: 200px;
  }
  
  .blog-card-enhanced.large-card .blog-image-wrapper {
    height: 240px;
  }
}
