/**
 * Single Post Styles
 * Responsive 2-column layout with sidebar
 */

/* Single Post Page Layout */
.single-post-page {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.single-post-layout {
    display: grid;
    grid-template-columns: 1fr 320px !important;
    gap: 40px;
    align-items: start;
}

/* Main Content Column */
.single-post-main {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Single Post Sidebar */
.single-post-sidebar {
    position: sticky;
    top: 40px;
    align-self: flex-start;
}

/* Single Post Article */
.single-post-article {
    margin-bottom: 0;
}

/* Post Header */
.single-post-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.post-category {
    margin-bottom: 15px;
}

.category-link {
    display: inline-block;
    background: var(--tl-primary,#dc4d28);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb,var(--tl-primary,#dc4d28) 30%,transparent);
    color: #fff;
}

.single-post-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    color: #2c3e50;
    margin: 0 0 15px 0;
    letter-spacing: -0.5px;
}

.post-meta-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #666;
}

.post-author a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #666;
    transition: color 0.3s ease;
}

.post-author a:hover {
    color: var(--tl-primary,#dc4d28);
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #f0f0f0;
}

.post-date,
.post-read-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-date i,
.post-read-time i {
    color: var(--tl-primary,#dc4d28);
}

/* Featured Image */
.single-post-featured-image {
    margin: 0;
    overflow: hidden;
}

.featured-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-image:hover {
    transform: scale(1.02);
}

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

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    color: #2c3e50;
    margin: 30px 0 15px 0;
    font-weight: 700;
}

.single-post-content h2 {
    font-size: 24px;
}

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

.single-post-content h4 {
    font-size: 18px;
}

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

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

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

.single-post-content blockquote {
    margin: 25px 0;
    padding: 15px 25px;
    border-left: 4px solid var(--tl-primary,#dc4d28);
    background: #f8f9fa;
    font-style: italic;
    color: #555;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Post Footer */
.single-post-footer {
    padding: 20px 30px 30px;
    border-top: 1px solid #f0f0f0;
}

.post-tags {
    margin-bottom: 25px;
}

.tags-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-right: 10px;
}

.tag-link {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    text-decoration: none;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: var(--tl-primary,#dc4d28);
    color: #fff;
    transform: translateY(-1px);
}

.post-social-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.pinterest {
    background: #e60023;
}

.share-btn.email {
    background: #6c757d;
}

.share-btn i {
    color: #fff !important;
    font-size: 16px;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff !important;
}

.share-btn:hover i {
    color: #fff !important;
}


/* Related Posts */
.related-posts {
    padding: 0 30px 30px;
}

.related-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.related-post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.related-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-post-image {
    height: 120px;
    overflow: hidden;
}

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

.related-post-card:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 15px;
}

.related-post-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-date {
    font-size: 13px;
    color: #666;
}

/* Comments - Disabled */

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

/* Search Widget */
/* Custom Blog Search Widget */
.blog-search-form {
    position: relative;
}

.blog-search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.blog-search-input {
    width: 100%;
    padding: 12px 52px 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    color: #495057;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 2px rgba(0, 0, 0, 0.02);
    outline: none;
}

.blog-search-input::placeholder {
    color: #adb5bd;
    font-weight: 400;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.blog-search-input:focus {
    border-color: var(--tl-primary,#dc4d28);
    background: #fff;
    box-shadow: 0 0 0 4px color-mix(in srgb,var(--tl-primary,#dc4d28) 8%,transparent), 0 4px 16px color-mix(in srgb,var(--tl-primary,#dc4d28) 12%,transparent);
}

.blog-search-input:focus::placeholder {
    opacity: 0.7;
}

.blog-search-button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--tl-primary,#dc4d28);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 12px color-mix(in srgb,var(--tl-primary,#dc4d28) 30%,transparent), 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.blog-search-button:hover {
    background: var(--tl-primary-dark,#b83d1f);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 5px 20px color-mix(in srgb,var(--tl-primary,#dc4d28) 40%,transparent), 0 2px 6px rgba(0, 0, 0, 0.15);
}

.blog-search-button:active {
    transform: translateY(-50%) scale(0.95);
    box-shadow: 0 2px 8px color-mix(in srgb,var(--tl-primary,#dc4d28) 30%,transparent), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.blog-search-button i {
    font-size: 18px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-search-button:hover i {
    transform: scale(1.1);
}

/* Fallback for original class names */
.sidebar-search .search-form {
    position: relative;
}

.sidebar-search .search-field {
    width: 100%;
    padding: 14px 50px 14px 18px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    background: #f8f9fa;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sidebar-search .search-field:focus {
    outline: none;
    border-color: var(--tl-primary,#dc4d28);
    background: #fff;
    box-shadow: 0 0 0 4px color-mix(in srgb,var(--tl-primary,#dc4d28) 10%,transparent), inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.sidebar-search .search-submit {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--tl-primary,#dc4d28);
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 2px 8px color-mix(in srgb,var(--tl-primary,#dc4d28) 25%,transparent);
}

.sidebar-search .search-submit:hover {
    background: linear-gradient(135deg, var(--tl-primary-dark,#c44423), #d0691a);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px color-mix(in srgb,var(--tl-primary,#dc4d28) 35%,transparent);
}

/* Categories Widget */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 2px;
}

.main-category > .category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f8f9fa;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.main-category > .category-link:hover,
.main-category > .category-link.active {
    background: var(--tl-primary,#dc4d28);
    color: #fff;
}

.category-count {
    background: rgba(0, 0, 0, 0.1);
    color: inherit;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.subcategory-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 15px;
}

.subcategory .category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    color: #666;
    text-decoration: none;
    border-left: 3px solid #f0f0f0;
    transition: all 0.3s ease;
}

.subcategory:hover .category-link {
    border-left-color: var(--tl-primary,#dc4d28);
    color: var(--tl-primary,#dc4d28);
}

/* Products Widget */
.product-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.product-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.product-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.product-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.product-info {
    flex: 1;
    min-width: 0;
    padding-left: 0 !important;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: var(--tl-primary,#dc4d28);
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--tl-primary,#dc4d28);
}

.no-products {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px 0;
}

/* Promotion Banner */
.promotion-banner {
    overflow: hidden;
    border-radius: 12px;
    background: #f8f9fa;
}

.promotion-banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.promotion-banner img:hover {
    transform: scale(1.02);
}

.banner-link {
    display: block;
    text-decoration: none;
}

.banner-link:hover {
    text-decoration: none;
}

/* Page Links */
.page-links {
    padding: 30px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.page-links .page-links-title {
    font-size: 16px;
    font-weight: 600;
    color: #666;
    margin-bottom: 15px;
}

.page-links span {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    background: #f8f9fa;
    color: #666;
    border-radius: 4px;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .single-post-layout {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .single-post-main {
        order: 1;
    }

    .single-post-sidebar {
        order: 2;
        position: static;
        top: auto;
    }

    .related-posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .single-post-page {
        padding: 20px 0;
    }

    .single-post-main {
        order: 1;
    }

    .single-post-sidebar {
        order: 2;
        position: static;
        top: auto;
    }

    .single-post-title {
        font-size: 26px;
    }

    .post-meta-info {
        gap: 15px;
    }

    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .post-social-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .subcategory-list {
        margin-left: 10px;
    }
}

@media (max-width: 480px) {
    .single-post-main {
        order: 1;
    }

    .single-post-sidebar {
        order: 2;
        position: static;
        top: auto;
    }

    .single-post-header,
    .single-post-content,
    .single-post-footer,
    .related-posts,
    /* Comments styles removed */

    .sidebar-widget {
        padding: 20px;
    }

    /* Mobile Search Widget */
    .blog-search-input {
        padding: 14px 48px 14px 18px;
        font-size: 14px;
        border-radius: 20px;
    }

    .blog-search-button {
        width: 40px;
        height: 40px;
        right: 3px;
        border-radius: 50%;
    }

    .blog-search-button i {
        font-size: 16px;
    }

    .single-post-title {
        font-size: 22px;
    }
}