/* Base styles - Light theme */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #ffffff;
  color: #1a1a1a;
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}

/* Container */
.container {
  max-width: 1152px; /* 72rem = max-w-6xl */
  margin: 0 auto;
  padding: 0 2rem; /* px-8 */
}

/* Card components - Light theme */
.glass-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.glass-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
  border-color: #d1d5db;
}

/* Prose styling for markdown content - Light theme */
.prose {
  color: #374151;
  max-width: 65ch;
  line-height: 1.7;
}

.prose h1 {
  color: #111827;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.prose h2 {
  color: #2563eb; /* blue */
  font-size: 2rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.prose h3 {
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose p {
  color: #4b5563;
  margin-bottom: 1.25rem;
}

.prose a {
  color: #0891b2; /* cyan */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.prose a:hover {
  color: #0e7490;
}

.prose strong {
  color: #111827;
  font-weight: 600;
}

.prose em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
}

.prose code {
  background: #f3f4f6;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-family: "Geist Mono", "Courier New", monospace;
  font-size: 0.9em;
  color: #2563eb;
}

.prose pre {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose pre code {
  background: transparent;
  padding: 0;
  color: #374151;
}

.prose blockquote {
  border-left: 4px solid #2563eb;
  padding-left: 1.5rem;
  margin-left: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  color: #4b5563;
}

.prose ul, .prose ol {
  color: #4b5563;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

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

/* Badge/tag styling - Light theme */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #dbeafe;
  border: 1px solid #93c5fd;
  border-radius: 9999px;
  font-size: 0.875rem;
  color: #2563eb;
  transition: all 0.3s ease;
  text-decoration: none;
}

.badge:hover {
  background: #bfdbfe;
  border-color: #60a5fa;
}

/* Date styling - Light theme */
.post-meta {
  color: #6b7280;
  font-size: 0.875rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Navigation - Light theme */
.blog-nav {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 50;
}

.blog-nav a {
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-nav a:hover {
  color: #111827;
  background: rgba(17, 24, 39, 0.05);
}

.blog-nav a[href*="#"]:hover,
.blog-nav a[href="/blog/"]:hover {
  background: rgba(17, 24, 39, 0.05);
}

/* Single column vertical layout for post cards */
.post-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 900px;
}

/* Blog Post Layout with Sidebar */
.blog-post-wrapper {
  display: grid;
  grid-template-columns: 220px 1fr 240px;
  gap: 2.5rem;
  align-items: start;
}

/* Table of Contents - Left Sidebar */
.table-of-contents {
  position: sticky;
  top: 2rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

.table-of-contents h3 {
  color: #111827;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.table-of-contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.table-of-contents li {
  margin-bottom: 0.5rem;
}

.table-of-contents a {
  color: #2563eb;
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.3s ease;
  display: block;
}

.table-of-contents a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Related Articles - Right Sidebar */
.related-articles {
  position: sticky;
  top: 2rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

.related-articles h3 {
  color: #111827;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.related-articles-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-article-card {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  transition: transform 0.2s ease;
}

.related-article-card:hover {
  transform: translateX(2px);
}

.related-article-image {
  display: block;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 0.375rem;
  overflow: hidden;
  background: #f3f4f6;
  position: relative;
}

.related-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-article-card:hover .related-article-image img {
  transform: scale(1.1);
}

.related-article-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.placeholder-icon {
  color: #9ca3af;
}

.related-article-content {
  flex: 1;
  min-width: 0;
}

.related-article-content h4 {
  margin: 0 0 0.25rem 0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}

.related-article-content h4 a {
  color: #111827;
  text-decoration: none;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-article-content h4 a:hover {
  color: #2563eb;
}

.related-article-content time {
  display: block;
  font-size: 0.6875rem;
  color: #6b7280;
}

/* Responsive adjustments */
@media (max-width: 1280px) {
  .blog-post-wrapper {
    grid-template-columns: 1fr 240px;
  }

  .table-of-contents {
    display: none;
  }
}

@media (max-width: 1024px) {
  .blog-post-wrapper {
    grid-template-columns: 1fr;
  }

  .table-of-contents,
  .related-articles {
    display: none;
  }
}

/* Social Sharing - Circular Icons */
.social-share {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.social-share-label {
  font-weight: 500;
  color: #6b7280;
  font-size: 0.75rem;
  margin-right: 0.25rem;
}

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

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

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

.share-linkedin {
  background: #0a66c2;
  color: #ffffff;
}

.share-linkedin:hover {
  background: #004182;
}

.share-twitter {
  background: #000000;
  color: #ffffff;
}

.share-twitter:hover {
  background: #1a1a1a;
}

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

.share-facebook:hover {
  background: #0c63d4;
}

/* Social Share - Top Right Position */
.social-share-top {
  position: absolute;
  top: 0;
  right: 0;
}

/* Social Share - Bottom */
.social-share-bottom {
  justify-content: center;
  padding: 1.5rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  margin-top: 3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .prose h1 {
    font-size: 2rem;
  }

  .prose h2 {
    font-size: 1.5rem;
  }

  .prose h3 {
    font-size: 1.25rem;
  }

  .container {
    padding: 0 1rem;
  }

  .social-share-top {
    position: static;
    margin-bottom: 1rem;
  }
}
