/**
 * Single Post Styles
 *
 * Custom styles for single blog post template
 * Max-width: 850px, centered layout
 */

/* Main Container */
.single-post-main {
    padding: 60px 20px;
    background-color: #ffffff;
}

.single-post-container {
    max-width: 850px;
    margin: 0 auto;
}

/* Article */
.single-post-article {
    background: #fff;
}

/* Featured Image */
.single-post-featured-image {
    margin-bottom: 40px;
    width: 100%;
    overflow: hidden;
}

.single-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Wrapper */
.single-post-content-wrapper {
    padding: 0;
}

/* Header */
.single-post-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.single-post-title {
    font-size: 2.5rem;
    line-height: 1.3;
    color: #141414;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Post Meta */
.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.2;
    color: #666;
}

.post-date,
.post-categories {
    display: inline-flex;
    align-items: center;
}

.post-date time {
    color: #666;
}

.post-categories a {
    color: #004282;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-categories a:hover {
    color: #ef7c00;
}

/* Post Content */
.single-post-content {
    font-size: 1.08rem;
    line-height: normal;
    color: #333;
    margin-bottom: 40px;
}

.single-post-content p {
    margin-bottom: 1.5rem;
    line-height: normal;
}

.single-post-content h1,
.single-post-content h2,
.single-post-content h3,
.single-post-content h4,
.single-post-content h5,
.single-post-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: normal;
    color: #141414;
}

.single-post-content h2 {
    font-size: 1.875rem;
}

.single-post-content h3 {
    font-size: 1.625rem;
}

.single-post-content h4 {
    font-size: 1.375rem;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
}

.single-post-content ul,
.single-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.single-post-content li {
    margin-bottom: 0.5rem;
}

.single-post-content blockquote {
    border-left: 4px solid #004282;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}

/* Page Links */
.page-links {
    margin: 2rem 0;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 4px;
}

/* Post Footer */
.single-post-footer {
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-tags a {
    display: inline-block;
    padding: 6px 15px;
    background: #f5f5f5;
    color: #004282;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 400;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background: #004282;
    color: #ffffff;
}

/* Post Navigation */
.single-post-navigation {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

.single-post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.single-post-navigation .nav-previous,
.single-post-navigation .nav-next {
    flex: 1;
}

.single-post-navigation .nav-next {
    text-align: right;
}

.single-post-navigation a {
    display: block;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.single-post-navigation a:hover {
    color: #004282;
}

.single-post-navigation .nav-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.single-post-navigation .nav-title {
    display: block;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .single-post-main {
        padding: 40px 15px;
    }

    .single-post-title {
        font-size: 2rem;
    }

    .single-post-content {
        font-size: 1rem;
    }

    .single-post-navigation .nav-links {
        flex-direction: column;
    }

    .single-post-navigation .nav-next {
        text-align: left;
    }

    .single-post-meta {
        gap: 15px;
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .single-post-title {
        font-size: 1.75rem;
    }

    .single-post-content h2 {
        font-size: 1.5rem;
    }

    .single-post-content h3 {
        font-size: 1.3rem;
    }
}
