/* Single Post Page Styles */
.single-post-main {
    padding: 3rem 0;
}

.single-post-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span {
    color: var(--text-light);
}

/* Post Header */
.post-header {
    margin-bottom: 2rem;
}

.post-category-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.post-title-main {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.post-meta-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.post-date-main {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
}

.post-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Featured Image */
.post-featured-image {
    margin-bottom: 2.5rem;
    border-radius: 12px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Body */
.post-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-color);
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.post-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.3;
}

.post-body h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.post-body ul,
.post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-body li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.post-body strong {
    font-weight: 600;
    color: var(--text-color);
}

/* Blockquote */
.post-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    font-style: italic;
}

.post-body blockquote p {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.post-body blockquote cite {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: normal;
    margin-top: 0.5rem;
}

/* Inline Images */
.post-image-inline {
    margin: 2.5rem 0;
}

.post-image-inline img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.image-caption {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    font-style: italic;
    margin: 0;
}

/* Post Tags */
.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 2.5rem 0;
}

.tags-label {
    font-weight: 600;
    color: var(--text-color);
}

/* Share Buttons */
.post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.share-label {
    font-weight: 600;
    color: var(--text-color);
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
}

.share-btn svg {
    width: 20px;
    height: 20px;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background: #0a66c2;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Author Box */
.author-box {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.author-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.author-details p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.author-social {
    display: flex;
    gap: 1rem;
}

.author-social a {
    color: var(--primary-color);
    font-weight: 500;
}

/* Comments Section */
.comments-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comments-count {
    font-size: 0.875rem;
    color: var(--text-light);
}

.comments-sort {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.sort-select {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    font-size: 0.875rem;
    cursor: pointer;
}

.comment-form-wrapper {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
}

.comment-form-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.comment-form .form-group {
    margin-bottom: 1.5rem;
}

.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-color);
    color: var(--text-color);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.comment-submit-btn {
    padding: 0.875rem 1.75rem;
    border-radius: 999px;
    border: none;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.comment-submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    background: var(--bg-light);
}

.comment-item.reply {
    margin-left: 3.5rem;
    background: transparent;
    border-left: 2px solid var(--border-color);
    border-radius: 0;
    padding-left: 1.5rem;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--text-color);
}

.comment-date {
    font-size: 0.875rem;
    color: var(--text-light);
}

.comment-text {
    margin-bottom: 0.75rem;
    color: var(--text-color);
    line-height: 1.6;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comment-reply-btn {
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    border: none;
    background: var(--bg-light);
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.comment-reply-btn:hover {
    background: var(--primary-color);
    color: white;
}

.reply-form-wrapper {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
}

.reply-form .form-group {
    margin-bottom: 1rem;
}

.reply-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.reply-form input,
.reply-form textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
    font-family: inherit;
}

.reply-form-actions {
    display: flex;
    gap: 0.75rem;
}

.reply-submit-btn,
.reply-cancel-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.reply-submit-btn {
    background: var(--primary-color);
    color: white;
}

.reply-cancel-btn {
    background: var(--bg-light);
    color: var(--text-color);
}

.reply-submit-btn:hover {
    background: var(--primary-hover);
}

.reply-cancel-btn:hover {
    background: var(--border-color);
}

/* Responsive for Single Post */
@media (max-width: 968px) {
    .single-post-wrapper {
        grid-template-columns: 1fr;
    }

    .author-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment-form .form-row {
        grid-template-columns: 1fr;
    }

    .comment-item.reply {
        margin-left: 2rem;
    }
}
