/* 
 * KhoobLife Single Post Styles 
 * Focus: SEO, Accessibility, and Brand Color Palette
 */

/* ==========================================================================
   GLOBAL SINGLE POST STYLES
   ========================================================================== */

.single-post-article {
    background-color: var(--bg-primary, #F8F6F2);
    min-height: 100vh;
}

/* ==========================================================================
   BREADCRUMB NAVIGATION
   ========================================================================== */

.breadcrumb-nav {
    background: var(--bg-secondary, #FAF3E9);
    padding: 1rem 0;
    border-bottom: 1px solid var(--accent-beige, #D8C3A5);
}

.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted, #718096);
}

.breadcrumb a {
    color: var(--primary-color, #A8B8A0) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-color-dark, #8FA085) !important;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--text-muted, #718096);
    margin: 0 0.25rem;
}

/* ==========================================================================
   POST HEADER
   ========================================================================== */

.post-header {
    background: var(--bg-card, #FFFFFF);
    padding: 3rem 0 2rem;
    text-align: center;
    border-bottom: 1px solid var(--accent-beige, #D8C3A5);
}

.post-categories {
    margin-bottom: 1.5rem;
}

.post-category-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color, #A8B8A0) 0%, var(--primary-color-dark, #8FA085) 100%);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(168, 184, 160, 0.2);
    transition: all 0.3s ease;
    line-height: 1;
    min-height: 36px;
}

.post-category-badge:hover {
    background: linear-gradient(135deg, var(--primary-color-dark, #8FA085) 0%, var(--accent-sage, #9EAA8F) 100%);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(168, 184, 160, 0.3);
}

.post-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-secondary, #36454F);
    margin: 0 auto 2rem;
    max-width: 800px;
    padding: 0 1rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    color: var(--text-muted, #718096);
    font-size: 0.9rem;
    margin: 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-icon {
    font-size: 1rem;
}

.reading-time {
    font-weight: 500;
}

/* ==========================================================================
   FEATURED IMAGE
   ========================================================================== */

.post-featured-image {
    margin: 2rem 0;
    text-align: center;
}

.post-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(168, 184, 160, 0.15);
    transition: transform 0.4s ease;
}

.post-featured-image:hover img {
    transform: translateY(-4px);
}

/* ==========================================================================
   POST CONTENT
   ========================================================================== */

.post-content-wrapper {
    background: var(--bg-card, #FFFFFF);
    padding: 3rem 0;
}

.entry-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-primary, #4A4A4A);
}

/* Typography Hierarchy */
.entry-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-secondary, #36454F);
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}

.entry-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary, #36454F);
    margin: 2rem 0 0.75rem;
    line-height: 1.3;
}

.entry-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary, #36454F);
    margin: 1.5rem 0 0.5rem;
    line-height: 1.4;
}

.entry-content p {
    margin-bottom: 1.5rem;
    color: var(--text-primary, #4A4A4A);
}

/* Links in content */
.entry-content a {
    color: var(--secondary-color-alt, #F0A88A) !important;
    text-decoration: underline;
    text-decoration-color: rgba(240, 168, 138, 0.5);
    transition: all 0.3s ease;
}

.entry-content a:hover {
    color: var(--secondary-color-dark, #E6C1A0) !important;
    text-decoration-color: var(--secondary-color-dark, #E6C1A0);
}

/* Lists */
.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-right: 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Blockquotes */
.entry-content blockquote {
    background: var(--bg-accent, #E9E0D2);
    border-right: 4px solid var(--primary-color, #A8B8A0);
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    font-style: italic;
    color: var(--text-secondary, #36454F);
    position: relative;
}

.entry-content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color, #A8B8A0);
    position: absolute;
    top: -0.5rem;
    right: 1rem;
    line-height: 1;
    opacity: 0.3;
}

/* Images */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(168, 184, 160, 0.1);
    margin: 2rem auto;
    display: block;
}

.entry-content figure {
    margin: 2rem 0;
    text-align: center;
}

.entry-content figcaption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted, #718096);
    font-style: italic;
}

/* Code blocks */
.entry-content pre {
    background: var(--bg-accent, #E9E0D2);
    border: 1px solid var(--accent-beige, #D8C3A5);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 2rem 0;
}

.entry-content code {
    background: var(--bg-accent, #E9E0D2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.entry-content pre code {
    background: none;
    padding: 0;
}

/* Tables */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--bg-card, #FFFFFF);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(168, 184, 160, 0.1);
}

.entry-content th,
.entry-content td {
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid var(--accent-beige, #D8C3A5);
}

.entry-content th {
    background: var(--primary-color-light, #C5D1BE);
    font-weight: 600;
    color: var(--text-secondary, #36454F);
}

/* ==========================================================================
   POST TAGS
   ========================================================================== */

.post-tags {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 2rem 1rem;
    background: var(--bg-secondary, #FAF3E9);
    border-radius: 12px;
    border: 1px solid var(--accent-beige, #D8C3A5);
}

.tags-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary, #36454F);
    margin-bottom: 1rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tags-list a {
    background: var(--accent-cream, #F5F1EB);
    color: var(--text-primary, #4A4A4A) !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none !important;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: 1px solid var(--accent-beige, #D8C3A5);
}

.tags-list a:hover {
    background: var(--primary-color-light, #C5D1BE);
    color: var(--text-secondary, #36454F) !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .post-header {
        padding: 2rem 0 1.5rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .entry-content {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .entry-content h2 {
        font-size: 1.5rem;
    }
    
    .entry-content h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .post-header {
        padding: 1.5rem 0 1rem;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .entry-content {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* ==========================================================================
   TABLE OF CONTENTS (From functions.php)
   ========================================================================== */

.toc {
    background: var(--bg-secondary, #FAF3E9);
    border: 1px solid var(--accent-beige, #D8C3A5);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    max-width: 600px;
}

.toc h4 {
    margin: 0 0 1rem;
    color: var(--text-secondary, #36454F);
    font-size: 1.1rem;
    font-weight: 600;
}

.toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: var(--primary-color, #A8B8A0) !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.toc a:hover {
    color: var(--primary-color-dark, #8FA085) !important;
    text-decoration: underline !important;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .breadcrumb-nav,
    .related-posts {
        display: none !important;
    }
    
    .post-header {
        background: white !important;
        border: none !important;
    }
    
    .entry-content {
        font-size: 12pt !important;
        line-height: 1.5 !important;
        color: black !important;
    }
    
    .entry-content a {
        color: black !important;
        text-decoration: underline !important;
    }
    
    .post-title {
        color: black !important;
        font-size: 18pt !important;
    }
} 