/* Blog Post Styles */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

/* Breadcrumb Navigation */
.breadcrumb {
  padding: 1.5rem 0 1rem;
  margin-bottom: 1rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: #999;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: #666;
}

.breadcrumb-list a {
  color: #00d4ff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-list a:hover {
  color: #1ee7ff;
  text-decoration: underline;
}

.breadcrumb-list li[aria-current="page"] {
  color: #ccc;
  font-weight: 500;
}

/* Header */
.blog-post-header {
  margin-bottom: 3rem;
  padding: 2rem 0 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.blog-post-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  
  /* Sticky positioning */
  position: sticky;
  top: 70px; /* Below site header */
  background: linear-gradient(to bottom, rgba(26, 26, 46, 0.98) 0%, rgba(26, 26, 46, 0.95) 80%, transparent 100%);
  padding: 1.5rem 0 1rem;
  margin: -2rem 0 1.5rem; /* Negative margin to offset header padding */
  z-index: 50;
  backdrop-filter: blur(10px);
}

.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  color: #bbb;
  font-size: 0.95rem;
}

.blog-post-date,
.blog-post-author,
.blog-post-category,
.blog-post-reading-time {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-post-reading-time {
  color: #aaa;
  font-style: italic;
}

.blog-post-description {
  font-size: 1.2rem;
  color: #e8e8e8;
  line-height: 1.65;
  margin: 1.5rem 0;
  font-weight: 400;
}

.blog-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.blog-post-tags .tag {
  background: rgba(0, 212, 255, 0.15);
  color: #1ee7ff;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 0.85rem;
  border: 1px solid rgba(0, 212, 255, 0.4);
  font-weight: 500;
}

/* Content */
.blog-post-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #f5f5f5;
  background: rgba(0, 0, 0, 0.1);
  padding: 2rem;
  border-radius: 8px;
}

.blog-post-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  color: #ffffff;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.blog-post-content h2:first-child {
  margin-top: 0;
}

.blog-post-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #ffffff;
  line-height: 1.35;
}

.blog-post-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  color: #f8f8f8;
}

.blog-post-content p {
  margin-bottom: 1.5rem;
  color: #f0f0f0;
}

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

.blog-post-content em {
  color: #e8e8e8;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 1.75rem 0;
  padding-left: 2rem;
  color: #f0f0f0;
}

.blog-post-content li {
  margin-bottom: 0.85rem;
  line-height: 1.75;
  color: #f0f0f0;
}

.blog-post-content li strong {
  color: #ffffff;
}

.blog-post-content a {
  color: #1ee7ff;
  text-decoration: underline;
  text-decoration-color: rgba(30, 231, 255, 0.4);
  text-underline-offset: 2px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.blog-post-content a:hover {
  color: #00d4ff;
  text-decoration-color: #00d4ff;
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

.blog-post-content code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.95em;
  color: #1ee7ff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.blog-post-content pre {
  background: rgba(0, 0, 0, 0.4);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  line-height: 1.6;
}

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

.blog-post-content blockquote {
  border-left: 4px solid #00d4ff;
  padding-left: 1.75rem;
  margin: 2.5rem 0;
  color: #e0e0e0;
  font-style: italic;
  background: rgba(0, 212, 255, 0.08);
  padding: 1.25rem 1.75rem;
  border-radius: 0 8px 8px 0;
  font-size: 1.05em;
}

/* Related Games Section */
.related-games,
.related-posts {
  max-width: 920px;
  margin: 4rem auto 3rem;
  padding: 2.5rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.related-games h2,
.related-posts h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
  font-weight: 700;
}

.related-section-subtitle {
  color: #bbb;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.related-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.related-game-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.related-game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 212, 255, 0.25);
  border-color: rgba(0, 212, 255, 0.5);
}

.related-game-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.related-game-title {
  padding: 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
}

/* Related Posts Section */
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.related-post-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: rgba(255, 255, 255, 0.04);
}

.related-post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 212, 255, 0.2);
  border-color: rgba(0, 212, 255, 0.4);
}

.related-post-image,
.related-post-image-placeholder {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.related-post-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
  font-size: 3rem;
}

.related-post-content {
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
}

.related-post-content h3 {
  margin: 0 0 0.85rem 0;
  font-size: 1.15rem;
  line-height: 1.4;
}

.related-post-content h3 a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.related-post-content h3 a:hover {
  color: #00d4ff;
}

.related-post-content p {
  color: #d8d8d8;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.85rem;
}

.related-post-date {
  color: #aaa;
  font-size: 0.85rem;
}

/* Footer */
.blog-post-footer {
  max-width: 800px;
  margin: 4rem auto 0;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.blog-post-share {
  margin-bottom: 2.5rem;
}

.blog-post-share p {
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: #ffffff;
  font-size: 1.05rem;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.share-button.twitter {
  background: #000000;
  color: white;
  border-color: #333333;
}

.share-button.telegram {
  background: #0088cc;
  color: white;
}

.share-button.facebook {
  background: #1877f2;
  color: white;
}

.share-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #1ee7ff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.back-link:hover {
  color: #00d4ff;
  gap: 0.9rem;
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .blog-post {
    padding: 0 1rem 1.5rem;
  }
  
  .breadcrumb {
    padding: 1rem 0 0.75rem;
  }
  
  .breadcrumb-list {
    font-size: 0.85rem;
  }
  
  .blog-post-header {
    padding: 1.5rem 0;
  }
  
  .blog-post-title {
    font-size: 1.875rem;
    top: 60px; /* Adjust for smaller mobile header */
    padding: 1rem 0 0.75rem;
    margin: -1.5rem 0 1rem;
  }
  
  .blog-post-content {
    padding: 1.5rem;
    font-size: 1.0625rem;
  }
  
  .blog-post-content h2 {
    font-size: 1.625rem;
  }
  
  .blog-post-content h3 {
    font-size: 1.375rem;
  }
  
  .related-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
  
  .share-buttons {
    flex-direction: column;
  }
  
  .share-button {
    justify-content: center;
    width: 100%;
  }
}