/* Article specific styling */
.article-content {
    max-width: 800px; /* Narrower than blog list for better readability */
    margin: 60px auto 80px; /* Reduced top and bottom margins */
    padding: 40px 20px;
    background: var(--bg-primary);
}

.article-text {
    font-family: 'Charter', 'Georgia', serif; /* Similar to Substack's font */
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-primary);
    margin-top: 30px;
}

.article-text p {
    margin-bottom: 25px;
    color: var(--text-primary);
}

.article-text p.small-spacing {
    margin-top: 15px; /* Smaller top margin for closer spacing */
}

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

.article-header h1 {
    font-size: 2.5em;
    color: var(--heading-color);
    margin-bottom: 10px; /* Reduced from 20px to bring the line closer to heading */
    line-height: 1.3;
}

/* Update bottom footer for articles */
.article-content + .bottom-footer {
    background: var(--bg-secondary);
    position: relative;
    padding: 20px 40px;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

/* Make the middle section scrollable */
.middle.blog-wrapper.article-content {
    height: auto;
    min-height: calc(100vh - 200px);
    overflow-y: auto;
    margin-bottom: 60px; /* Reduced space for footer */
    background: var(--bg-primary);
}

/* Update body style to allow scrolling */
.blog-body {
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-y: auto; /* Allow scrolling */
    min-height: 100vh;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .article-content {
        padding: 20px;
    }

    .article-header h1 {
        font-size: 2em;
    }
}

.article-image {
    width: 100%;
    margin: 30px 0;
}

.article-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.article-image figcaption {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8em;
    margin-top: 5px;
}

.article-image figcaption strong {
    font-weight: bold;
}

.source-link {
    color: var(--text-primary);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.source-link:hover {
    opacity: 0.7;
}

.article-text h2 {
    font-size: 1.8em;
    color: var(--heading-color);
    margin: 40px 0 20px 0;
    font-weight: 600;
}

.article-text ul {
    margin: 20px 0;
    padding-left: 40px;
}

.article-text ul li {
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.6;
}

.article-text h3 {
    font-size: 1.5em;
    color: var(--heading-color);
    margin: 35px 0 20px 0;
    font-weight: 600;
}

.article-image {
    margin: 25px 0;
    text-align: center;
}

.full-width-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.article-image h4 {
    font-size: 1.3em;
    color: var(--heading-color);
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}

.article-divider {
    border-top: 1px solid var(--border-color);
    margin: 40px auto;
    width: 100%;
    max-width: 800px; /* Match the article content width */
}

.sources-list {
    margin: 20px 0 40px 0;
}

.sources-list li {
    margin-bottom: 20px;
}

.sources-list a {
    color: var(--text-secondary);
    text-decoration: underline;
    font-size: 0.9em;
}

.sources-list a:hover {
    opacity: 0.7;
}

/* Add these styles to your article.css file */
.author-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.author-name {
    font-family: 'Charter', serif;
    margin: 0;
    color: var(--text-primary);
}

.metadata {
    display: flex;
    align-items: center;
    background-color: var(--bg-hover);
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 12px;
    font-size: 12px;
    font-weight: bold;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.metadata span {
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
}

.metadata .dot {
    margin: 0 4px;
    color: var(--text-primary);
}

.social-icons-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background-color: var(--icon-bg);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--icon-color);
    text-decoration: none;
}

.circle.medium:hover {
    background: linear-gradient(135deg, #12100E, #333333);
    color: white;
    transform: translateY(-2px);
}

.circle.substack:hover {
    background: linear-gradient(135deg, #FF6719, #FF4000);
    color: white;
    transform: translateY(-2px);
}

/* Restore the left alignment for article pages */
.article-content + .bottom-footer .copyright {
    align-items: flex-start;
} 