/* Custom Post Detail Styling - Clone of supstore.namseadesign.com */
:root {
    --primary-color: #ca9f5c;
    /* User requested color */
    --primary-light: rgba(202, 159, 92, 0.05);
    --primary-medium: rgba(202, 159, 92, 0.15);
    --text-color: #333;
    --text-muted: #666;
    --bg-page: #fcfdfb;
    --bg-card: #ffffff;
    --border-color: #f3f4f6;
    --container-width: 1440px;
    --content-width: 75%;
    --sidebar-width: 25%;
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Be Vietnam Pro', sans-serif;
    --border-radius: 20px;
}

/* Hide specific sections on Product Pages if using same templates */
.single-product .author-box,
.single-product .post-nav {
    display: none !important;
}

body.single-post {
    background-color: var(--bg-page);
}

.custom-post-detail {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px;
}

/* Breadcrumbs */
.post-breadcrumbs {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.post-breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
}

.post-breadcrumbs span {
    margin: 0 5px;
}

/* Featured Image */
.post-featured-image {
    position: relative;
    margin-bottom: 30px;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    display: block;
    border-radius: var(--border-radius);
}

.read-time-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 13px;
    backdrop-filter: blur(4px);
}

/* Header Section */
.post-header {
    margin-bottom: 30px;
}

.post-category-badge {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.post-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #111;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
    font-size: 14px;
    color: var(--text-muted);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-meta img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.author-meta .name {
    font-weight: 600;
    color: #111;
}

.share-meta {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.share-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
}

.share-icon:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Summary Box */
.post-summary-box {
    background: var(--primary-light);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 40px;
    position: relative;
    border-left: 4px solid var(--primary-color);
}

.post-summary-box i {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.post-summary-text {
    font-style: italic;
    font-size: 16px;
    color: #444;
}

/* Layout Grid */
.post-layout-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
}

/* Main Content */
.post-main-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

.entry-content h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin: 40px 0 20px;
    color: #111;
    position: relative;
    padding-left: 20px;
}

.entry-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

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

.entry-content img {
    border-radius: 15px;
    margin: 20px 0;
}

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

.sidebar-widget {
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
}

/* TOC Widget */
.toc-list {
    list-style: none;
    padding: 0;
}

.toc-item {
    margin-bottom: 12px;
}

.toc-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s;
}

.toc-link.active,
.toc-link:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
    border-left: 3px solid var(--primary-color);
}

/* Recent Posts Widget */
.recent-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.recent-post-thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.recent-post-info .title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
}

.recent-post-info .title a {
    color: var(--text-color);
    text-decoration: none;
}

.recent-post-info .date {
    font-size: 12px;
    color: var(--text-muted);
}

/* Tags Widget */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    background: #f3f4f6;
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.tag-cloud a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Footer Section */
.post-footer-area {
    margin-top: 50px;
}

.helpful-box {
    text-align: center;
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
}

.helpful-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.helpful-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.helpful-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: transform 0.3s;
}

.helpful-btn:hover {
    transform: translateY(-3px);
}

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

.helpful-btn.whatsapp {
    background: #25d366;
}

/* Post Navigation */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 50px;
}

.nav-card {
    background: #fff;
    padding: 20px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-color);
    transition: box-shadow 0.3s;
}

.nav-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.nav-thumb {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.nav-info span {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 5px;
}

.nav-info .title {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
}

/* Related Posts Section */
.related-section {
    margin-top: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.related-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.related-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-card-content {
    padding: 20px;
}

.related-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

.related-card-title a {
    color: var(--text-color);
    text-decoration: none;
}

.related-card-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Sticky TOC */
.post-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

/* Responsive */
@media (max-width: 1200px) {
    .post-layout-grid {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .post-title {
        font-size: 28px;
    }

    .post-nav {
        grid-template-columns: 1fr;
    }

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

    .post-main-content {
        padding: 20px;
    }
}