/* Individual Blog Post Page Styles */

/* Blog Post Container */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 48px;
  animation: fadeInUp 0.6s ease forwards;
}

/* Blog Post Header */
.blog-post-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--border);
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.blog-post-date {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.blog-post-category {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-post-title {
  font-size: clamp(32px, 5vw, 42px);
  margin: 0 0 16px;
  color: var(--text);
  line-height: 1.2;
  font-weight: 700;
}

.blog-post-excerpt {
  font-size: 20px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  font-weight: 400;
}

/* Blog Post Content */
.blog-post-content {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
}

.blog-post-content p {
  margin: 0 0 24px;
  color: var(--text);
}

.blog-post-content h2 {
  font-size: 28px;
  margin: 40px 0 20px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.3;
}

.blog-post-content h3 {
  font-size: 24px;
  margin: 32px 0 16px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.3;
}

.blog-post-content h4 {
  font-size: 20px;
  margin: 24px 0 12px;
  color: var(--text);
  font-weight: 600;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 0 0 24px;
  padding-left: 32px;
  color: var(--text);
}

.blog-post-content li {
  margin-bottom: 12px;
  line-height: 1.7;
}

.blog-post-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.blog-post-content a:hover {
  border-bottom-color: var(--accent);
}

.blog-post-content code {
  background: var(--card);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  color: var(--accent-2);
}

.blog-post-content pre {
  background: var(--card);
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border);
}

.blog-post-content pre code {
  background: transparent;
  padding: 0;
  color: var(--text);
}

.blog-post-content blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 24px;
  margin: 24px 0;
  font-style: italic;
  color: var(--muted);
}

.blog-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}

.blog-post-featured-image {
  margin: 32px 0;
}

.blog-post-featured-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 2px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-featured-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* Blog Post Footer */
.blog-post-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 2px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.blog-post-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-post-tags .tag {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
}

.blog-post-tags .tag:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tags-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.blog-tag {
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 16px;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.blog-tag:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.blog-back-link {
  white-space: nowrap;
}

/* Blog Post Share Section */
.blog-post-share {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-post-share p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.share-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
}

.share-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.share-button.twitter {
  color: #1DA1F2;
  border-color: #1DA1F2;
}

.share-button.twitter:hover {
  background: #1DA1F2;
  color: white;
}

.share-button.facebook {
  color: #1877F2;
  border-color: #1877F2;
}

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

/* Related Posts Section */
.related-posts {
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 0 20px 48px;
}

.related-posts h2 {
  font-size: 28px;
  margin: 0 0 32px;
  color: var(--text);
  font-weight: 600;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .blog-post {
    padding: 0 16px 32px;
  }

  .blog-post-title {
    font-size: 28px;
  }

  .blog-post-excerpt {
    font-size: 18px;
  }

  .blog-post-content {
    font-size: 16px;
  }

  .blog-post-content h2 {
    font-size: 24px;
    margin: 32px 0 16px;
  }

  .blog-post-content h3 {
    font-size: 20px;
    margin: 24px 0 12px;
  }

  .blog-post-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-post-share {
    width: 100%;
  }

  .share-buttons {
    width: 100%;
  }

  .share-button {
    flex: 1;
    justify-content: center;
    min-width: 120px;
  }

  .related-posts {
    padding: 0 16px 32px;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .blog-post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .blog-post-title {
    font-size: 24px;
  }

  .blog-post-excerpt {
    font-size: 16px;
  }
}

/* Justice.gov Button */
.justice-gov-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent-1);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  position: relative;
}

.justice-gov-button:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.justice-gov-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.justice-gov-button svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.justice-gov-button svg:last-child {
  width: 14px;
  height: 14px;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.justice-gov-button:hover svg:last-child {
  transform: translateX(2px);
  opacity: 1;
}

@media (max-width: 768px) {
  .justice-gov-button {
    padding: 12px 20px;
    font-size: 14px;
    width: 100%;
    max-width: 100%;
  }
  
  .justice-gov-button svg {
    width: 16px;
    height: 16px;
  }
  
  .justice-gov-button svg:last-child {
    width: 12px;
    height: 12px;
  }
}

