/* =================================
   DARK THEME COLOR PALETTE
   ================================= */
/* 
  - Backgrounds: #121212 (main), #2a2a2a (cards), #555555 (placeholders)
  - Text: #ffffff (headings), #cccccc (body), #999999 (meta)
  - Borders: #555555 (primary), #666666 (hover)
*/

/* =================================
   LAYOUT & SPACING
   ================================= */
.main-wrapper {
  padding-top: 3rem;
}

.section-blog-hero {
  padding-top: 2rem;
  background-color: #121212;
}

.blog-hero_component {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 2rem;
  color: #ffffff;
}

.blog-posts_component {
  width: 100%;
  background-color: #121212;
}

.blog-post {
  max-width: 1040px;
  margin: 0 auto;
  background-color: #121212;
}

.blog-post-content {
  max-width: 1200px;
  margin: 0 auto;
  color: #ffffff;
}

/* =================================
   BLOG POSTS GRID
   ================================= */
.blog-posts_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  grid-auto-rows: 1fr;
}

.blog-posts_item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-posts_link-block {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
  border: 1px solid #555555;
  background-color: #2a2a2a;
}

.blog-posts_link-block:hover {
  transform: translateY(-4px);
  text-decoration: none;
  color: inherit;
}

.blog-posts_image-wrapper {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background-color: #2a2a2a;
}

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

.blog-posts_link-block:hover .blog-posts_image {
  transform: scale(1.05);
}

.blog-posts_content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-posts_title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
  margin: 0;
}

.blog-posts_excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #cccccc;
  margin: 0;
  flex-grow: 1;
}

.blog-posts_meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #555555;
  color: #999999;
}

/* =================================
   CATEGORY & META TAGS
   ================================= */
.blog-posts_category,
.blog-post-category,
.blog-post-date,
.blog-post-read-time {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #cccccc;
  padding: 0.25rem 0.75rem;
  background-color: #2a2a2a;
  border-radius: 12px;
  display: inline-block;
  width: fit-content;
}

/* =================================
   BLOG POST PAGE
   ================================= */
.blog-post-header {
  text-align: center;
  margin-bottom: 3rem;
  color: #ffffff;
}

.blog-post-meta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.blog-post-hero {
  margin-bottom: 3rem;
  text-align: center;
}

.blog-post-hero-image {
  width: 100%;
  max-width: 1000px;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #555555;
  margin: 0 auto;
  display: block;
}

.blog-post-footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #555555;
}

.back-to-blog {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #2a2a2a;
  color: #ffffff;
  text-decoration: none;
  border-radius: 12px;
  transition: background-color 0.3s ease;
  font-weight: 500;
}

.back-to-blog:hover {
  background-color: #666666;
}

/* =================================
   TYPOGRAPHY
   ================================= */
.heading-large {
  font-size: 3rem;
  color: #ffffff;
}

.blog-post-content h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 0 0 2.5rem 0;
  font-weight: 600;
  color: #ffffff;
}

.blog-post-content h2 {
  font-size: 1.75rem;
  line-height: 1.3;
  margin: 2.5rem 0 1.5rem 0;
  font-weight: 600;
  color: #ffffff;
}

.blog-post-content h3 {
  font-size: 1.25rem;
  line-height: 1.4;
  margin: 2rem 0 1rem 0;
  font-weight: 600;
  color: #ffffff;
}

.blog-post-content p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #cccccc;
}

.blog-post-content ul, 
.blog-post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.blog-post-content li {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
  color: #cccccc;
}

.blog-post-content strong {
  font-weight: 600;
  color: #ffffff;
}

/* =================================
   CODE BLOCKS
   ================================= */
.blog-post-content pre {
  background-color: #2a2a2a;
  border: 1px solid #555555;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  overflow-x: auto;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

.blog-post-content code {
  background-color: #2a2a2a;
  border: 1px solid #666666;
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  color: #ffffff;
}

.blog-post-content pre code {
  background-color: transparent;
  border: none;
  padding: 0;
}

.blog-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
}

/* =================================
   RESPONSIVE DESIGN
   ================================= */
@media screen and (max-width: 991px) {
  .main-wrapper {
    padding-top: 2.5rem;
  }
  
  .blog-posts_grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  
  .blog-posts_image-wrapper {
    height: 200px;
  }
}

@media screen and (max-width: 767px) {
  .main-wrapper {
    padding-top: 2rem;
  }
  
  .blog-hero_component {
    padding: 1rem 0;
  }
  
  .heading-large {
    font-size: 2rem;
  }
  
  .blog-posts_grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .blog-posts_image-wrapper {
    height: 180px;
  }
  
  .blog-posts_content {
    padding: 1rem;
  }
  
  .blog-posts_title {
    font-size: 1.25rem;
  }
  
  .blog-post-hero img {
    height: 250px;
    border-radius: 8px;
  }
  
  .blog-post-content h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .blog-post-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }
  
  .blog-post-content h3 {
    font-size: 1.125rem;
    margin-top: 1.5rem;
  }
}
