/*
 * Single Post Page Styles
 * Pixel-perfect implementation of ByteWave single post design
 */

/* Main Layout */
.single-post-page {
    background: #FAFAFA;
    padding: 40px 0 0;
}

.single-post-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    align-items: start;
}

/* Post Content Area */
.single-post-content {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Post Header */
.entry-header {
    margin-bottom: 32px;
}

.post-category-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: #DCFCE7;
    color: #059669;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 16px;
    text-decoration: none;
    text-transform: capitalize;
}

.single-article .entry-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: #1F2937;
    margin: 0 0 24px 0;
    letter-spacing: -0.02em;
}

/* Entry Meta */
.entry-meta {
    border-bottom: 1px solid #E5E7EB;
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.meta-items {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6B7280;
}

.meta-item svg {
    width: 16px;
    height: 16px;
    color: #9CA3AF;
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-meta img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.author-name a {
    color: #1F2937;
    text-decoration: none;
    font-weight: 500;
}

.author-name a:hover {
    color: #4F46E5;
}

/* Social Share */
.social-share {
    display: flex;
    align-items: center;
    gap: 16px;
}

.share-label {
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #F3F4F6;
    color: #6B7280;
    text-decoration: none;
    transition: all 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.facebook:hover {
    background: #1877F2;
    color: #FFFFFF;
}

.share-btn.twitter:hover {
    background: #1DA1F2;
    color: #FFFFFF;
}

.share-btn.linkedin:hover {
    background: #0A66C2;
    color: #FFFFFF;
}

.share-btn.pinterest:hover {
    background: #E60023;
    color: #FFFFFF;
}

.share-btn.email:hover {
    background: #6B7280;
    color: #FFFFFF;
}

.share-btn.copy:hover {
    background: #6B7280;
    color: #FFFFFF;
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

/* Featured Image */
.post-featured-image {
    margin-bottom: 32px;
    border-radius: 8px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Content */
.entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 32px;
}

.entry-content h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: #1F2937;
    margin: 40px 0 20px;
}

.entry-content h3 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    color: #1F2937;
    margin: 32px 0 16px;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content a {
    color: #4F46E5;
    text-decoration: underline;
}

.entry-content a:hover {
    color: #4338CA;
}

.entry-content ul,
.entry-content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.entry-content li {
    margin-bottom: 12px;
}

.entry-content blockquote {
    border-left: 4px solid #4F46E5;
    padding: 20px 24px;
    margin: 32px 0;
    background: #F9FAFB;
    font-style: italic;
    font-size: 18px;
    line-height: 1.6;
    color: #1F2937;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

/* Post Tags Section */
.post-tags-section {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 24px;
}

.tags-label {
    font-size: 14px;
    font-weight: 600;
    color: #6B7280;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    padding: 6px 14px;
    background: #F3F4F6;
    color: #4B5563;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-item:hover {
    background: #4F46E5;
    color: #FFFFFF;
}

/* Share This Tag (Bottom) */
.share-this-tag {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    margin-bottom: 32px;
}

.share-buttons-bottom {
    display: flex;
    gap: 10px;
}

.share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.share-icon.facebook {
    background: #1877F2;
    color: #FFFFFF;
}

.share-icon.twitter {
    background: #000000;
    color: #FFFFFF;
}

.share-icon.linkedin {
    background: #0A66C2;
    color: #FFFFFF;
}

.share-icon.pinterest {
    background: #E60023;
    color: #FFFFFF;
}

.share-icon:hover {
    transform: scale(1.1);
}

/* Sidebar */
.single-post-sidebar {
    position: sticky;
    top: 24px;
}

.widget {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 20px 0;
}

/* Search Widget */
.widget_search .search-form {
    position: relative;
}

.widget_search .search-field {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 17C13.4183 17 17 13.4183 17 9C17 4.58172 13.4183 1 9 1C4.58172 1 1 4.58172 1 9C1 13.4183 4.58172 17 9 17Z' stroke='%239CA3AF' stroke-width='2'/%3E%3Cpath d='M19 19L14.65 14.65' stroke='%239CA3AF' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 18px;
}

.widget_search .search-submit {
    display: none;
}

/* Categories Widget */
.widget_categories ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget_categories li {
    padding: 10px 0;
    border-bottom: 1px solid #E5E7EB;
}

.widget_categories li:last-child {
    border-bottom: none;
}

.widget_categories a {
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget_categories a:hover {
    color: #4F46E5;
}

/* Recent Posts Widget */
.widget_recent_entries ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget_recent_entries li {
    padding: 12px 0;
    border-bottom: 1px solid #E5E7EB;
}

.widget_recent_entries li:last-child {
    border-bottom: none;
}

.widget_recent_entries a {
    color: #1F2937;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    display: block;
}

.widget_recent_entries a:hover {
    color: #4F46E5;
}

.widget_recent_entries .post-date {
    display: block;
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 4px;
}

/* Tag Cloud Widget */
.widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.widget_tag_cloud .tagcloud a {
    padding: 6px 14px;
    background: #F3F4F6;
    color: #4B5563;
    font-size: 13px !important;
    font-weight: 500;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.widget_tag_cloud .tagcloud a:hover {
    background: #4F46E5;
    color: #FFFFFF;
}

/* Comments Section */
.comments-area {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 2px solid #E5E7EB;
}

.comments-title {
    font-size: 24px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 32px 0;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    margin-bottom: 32px;
}

.comment-body {
    display: flex;
    gap: 16px;
}

.comment-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.comment-content-wrap {
    flex: 1;
}

.comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.comment-author-name {
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
}

.comment-date {
    font-size: 13px;
    color: #9CA3AF;
}

.comment-text {
    font-size: 14px;
    line-height: 1.6;
    color: #4B5563;
    margin-bottom: 12px;
}

.reply {
    margin-top: 8px;
}

.reply a {
    display: inline-block;
    padding: 6px 16px;
    background: #F3F4F6;
    color: #4B5563;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.reply a:hover {
    background: #4F46E5;
    color: #FFFFFF;
}

/* Comment Form */
.comment-respond {
    margin-top: 48px;
}

.comment-reply-title {
    font-size: 22px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 24px 0;
}

.comment-form {
    display: grid;
    gap: 20px;
}

.comment-form-author,
.comment-form-email {
    width: 100%;
}

.comment-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    margin: 0;
}

.form-submit .submit {
    padding: 12px 32px;
    background: #4F46E5;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.form-submit .submit:hover {
    background: #4338CA;
}

/* Recent Articles Section */
.recent-articles-section {
    padding: 80px 0;
    background: #FFFFFF;
}

.recent-articles-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    color: #1F2937;
    margin: 0 0 12px 0;
}

.recent-articles-subtitle {
    font-size: 16px;
    text-align: center;
    color: #6B7280;
    margin: 0 0 48px 0;
}

.recent-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.related-article {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-article:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.related-article-image {
    width: 100%;
    height: 220px;
    background: #D1D5DB;
    overflow: hidden;
}

.related-article-image a {
    display: block;
    height: 100%;
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.related-article:hover .related-article-image img {
    transform: scale(1.05);
}

.related-article-content {
    padding: 24px;
}

.related-category {
    display: inline-block;
    padding: 4px 12px;
    background: #EEF2FF;
    color: #4F46E5;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    margin-bottom: 12px;
}

.related-article-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #1F2937;
    margin: 0 0 12px 0;
}

.related-article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-article-title a:hover {
    color: #4F46E5;
}

.related-article-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #6B7280;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .single-post-layout {
        grid-template-columns: 1fr;
    }
    
    .single-post-sidebar {
        position: static;
    }
    
    .recent-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .single-post-page {
        padding: 24px 0 0;
    }
    
    .single-post-content {
        padding: 32px 24px;
    }
    
    .single-article .entry-title {
        font-size: 32px;
    }
    
    .meta-items {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .social-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .entry-content {
        font-size: 15px;
    }
    
    .entry-content h2 {
        font-size: 24px;
    }
    
    .entry-content h3 {
        font-size: 20px;
    }
    
    .recent-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .recent-articles-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .single-article .entry-title {
        font-size: 24px;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
    
    .post-tags-section {
        flex-direction: column;
        align-items: flex-start;
    }
}






