/* Premium Single Post Design - Responsive CSS */

/* Reset & Base */
.psp-single-post * {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    color: #002954;
}

.psp-single-post {
    background: var(--psp-page-bg, #f5f5f5);
    padding: 0;
    margin: 0;
    min-height: 100vh;
}

.psp-article {
    margin: 0;
    padding: 0;
}

/* Container - Match Elementor Width */
.psp-single-post .psp-container,
body.single-post .psp-single-post .psp-container,
body .psp-single-post .psp-container {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Two Column Layout */
.psp-single-post .psp-layout,
body.single-post .psp-single-post .psp-layout,
body .psp-single-post .psp-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

/* Main Content */
.psp-main-content {
    min-width: 0;
    background: #ffffff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Featured Image */
.psp-featured-image {
    width: calc(100% + 80px);
    margin: -40px -40px 30px -40px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.psp-featured-img {
    width: 100%;
    height: auto;
    display: block;
}

.psp-content-wrapper {
    background: transparent;
}

/* Post Title */
.psp-post-title {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.4;
    color: #002954;
    margin: 0 0 15px 0;
    font-family: 'Poppins', sans-serif;
}

/* Post Meta */
.psp-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
    font-size: 14px;
    color: #002954;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
}

.psp-meta-item {
    color: var(--psp-meta, #999999);
}

.psp-meta-item a {
    color: inherit;
    text-decoration: none;
}

.psp-meta-separator {
    color: var(--psp-meta, #999999);
}

/* Post Content */
.psp-post-content {
    color: #002954;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
}

.psp-post-content p {
    margin-bottom: 20px;
}

.psp-post-content h2,
.psp-post-content h3,
.psp-post-content h4 {
    font-weight: 400;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #002954;
    font-family: 'Poppins', sans-serif;
}

.psp-post-content h2 {
    font-size: 28px;
    line-height: 1.4;
}

.psp-post-content h3 {
    font-size: 24px;
    line-height: 1.4;
}

.psp-post-content h4 {
    font-size: 20px;
    line-height: 1.5;
}

.psp-post-content a {
    color: var(--psp-link, #0073aa);
    text-decoration: none;
}

.psp-post-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.psp-post-content ul,
.psp-post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.psp-post-content li {
    margin-bottom: 10px;
}

.psp-post-content blockquote {
    border-left: 3px solid var(--psp-primary, #0073aa);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--psp-meta, #666666);
}

/* Tags */
.psp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.psp-tag-item {
    display: inline-block;
    background-color: #f5f5f5;
    color: #666666;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 13px;
    text-decoration: none;
    font-weight: 400;
}

/* Author Box */
.psp-author-box {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    margin-bottom: 30px;
    align-items: center;
}

.psp-author-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.psp-author-info {
    flex: 1;
}

.psp-author-name {
    font-size: 16px;
    font-weight: 400;
    margin: 0 0 8px 0;
}

.psp-author-name a {
    color: var(--psp-text, #333333);
    text-decoration: none;
}

.psp-author-bio {
    color: var(--psp-meta, #666666);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

/* Sidebar */
.psp-sidebar {
    position: sticky;
    top: 20px;
}

.psp-sidebar-widget {
    background: #ffffff;
    border: none;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.psp-widget-title {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 20px 0;
    color: #002954;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    font-family: 'Poppins', sans-serif;
}

/* Related Posts */
.psp-related-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.psp-related-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.psp-related-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 6px;
}

.psp-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.psp-related-content {
    flex: 1;
    min-width: 0;
}

.psp-related-title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.psp-related-title a {
    color: var(--psp-text, #333333);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.psp-related-date {
    font-size: 12px;
    color: var(--psp-meta, #999999);
    font-weight: 400;
}

/* Comments */
.psp-main-content .comment-respond,
.psp-main-content .comments-area {
    margin-top: 40px;
}

/* Responsive Design */

/* Tablet */
@media (max-width: 1024px) {
    .psp-container {
        max-width: 100%;
        padding: 30px 20px;
    }
    
    .psp-layout {
        grid-template-columns: 1fr 300px;
        gap: 20px;
    }
    
    .psp-main-content {
        padding: 30px;
    }
    
    .psp-featured-image {
        width: calc(100% + 60px);
        margin: -30px -30px 25px -30px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .psp-container {
        padding: 20px 15px;
    }
    
    .psp-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .psp-main-content {
        padding: 25px 20px;
    }
    
    .psp-featured-image {
        width: calc(100% + 40px);
        margin: -25px -20px 20px -20px;
    }
    
    .psp-sidebar {
        position: static;
    }
    
    .psp-post-title {
        font-size: 26px;
    }
    
    .psp-post-meta {
        flex-wrap: wrap;
        font-size: 13px;
    }
    
    .psp-sidebar-widget {
        padding: 20px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .psp-main-content {
        padding: 20px 15px;
    }
    
    .psp-featured-image {
        width: calc(100% + 30px);
        margin: -20px -15px 20px -15px;
    }
    
    .psp-post-title {
        font-size: 22px;
    }
    
    .psp-post-content {
        font-size: 15px;
    }
    
    .psp-author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .psp-related-thumb {
        width: 70px;
        height: 70px;
    }
    
    .psp-sidebar-widget {
        padding: 18px;
    }
}
