/* LeMaker Blog Styles */

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

@media (min-width: 30em) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 60em) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Blog Card */
.blog-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #357edd;
  margin-bottom: 0.5rem;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: #111;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card-title a:hover {
  color: #357edd;
}

.blog-card-excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
  flex: 1;
  margin-bottom: 1rem;
}

.blog-card-meta {
  font-size: 0.8rem;
  color: #777;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 1rem;
  margin-top: auto;
}

.blog-card-date {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.blog-card-read-time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Category Tags */
.category-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  background: white;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 0.875rem;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
}

.category-tag:hover {
  background: #357edd;
  border-color: #357edd;
  color: white;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-btn:hover {
  background: #357edd;
  border-color: #357edd;
  color: white;
}

.pagination-btn.active {
  background: #357edd;
  border-color: #357edd;
  color: white;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Latest Content Section (for main site) */
.latest-content-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 30em) {
  .latest-content-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.latest-content-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.latest-content-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.latest-content-card-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.latest-content-card-content {
  padding: 1rem;
}

.latest-content-card-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.latest-content-card-title a {
  color: #111;
  text-decoration: none;
}

.latest-content-card-title a:hover {
  color: #357edd;
}

.latest-content-card-date {
  font-size: 0.75rem;
  color: #777;
}

/* Blog Post Page Styles */
.blog-post-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  color: white;
  padding: 3rem 1rem;
}

@media (min-width: 30em) {
  .blog-post-header {
    padding: 4rem 2rem;
  }
}

.blog-post-category {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7fdbff;
  margin-bottom: 1rem;
}

.blog-post-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

@media (min-width: 30em) {
  .blog-post-title {
    font-size: 2.5rem;
  }
}

.blog-post-meta {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.blog-post-hero-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.blog-post-content {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

@media (min-width: 30em) {
  .blog-post-content {
    padding: 3rem 2rem;
  }
}

.blog-post-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #111;
}

.blog-post-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #333;
}

.blog-post-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 1.5rem;
}

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

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

.blog-post-content pre {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.blog-post-content code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.9rem;
}

.blog-post-content pre code {
  color: #f8f8f2;
}

.blog-post-content p code {
  background: #f0f0f0;
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  font-size: 0.9em;
  color: #e83e8c;
}

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

.blog-post-content a {
  color: #357edd;
  text-decoration: underline;
}

.blog-post-content a:hover {
  color: #2050a0;
}

.blog-post-content blockquote {
  border-left: 4px solid #357edd;
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: #f8f8f8;
  font-style: italic;
}

/* Warning/Note Boxes */
.notice {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.notice-warning {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
}

.notice-info {
  background: #d1ecf1;
  border-left: 4px solid #17a2b8;
}

.notice-tip {
  background: #d4edda;
  border-left: 4px solid #28a745;
}

/* Table of Contents */
.toc {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.toc-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.toc ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.toc li {
  margin-bottom: 0.5rem;
}

.toc a {
  color: #357edd;
  text-decoration: none;
  font-size: 0.9rem;
}

.toc a:hover {
  text-decoration: underline;
}

/* Related Posts */
.related-posts {
  background: #f8f8f8;
  padding: 2rem;
  margin-top: 3rem;
  border-radius: 8px;
}

.related-posts-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #333;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

@media (min-width: 30em) {
  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 60em) {
  .related-posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Share Buttons */
.share-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.share-btn {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.share-btn:hover {
  opacity: 0.8;
}

.share-btn-twitter {
  background: #1da1f2;
  color: white;
}

.share-btn-linkedin {
  background: #0077b5;
  color: white;
}

.share-btn-copy {
  background: #333;
  color: white;
  cursor: pointer;
  border: none;
}
