/* Blog Post Styles */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.post-header {
    margin-bottom: 2rem;
    text-align: center;
}

.post-cover {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.post-cover img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.post-category {
    background-color: #2c5aa0;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    text-transform: capitalize;
}

.post-category:hover {
    background-color: #1e3a5f;
}

.post-date {
    color: #6b7280;
}

.post-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1f2937;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
    font-family: Georgia, serif;
}

.post-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-tag {
    color: #6b7280;
    font-size: 0.875rem;
    background-color: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Post Content Styles */
.post-content {
    line-height: 1.8;
    color: #374151;
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #1f2937;
    margin: 2rem 0 1rem 0;
    font-family: Georgia, serif;
}

.post-content h2 {
    font-size: 1.75rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content p {
    margin: 1.5rem 0;
}

.post-content blockquote {
    border-left: 4px solid #2c5aa0;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background-color: #f8fafc;
    font-style: italic;
}

.post-content code {
    background-color: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.post-content pre {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.post-content pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

p:has(img) {
  text-align: center;
  font-style: italic;
  font-size:0.85rem;
}

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

p.summary {
    text-align: center;
    font-style: italic;
    position: relative;
    padding: 0 3rem;
}

p.summary span {
    font-size: 3rem;
    position: relative;
    color: var(--lt-color-gray-400);
    line-height: 0px;
}

p.summary span.open {
    left: -8px;
    top: 17px;
}

p.summary span.close {
    left: 3px;
    top: 21px;
}

/* Author Section */
.author-section {
    max-width: 800px;
    margin: 3rem 0;
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
}

.author-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.author-avatar {
    margin-top: -2rem;
}

.author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    font-family: Georgia, serif;
}

.author-bio {
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

.author-social {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 7px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #4b5563;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s;
}

.social-link:hover {
    color: #0085ff;
}

.bluesky-icon {
    width: 20px;
    height: auto;
    transition: transform 0.2s;
}

.social-link:hover .bluesky-icon {
    transform: scale(1.1);
}

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

.post-share h3 {
    margin: 0 0 1rem 0;
    color: #1f2937;
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: background-color 0.2s;
}

.share-icon {
    width: 16px;
    height: auto;
}

.share-button.bluesky {
    background-color: #0085ff;
    color: white;
}

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

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

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

.share-button:hover {
    opacity: 0.9;
}

/* Related Posts */
.related-posts {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 0 1rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
}

.related-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-post {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    transition: box-shadow 0.2s;
}

.related-post:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.related-post-title {
    font-size: 1.125rem;
    margin: 0 0 0.5rem 0;
}

.related-post-link {
    color: #1f2937;
    text-decoration: none;
}

.related-post-link:hover {
    color: #2c5aa0;
}

.related-post-date {
    color: #6b7280;
    font-size: 0.875rem;
}