/* 
 * Blog Post Template Styles
 * File: blog-post-style.css
 * For White Dreams - Private Label Skincare
 */

/* Custom Header for Blog Posts */
.blog-custom-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.blog-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-header-logo img {
    height: 40px;
    width: auto;
}

.blog-header-logo a {
    display: block;
}

.blog-header-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.blog-header-nav a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

.blog-header-nav a:hover {
    color: #8B2F39;
}

.blog-header-button {
    background: #8B2F39;
    color: white;
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 16px;
}

.blog-header-button:hover {
    background: #6B1F29;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 47, 57, 0.3);
}

/* Mobile Menu Toggle */
.blog-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #374151;
    cursor: pointer;
}

@media (max-width: 768px) {
    .blog-header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .blog-header-nav.active {
        display: flex;
    }
    
    .blog-menu-toggle {
        display: block;
    }
    
    .blog-header-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

.blog-post-wrapper {
    background-color: #f9fafb;
    min-height: 100vh;
}

/* Post Header Section */
.post-header {
    background: linear-gradient(135deg, #8B2F39 0%, #6B1F29 100%);
    color: white;
    padding: 60px 0;
    margin-top: -20px; /* Removes gap after WordPress header */
}

.post-header-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 20px;
    transition: color 0.3s;
    font-size: 16px;
}

.back-button:hover {
    color: white;
}

/* Categories */
.post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.post-category {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: white;
}

/* Post Title */
.post-title {
    font-size: 48px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 24px;
    color: white!important;
}

/* Post Meta Information */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

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

/* Featured Image */
.featured-image-container {
    max-width: 1200px;
    margin: -50px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.featured-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    display: block;
}

/* Post Content Container */
.post-content-wrapper {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.post-content {
    background: white;
    border-radius: 12px;
    padding: 60px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Content Typography */
.post-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 20px;
}

.post-content h2 {
    font-size: 32px;
    font-weight: bold;
    color: #111827;
    margin-top: 48px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-content h3 {
    font-size: 24px;
    font-weight: bold;
    color: #111827;
    margin-top: 36px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.post-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-top: 28px;
    margin-bottom: 12px;
}

/* Lists */
.post-content ul,
.post-content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.post-content li {
    font-size: 18px;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 12px;
}

/* Blockquotes */
.post-content blockquote {
    background: linear-gradient(135deg, #8B2F39 0%, #6B1F29 100%);
    color: white;
    padding: 32px;
    border-radius: 12px;
    margin: 32px 0;
    border-left: none;
    font-size: 18px;
    line-height: 1.8;
}

.post-content blockquote p {
    color: white;
    margin-bottom: 0;
}

/* Images in Content */
.post-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 32px 0;
    display: block;
}

/* Links */
.post-content a {
    color: #8B2F39;
    text-decoration: underline;
    transition: color 0.3s;
}

.post-content a:hover {
    color: #6B1F29;
}

/* Highlight Box */
.highlight-box {
    background: #f3f4f6;
    padding: 32px;
    border-radius: 12px;
    margin: 32px 0;
    border-left: 4px solid #8B2F39;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 12px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid #e5e7eb;
}

.share-button {
    flex: 1;
    padding: 14px 24px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 15px;
}

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

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

.share-linkedin {
    background: #0077b5;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0.95;
}

/* Author Bio */
.author-bio {
    background: #f9fafb;
    border-radius: 12px;
    padding: 32px;
    margin-top: 48px;
    display: flex;
    gap: 24px;
    align-items: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 20px;
    font-weight: bold;
    color: #111827;
    margin-bottom: 8px;
    margin-top: 0;
}

.author-info p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* Related Posts Section */
.related-posts {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.related-posts h3 {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #111827;
}

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

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

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

.related-post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

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

.related-post-title {
    font-size: 20px;
    font-weight: bold;
    color: #111827;
    margin-bottom: 12px;
    line-height: 1.4;
}

.related-post-excerpt {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Tables */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
}

.post-content th,
.post-content td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.post-content th {
    background: #f9fafb;
    font-weight: 600;
    color: #111827;
}

/* Code Blocks */
.post-content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #8B2F39;
}

.post-content pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: #f9fafb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-header {
        padding: 40px 0;
    }
    
    .post-title {
        font-size: 32px;
    }
    
    .post-content {
        padding: 30px 24px;
    }
    
    .featured-image {
        height: 300px;
        margin-top: -30px;
    }
    
    .featured-image-container {
        margin-top: -30px;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .post-content h2 {
        font-size: 28px;
    }
    
    .post-content h3 {
        font-size: 22px;
    }
    
    .post-content p,
    .post-content li {
        font-size: 16px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .post-header {
        padding: 30px 0;
        margin-top: 25px;
    }
    
    .post-title {
        font-size: 26px;
    }
    
    .post-content {
        padding: 20px 16px;
    }
    
    .featured-image {
        height: 220px;
        border-radius: 8px;
        margin-top: 20px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 12px;
    }
}