/* Saivie Medium Posts - CSS */

/* Reset and Base Styles */
.saivie-medium-single,
.saivie-medium-archive {
    margin: 0;
    padding: 0;
    font-family: 'Charter', 'Georgia', serif;
    line-height: 1.6;
    color: #242424;
    background-color: #ffffff;
}

.saivie-medium-single *,
.saivie-medium-archive * {
    box-sizing: border-box;
}

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

/* Header */
.medium-header {
    border-bottom: 1px solid #e6e6e6;
    padding: 20px 0;
    margin-bottom: 40px;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.medium-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.medium-logo {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #242424;
    text-decoration: none;
    letter-spacing: -0.5px;
}

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

.medium-nav a {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #6b6b6b;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
}

.medium-nav a:hover {
    color: #242424;
}

/* Article Styles */
.medium-article {
    max-width: 740px;
    margin: 0 auto 80px;
}

.medium-article-header {
    margin-bottom: 40px;
}

.medium-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 32px;
    letter-spacing: -0.8px;
    color: #242424;
}

.medium-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.medium-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.medium-author img {
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

.medium-author-info {
    display: flex;
    flex-direction: column;
}

.medium-author-name {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #242424;
    margin-bottom: 2px;
}

.medium-post-meta {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #6b6b6b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.medium-separator {
    color: #e6e6e6;
}

.medium-actions {
    display: flex;
    gap: 16px;
}

.medium-follow-btn {
    background: #1a8917;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.medium-follow-btn:hover {
    background: #156d13;
}

/* Featured Image */
.medium-featured-image {
    margin: 40px 0;
    text-align: center;
}

.medium-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Content */
.medium-content {
    font-size: 21px;
    line-height: 1.58;
    margin-bottom: 48px;
}

.medium-content p {
    margin: 0 0 24px;
}

.medium-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 48px 0 24px;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.medium-content h3 {
    font-size: 26px;
    font-weight: 600;
    margin: 40px 0 20px;
    line-height: 1.3;
}

.medium-content blockquote {
    border-left: 3px solid #242424;
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    font-size: 24px;
    line-height: 1.48;
    color: #6b6b6b;
}

.medium-content code {
    background: #f7f7f7;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 18px;
}

.medium-content pre {
    background: #f7f7f7;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 24px 0;
}

.medium-content pre code {
    background: none;
    padding: 0;
}

/* Tags */
.medium-tags {
    margin-bottom: 48px;
}

.medium-tags a {
    display: inline-block;
    background: #f2f2f2;
    color: #6b6b6b;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    margin: 0 8px 8px 0;
    transition: background-color 0.2s ease;
}

.medium-tags a:hover {
    background: #e6e6e6;
    color: #242424;
}

/* Social Sharing */
.medium-sharing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    border-top: 1px solid #e6e6e6;
    border-bottom: 1px solid #e6e6e6;
    margin-bottom: 48px;
}

.medium-clap-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid #e6e6e6;
    padding: 12px 16px;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #6b6b6b;
}

.medium-clap-btn:hover {
    border-color: #1a8917;
    color: #1a8917;
}

.medium-clap-btn svg {
    fill: currentColor;
}

.medium-share-buttons {
    display: flex;
    gap: 16px;
}

.medium-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f2f2f2;
    color: #6b6b6b;
    text-decoration: none;
    transition: all 0.2s ease;
}

.medium-share-btn:hover {
    background: #e6e6e6;
    color: #242424;
}

.medium-share-btn svg {
    fill: currentColor;
}

/* Author Bio */
.medium-author-bio {
    display: flex;
    gap: 20px;
    padding: 32px 0;
    border-top: 1px solid #e6e6e6;
    margin-bottom: 64px;
}

.medium-author-avatar img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
}

.medium-author-details h3 {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #242424;
}

.medium-author-details p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #6b6b6b;
    margin: 0 0 16px;
    line-height: 1.4;
}

.medium-follow-author {
    background: #1a8917;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.medium-follow-author:hover {
    background: #156d13;
}

/* Related Posts */
.medium-related {
    margin-bottom: 80px;
}

.medium-related h2 {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 32px;
    color: #242424;
}

.medium-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.medium-related-post {
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.medium-related-post:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.medium-related-post a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.medium-related-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.medium-related-content {
    padding: 20px;
}

.medium-related-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
    line-height: 1.3;
    color: #242424;
}

.medium-related-content p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #6b6b6b;
    margin: 0 0 12px;
    line-height: 1.4;
}

.medium-related-meta {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #9b9b9b;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Archive Styles */
.medium-archive-header {
    text-align: center;
    margin-bottom: 64px;
    padding: 40px 0;
}

.medium-archive-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #242424;
    letter-spacing: -1px;
}

.medium-archive-description {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #6b6b6b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.medium-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.medium-post-card {
    border-bottom: 1px solid #e6e6e6;
    padding-bottom: 32px;
}

.medium-post-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.medium-post-image {
    margin-bottom: 16px;
}

.medium-post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.medium-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.medium-author-small {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #6b6b6b;
}

.medium-author-small img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.medium-post-meta time {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #6b6b6b;
}

.medium-post-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.3;
    color: #242424;
}

.medium-post-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #6b6b6b;
    margin: 0 0 16px;
    line-height: 1.4;
}

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

.medium-post-tags {
    display: flex;
    gap: 8px;
}

.medium-tag {
    background: #f2f2f2;
    color: #6b6b6b;
    padding: 4px 12px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
}

.medium-reading-time {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #9b9b9b;
}

/* Pagination */
.medium-pagination {
    text-align: center;
    margin-bottom: 80px;
}

.medium-pagination .page-numbers {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.medium-pagination .page-numbers li {
    display: inline-block;
}

.medium-pagination .page-numbers a,
.medium-pagination .page-numbers span {
    display: inline-block;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #6b6b6b;
    text-decoration: none;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.medium-pagination .page-numbers a:hover,
.medium-pagination .page-numbers .current {
    background: #242424;
    color: white;
    border-color: #242424;
}

/* No Posts */
.medium-no-posts {
    text-align: center;
    padding: 80px 20px;
}

.medium-no-posts h2 {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 16px;
    color: #242424;
}

.medium-no-posts p {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #6b6b6b;
    margin: 0 0 32px;
}

.medium-btn {
    display: inline-block;
    background: #1a8917;
    color: white;
    padding: 12px 24px;
    border-radius: 24px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.medium-btn:hover {
    background: #156d13;
}

/* Responsive Design */
@media (max-width: 768px) {
    .medium-container {
        padding: 0 16px;
    }
    
    .medium-header-content {
        padding: 0 16px;
    }
    
    .medium-title {
        font-size: 32px;
    }
    
    .medium-content {
        font-size: 19px;
    }
    
    .medium-content h2 {
        font-size: 28px;
    }
    
    .medium-content h3 {
        font-size: 22px;
    }
    
    .medium-archive-title {
        font-size: 36px;
    }
    
    .medium-posts-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .medium-related-grid {
        grid-template-columns: 1fr;
    }
    
    .medium-author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .medium-sharing {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .medium-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .medium-nav {
        gap: 16px;
    }
}