/* =====================================================
   BLOG PAGE STYLES – Modern, Bold Design
   ===================================================== */

/* BLOG LAYOUT */
.blog-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

/* BLOG LIST - Grid 3 Columns */
.blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

/* BLOG CARD */
.blog-card {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(255, 10, 6, 0.2);
  border-color: var(--brand-red);
}

/* BLOG CARD IMAGES */
.blog-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  margin-bottom: 0;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.1);
}

/* BLOG CARD CONTENT */
.blog-card .badge {
  display: inline-block;
  background: rgba(255, 10, 6, 0.15);
  color: var(--brand-red);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: var(--spacing-md) var(--spacing-md) var(--spacing-sm);
  width: fit-content;
}

.blog-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 var(--spacing-md) var(--spacing-sm);
  line-height: 1.4;
}

.blog-card h2 a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.blog-card p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0 var(--spacing-md) var(--spacing-md);
  flex: 1;
}

.blog-card .meta {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 var(--spacing-md) var(--spacing-md);
  padding-top: var(--spacing-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* BLOG SIDEBAR */
.blog-sidebar {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  border: 2px solid rgba(255, 10, 6, 0.1);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.blog-sidebar h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--spacing-md);
}

.blog-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-sidebar ul li {
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-sidebar ul li:last-child {
  border-bottom: none;
}

.blog-sidebar ul li span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.blog-sidebar ul li span:hover {
  color: var(--brand-red);
}

/* HERO SECTION */
.blog-hero {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: var(--white);
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.blog-hero h1 {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

.blog-hero p {
  font-size: 1.375rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.95;
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

/* CATEGORIES */
.blog-categories {
  background: #0a0a0a;
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid var(--light-grey);
  position: sticky;
  top: 80px;
  z-index: 50;
}

.categories-list {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.category-tag {
  padding: 10px 24px;
  background: #1a1a1a;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--white);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.category-tag:hover,
.category-tag.active {
  background: var(--brand-red);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

/* ARTICLES LISTING */
.articles-section {
  padding: var(--spacing-xl) 0;
  background: #0a0a0a;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-xl);
}

.article-card {
  background: #1a1a1a;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 2px solid transparent;
}

.article-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-red);
}

.article-image {
  background: linear-gradient(135deg, var(--brand-red-light) 0%, var(--brand-red) 100%);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 4rem;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.article-image::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
}

.article-content {
  padding: var(--spacing-lg);
}

.article-meta {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  font-size: 0.875rem;
}

.article-category {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--brand-red);
}

.article-date {
  color: var(--mid-grey);
}

.article-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--white);
  line-height: 1.3;
}

.article-excerpt {
  font-size: 1rem;
  color: var(--mid-grey);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.article-card a {
  color: var(--brand-red);
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.article-card a:hover {
  gap: 12px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

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

  .blog-sidebar {
    position: static;
    margin-bottom: var(--spacing-xl);
  }
}

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

  .blog-hero p {
    font-size: 1.125rem;
  }

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

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

  .categories-list {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: var(--spacing-sm);
  }
}
