/*
 *  Stylesheet for Article Template
 */

.article-content {
    max-width: 800px; /* Optimal reading width */
    margin: 60px auto; /* Center the article and add space on top/bottom */
    padding: 20px;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-title {
    font-size: 42px;
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-meta {
    font-size: 14px;
    color: var(--text-muted);
}

.meta-separator {
    margin: 0 10px;
}

.article-image-container {
    margin: 0 0 40px 0;
}

.article-image-container img {
    width: 100%;
    height: auto;
    border: 1px solid var(--border-light);
}

.article-image-container figcaption {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
}

.article-body {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
}

.article-body p {
    margin-bottom: 25px;
}

.article-body a {
    color: var(--primary-green);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-green);
}

.article-body a:hover {
    border-bottom-style: solid;
}

.article-body h2 {
    font-size: 32px;
    font-weight: 500;
    color: var(--primary-green);
    margin: 50px 0 20px 0;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

.article-body h3 {
    font-size: 24px;
    font-weight: 500;
    color: var(--primary-green);
    margin: 40px 0 15px 0;
}

.article-body ul, .article-body ol {
    margin-bottom: 25px;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body blockquote {
    border-left: 3px solid var(--primary-green);
    padding-left: 25px;
    margin: 40px 0;
    font-style: italic;
    font-size: 20px;
    color: var(--text-muted);
}

.article-body pre {
    background-color: #1a1a1a;
    border: 1px solid var(--border-light);
    padding: 20px;
    margin: 30px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 15px;
    border-radius: 4px; /* Optional: adds rounded corners */
}

.article-body code {
    font-family: 'Roboto Mono', monospace;
    color: var(--text-light);
}

.article-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.share-prompt {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.share-btn {
    padding: 8px 20px;
    border: 1px solid var(--border-green);
    color: var(--primary-green);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.share-btn:hover {
    background-color: rgba(0, 255, 155, 0.1);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .article-content {
        margin: 40px auto;
        padding: 15px;
    }
    
    .article-title {
        font-size: 32px;
    }
    
    .article-body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .article-body h2 {
        font-size: 26px;
        margin: 40px 0 15px 0;
    }
    
    .article-body h3 {
        font-size: 20px;
        margin: 30px 0 10px 0;
    }
    
    .article-body blockquote {
        font-size: 18px;
        padding-left: 20px;
        margin: 30px 0;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 200px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .article-content {
        margin: 20px auto;
        padding: 10px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-body {
        font-size: 15px;
    }
    
    .article-body h2 {
        font-size: 22px;
    }
    
    .article-body h3 {
        font-size: 18px;
    }
    
    .article-meta {
        font-size: 12px;
    }
}