/* Single Post Layout Styles */

/* Main Container */
.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Single Post Article */
.single-post article.post {
    max-width: 100%;
    margin: 0;
    background: transparent;
    padding: 0;
}

/* Entry Header */
.entry-header {
    max-width: 800px;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.entry-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    font-weight: 700;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    font-size: 0.95rem;
    color: #7f8c8d;
}

.entry-meta>span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.entry-meta a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.entry-meta a:hover {
    color: #2980b9;
}

.byline,
.posted-on,
.cat-links {
    padding: 0;
}

/* Post Thumbnail - Hidden */
.post-thumbnail {
    display: none;
}

/* Entry Content */
.entry-content {
    max-width: 800px;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
    margin: 2rem 0;
}

.entry-content p {
    margin: 0 0 1.5rem 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin: 2rem 0 1rem 0;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.3;
}

.entry-content h2 {
    font-size: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #3498db;
}

.entry-content h3 {
    font-size: 1.5rem;
}

.entry-content h4 {
    font-size: 1.25rem;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 1.5rem 2rem;
    padding: 0;
}

.entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.entry-content a {
    color: #3498db;
    text-decoration: underline;
    transition: color 0.3s;
}

.entry-content a:hover {
    color: #2980b9;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.entry-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    font-style: italic;
    color: #555;
}

.entry-content code {
    background: #f4f4f4;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.entry-content pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.entry-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Entry Footer */
.entry-footer {
    max-width: 800px;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.tags-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.tags-label {
    font-weight: 600;
    color: #2c3e50;
}

.tags-links a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #ecf0f1;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.tags-links a:hover {
    background: #3498db;
    color: white;
}

/* Post Navigation */
.post-navigation {
    max-width: 100%;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 2px solid #e0e0e0;
    border-bottom: 2px solid #e0e0e0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-subtitle {
    display: block;
    font-size: 0.875rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
}

.nav-title {
    color: #2c3e50;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-previous a:hover .nav-title,
.nav-next a:hover .nav-title {
    color: #3498db;
}

/* Sidebar */
#secondary {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Comments */
#comments {
    max-width: 800px;
    margin: 3rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-main {
        padding: 1rem;
    }

    .entry-title {
        font-size: 2rem;
    }

    .entry-content {
        font-size: 1rem;
    }

    .entry-content h2 {
        font-size: 1.5rem;
    }

    .entry-content h3 {
        font-size: 1.25rem;
    }

    .entry-meta {
        font-size: 0.875rem;
    }

    .nav-links {
        flex-direction: column;
    }

    .entry-content blockquote {
        padding: 1rem 1.5rem;
    }
}

/* Dark Mode Support */
body.dark-mode .entry-header {
    border-bottom-color: var(--border-color);
}

body.dark-mode .entry-title {
    color: var(--text-color);
}

body.dark-mode .entry-content {
    color: var(--text-color);
}

body.dark-mode .entry-content h2,
body.dark-mode .entry-content h3,
body.dark-mode .entry-content h4 {
    color: var(--text-color);
}

body.dark-mode .entry-content h2 {
    border-bottom-color: #3498db;
}

body.dark-mode .entry-content blockquote {
    background: var(--header-bg);
    color: var(--text-muted);
    border-left-color: #3498db;
}

body.dark-mode .entry-content code {
    background: var(--header-bg);
    color: var(--text-color);
}

body.dark-mode .entry-footer {
    border-top-color: var(--border-color);
}

body.dark-mode .tags-label {
    color: var(--text-color);
}

body.dark-mode .tags-links a {
    background: var(--header-bg);
    color: var(--text-color);
}

body.dark-mode .tags-links a:hover {
    background: #3498db;
    color: white;
}

body.dark-mode .post-navigation {
    border-top-color: var(--border-color);
    border-bottom-color: var(--border-color);
}

body.dark-mode .nav-subtitle {
    color: var(--text-muted);
}

body.dark-mode .nav-title {
    color: var(--text-color);
}

body.dark-mode #comments {
    background: var(--header-bg);
}

/* Ensure content doesn't overflow */
.entry-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.entry-content table {
    width: 100%;
    overflow-x: auto;
    display: block;
}

.entry-content iframe,
.entry-content embed,
.entry-content object,
.entry-content video {
    max-width: 100%;
}