/* YouPractice Blog Styles */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 20px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.site-nav a {
  color: #4b5563;
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover {
  color: #3b82f6;
}

.site-nav .cta-link {
  background: #3b82f6;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
}

.site-nav .cta-link:hover {
  background: #2563eb;
  color: #ffffff;
}

/* Main Content */
.site-content {
  min-height: 70vh;
  padding: 60px 0;
}

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

.blog-header {
  text-align: center;
  margin-bottom: 60px;
}

.blog-header h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1f2937;
}

.blog-header p {
  font-size: 20px;
  color: #6b7280;
}

.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.blog-post-card {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 40px;
}

.blog-post-card:last-child {
  border-bottom: none;
}

.post-card-title {
  font-size: 32px;
  margin-bottom: 12px;
}

.post-card-title a {
  color: #1f2937;
  text-decoration: none;
}

.post-card-title a:hover {
  color: #3b82f6;
}

.post-card-meta {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 16px;
}

.post-card-excerpt {
  color: #4b5563;
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.read-more {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
}

.read-more:hover {
  text-decoration: underline;
}

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

.post-header {
  margin-bottom: 40px;
}

.post-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  color: #1f2937;
  margin-bottom: 16px;
}

.post-meta {
  color: #6b7280;
  font-size: 14px;
}

.post-content {
  font-size: 18px;
  line-height: 1.8;
  color: #1f2937;
}

.post-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 24px;
  color: #1f2937;
}

.post-content h3 {
  font-size: 24px;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 16px;
  color: #1f2937;
}

.post-content h4 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
  color: #1f2937;
}

.post-content p {
  margin-bottom: 24px;
}

.post-content ul,
.post-content ol {
  margin-bottom: 24px;
  padding-left: 32px;
}

.post-content li {
  margin-bottom: 8px;
}

.post-content a {
  color: #3b82f6;
  text-decoration: none;
}

.post-content a:hover {
  text-decoration: underline;
}

.post-content blockquote {
  border-left: 4px solid #3b82f6;
  padding-left: 20px;
  margin: 24px 0;
  color: #4b5563;
  font-style: italic;
}

.post-content code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 16px;
}

.post-content pre {
  background: #1f2937;
  color: #f3f4f6;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 24px 0;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: #f3f4f6;
}

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

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.post-content table th,
.post-content table td {
  border: 1px solid #e5e7eb;
  padding: 12px;
  text-align: left;
}

.post-content table th {
  background: #f3f4f6;
  font-weight: 600;
}

.post-content hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 48px 0;
}

/* Post CTA */
.post-cta {
  background: #f3f4f6;
  border-radius: 8px;
  padding: 32px;
  margin: 48px 0;
  text-align: center;
}

.post-cta h3 {
  font-size: 24px;
  margin: 0 0 12px 0;
  color: #1f2937;
}

.post-cta p {
  color: #4b5563;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-primary {
  background: #3b82f6;
  color: #ffffff;
}

.btn-primary:hover {
  background: #2563eb;
}

/* Post Footer */
.post-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #e5e7eb;
}

.post-tags {
  margin-bottom: 24px;
}

.tag {
  display: inline-block;
  background: #f3f4f6;
  color: #4b5563;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 14px;
  margin-right: 8px;
  margin-bottom: 8px;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 20px;
}

.nav-prev,
.nav-next {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}

.nav-prev:hover,
.nav-next:hover {
  text-decoration: underline;
}

.back-to-blog {
  text-align: center;
}

.back-to-blog a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}

.back-to-blog a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  padding: 40px 0;
  margin-top: 80px;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer p {
  color: #6b7280;
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  color: #6b7280;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #3b82f6;
}

/* Responsive */
@media (max-width: 768px) {
  .site-nav {
    gap: 16px;
  }

  .blog-header h1 {
    font-size: 36px;
  }

  .post-title {
    font-size: 32px;
  }

  .post-content h2 {
    font-size: 26px;
  }

  .post-content h3 {
    font-size: 22px;
  }

  .site-footer .container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .post-navigation {
    flex-direction: column;
  }
}
