/* Single Post Layout - Modern Design with #f2490b theme */

* {
    box-sizing: border-box;
}

.single-post-layout {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    min-height: 600px;
}

/* Sidebar bên trái */
.single-sidebar {
    flex: 0 0 300px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(242, 73, 11, 0.1);
    overflow: hidden;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    margin-bottom: 30px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 20px;
}

.sidebar-widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.widget-title {
    background: linear-gradient(135deg, #f2490b, #ff6b35);
    color: white;
    margin: 0;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title i {
    font-size: 18px;
}

/* Related Posts & Latest Posts */
.related-posts,
.latest-posts {
    padding: 20px;
}

.sidebar-post-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.sidebar-post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(242, 73, 11, 0.15);
}

.sidebar-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.post-thumb {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-thumb:hover img {
    transform: scale(1.1);
}

.post-info {
    flex: 1;
    min-width: 0;
}

.post-info h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    line-height: 1.3;
}

.post-info h4 a {
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    transition: color 0.3s ease;
}

.post-info h4 a:hover {
    color: #f2490b;
}

.post-date {
    color: #999;
    font-size: 12px;
}

/* Sidebar Ads */
.sidebar-ads {
    padding: 20px;
}

.ad-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.ad-item:hover {
    transform: translateY(-2px);
}

.ad-item:last-child {
    margin-bottom: 0;
}

.ad-item a {
    display: block;
    text-decoration: none;
    position: relative;
}

.ad-item img {
    width: 100%;
    height: auto;
    display: block;
}

.ad-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px 15px 15px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* Main Content */
.single-content {
    flex: 1;
    min-width: 0;
}

.single-post-article {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Post Header */
.post-header {
    background: linear-gradient(135deg, #f2490b, #ff6b35);
    color: white;
    padding: 40px;
    text-align: center;
}

.post-title {
    margin: 0 0 20px 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.post-meta-info {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 20px;
    backdrop-filter: blur(10px);
    display: flex;
    gap: 40px;
}

.meta-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.95;
}

.meta-item i {
    font-size: 16px;
    opacity: 0.8;
}

.meta-item strong {
    font-weight: 600;
}

.meta-item a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.meta-item a:hover {
    border-bottom-color: white;
}

/* Post Content */
.post-content {
    padding: 40px;
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #f2490b;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.post-content h2 {
    font-size: 24px;
    border-left: 4px solid #f2490b;
    padding-left: 15px;
}

.post-content h3 {
    font-size: 20px;
}

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

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

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

.post-content blockquote {
    background: #f9f9f9;
    border-left: 4px solid #f2490b;
    margin: 20px 0;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* Post Tags */
.post-tags {
    padding: 0 40px 30px;
    border-bottom: 1px solid #f0f0f0;
}

.post-tags h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-tags h4 i {
    color: #f2490b;
}

.tags-list a {
    display: inline-block;
    background: #f2490b;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    margin: 0 5px 5px 0;
    transition: all 0.3s ease;
}

.tags-list a:hover {
    background: #d63d09;
    transform: translateY(-1px);
}

/* Author Byline */
.author-byline {
    padding: 40px;
    background: #f9f9f9;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.author-avatar {
    flex: 0 0 80px;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #f2490b;
}

.author-info {
    flex: 1;
}

.author-name {
    margin: 0 0 10px 0;
    color: #f2490b;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-bio {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
}

.author-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #999;
}

.author-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.author-stats i {
    color: #f2490b;
}

/* Post Navigation */
.post-navigation {
    padding: 30px 40px;
    background: #f5f5f5;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-link {
    display: block;
    padding: 20px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(242, 73, 11, 0.15);
}

.nav-previous .nav-link {
    text-align: left;
}

.nav-next .nav-link {
    text-align: right;
}

.nav-subtitle {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

.nav-title {
    display: block;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
}

.nav-link i {
    color: #f2490b;
    margin: 0 5px;
}

/* Comments Section */
.comments-section {
    margin-top: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .single-post-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .single-sidebar {
        flex: none;
        order: 2;
    }
    
    .single-content {
        order: 1;
    }
    
    .post-header {
        padding: 30px 20px;
    }
    
    .post-title {
        font-size: 24px;
    }
    
    .meta-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .post-content {
        padding: 30px 20px;
    }
    
    .author-byline {
        padding: 30px 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .post-navigation {
        padding: 20px;
    }
    
    .post-meta-info {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .post-header {
        padding: 20px 15px;
    }
    
    .post-title {
        font-size: 20px;
    }
    
    .post-content {
        padding: 20px 15px;
    }
    
    .widget-title {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .related-posts,
    .latest-posts,
    .sidebar-ads {
        padding: 15px;
    }
    
    .post-meta-info {
        padding: 15px;
    }
    
    .meta-column {
        gap: 10px;
    }
}
