/* Blog Page Styles - Medium-style reading layout */

/* Blog Container */
.blog-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Blog Post Layout */
.blog-post {
  background: white;
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.blog-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Blog Header */
.blog-header {
  padding: 3rem 2rem 2rem;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.blog-header h1 {
  font-family: var(--font-family-serif), Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 1rem;
}

.blog-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-author {
  font-weight: 600;
  color: var(--primary-color);
}

.blog-date {
  color: var(--gray);
}

/* Blog Content */
.blog-content {
  padding: 2rem 3rem;
  font-family: var(--font-family-serif), Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.blog-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.blog-content h2 {
  font-family: var(--font-family-serif), Georgia, serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem 0;
  color: var(--dark);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

.blog-content h3 {
  font-family: var(--font-family-serif), Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  color: var(--dark);
}

.blog-content blockquote {
  margin: 2rem 0;
  padding: 1rem 2rem;
  background: var(--light);
  border-left: 4px solid var(--primary-color);
  font-style: italic;
  color: var(--gray);
}

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

.blog-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.blog-content img {
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.blog-content code {
  background: #f4f4f4;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.blog-content pre {
  background: #f4f4f4;
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

/* Blog Navigation */
.blog-navigation {
  padding: 2rem 3rem;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.blog-nav-link:hover {
  color: var(--secondary-color);
}

.blog-nav-link.prev {
  justify-content: flex-start;
}

.blog-nav-link.next {
  justify-content: flex-end;
}

/* Blog Sidebar (for future use) */
.blog-sidebar {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.blog-sidebar h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark);
}

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

.blog-sidebar li {
  margin-bottom: 0.5rem;
}

.blog-sidebar a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-sidebar a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Blog Comments Section */
.blog-comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.blog-comments h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--dark);
}

.comment-form {
  background: var(--light);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.comment {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.comment-author {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.comment-date {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 1rem;
}

.comment-content {
  line-height: 1.6;
  color: #333;
}

/* Blog Tags */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.blog-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--light);
  color: var(--primary-color);
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--primary-color);
}

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

/* Blog Share Buttons */
.blog-share {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--light);
  border-radius: 8px;
  align-items: center;
}

.blog-share span {
  font-weight: 600;
  color: var(--dark);
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

.share-twitter { background: #1DA1F2; }
.share-facebook { background: #3B5998; }
.share-linkedin { background: #0077B5; }
.share-email { background: #EA4335; }

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--primary-color);
  z-index: 10000;
  transition: width 0.1s ease;
}

/* Responsive Blog Styles */
@media (max-width: 768px) {
  .blog-container {
    padding: 0 15px;
  }
  
  .blog-header {
    padding: 2rem 1.5rem 1.5rem;
  }
  
  .blog-header h1 {
    font-size: 2rem;
  }
  
  .blog-meta {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .blog-content {
    padding: 1.5rem;
    font-size: 1rem;
  }
  
  .blog-content h2 {
    font-size: 1.5rem;
  }
  
  .blog-content h3 {
    font-size: 1.2rem;
  }
  
  .blog-navigation {
    padding: 1.5rem;
    flex-direction: column;
    gap: 1rem;
  }
  
  .blog-share {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .blog-header h1 {
    font-size: 1.75rem;
  }
  
  .blog-content {
    padding: 1rem;
    font-size: 0.95rem;
  }
  
  .blog-content h2 {
    font-size: 1.3rem;
  }
  
  .blog-content h3 {
    font-size: 1.1rem;
  }
  
  .comment-form,
  .comment {
    padding: 1rem;
  }
}

/* Blog Archive Styles */
.blog-archive {
  display: grid;
  gap: 2rem;
}

.archive-year {
  margin-bottom: 2rem;
}

.archive-year h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

.archive-posts {
  display: grid;
  gap: 1rem;
}

.archive-post {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.archive-post:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.archive-post-date {
  font-size: 0.8rem;
  color: var(--gray);
  white-space: nowrap;
}

.archive-post-title {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.archive-post-title:hover {
  color: var(--primary-color);
}
