/* Individual Blog Post Styles */

.blog-post-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    padding-top: 40px;
    max-width: 1200px;
}

.blog-post {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* Post Header */
.post-header {
    padding: 40px 50px 30px;
    background: linear-gradient(to bottom, #f9f9f9, #fff);
}

.post-header h1 {
    font-size: 36px;
    line-height: 1.2;
    color: #2c3e50;
    margin: 20px 0;
    font-family: 'Merriweather', serif;
}

.post-excerpt {
    font-size: 20px;
    line-height: 1.6;
    color: #555;
    font-weight: 300;
    font-style: italic;
}

.post-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.reading-time {
    color: #999;
    font-size: 14px;
}

/* Featured Image */
.featured-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    position: relative;
}

.featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.image-caption {
    padding: 15px 50px;
    background-color: #f5f5f5;
    color: #666;
    font-size: 14px;
    font-style: italic;
    text-align: center;
}

/* Post Content */
.post-content {
    padding: 40px 50px 50px;
    font-family: 'Merriweather', serif;
    font-weight: 300;
}

.post-content h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    color: var(--primary-color);
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
}

.post-content h3 {
    font-size: 22px;
    margin: 30px 0 15px;
    color: #333;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
}

.post-content h4 {
    font-size: 18px;
    margin: 25px 0 15px;
    color: #444;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
}

.post-content p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
}

.post-content strong {
    font-weight: 600;
    color: #222;
}

.post-content em {
    font-style: italic;
    color: #555;
}

.post-content ul,
.post-content ol {
    margin: 20px 0 20px 30px;
}

.post-content li {
    margin-bottom: 10px;
    line-height: 1.7;
    font-size: 17px;
}

.post-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.post-content a:hover {
    color: var(--secondary-color);
}

/* Blockquotes */
.pull-quote {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa, #e9ecef);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    font-size: 19px;
    font-style: italic;
    color: #444;
    position: relative;
}

.pull-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 60px;
    color: var(--primary-color);
    opacity: 0.3;
}

.pull-quote cite {
    display: block;
    margin-top: 15px;
    font-size: 15px;
    font-style: normal;
    color: #666;
    text-align: right;
}

.testimonial {
    margin: 40px 0;
    padding: 25px;
    background-color: #fff;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    font-style: italic;
}

/* Info and Tip Boxes */
.info-box,
.tips-box {
    margin: 30px 0;
    padding: 25px;
    background-color: #f0f8ff;
    border-radius: 8px;
    border: 1px solid #d0e4f5;
}

.tips-box {
    background-color: #fff9f0;
    border-color: #ffd9b3;
}

.info-box h4,
.tips-box h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.recipe-card {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #fff, #f9f9f9);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.recipe-card h4 {
    margin-top: 0;
    color: var(--primary-color);
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.image-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.05);
}

/* Styled Lists */
.styled-list {
    list-style: none;
    padding-left: 0;
}

.styled-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.styled-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: bold;
}

/* Post Footer */
.post-footer {
    padding: 40px 50px;
    background-color: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

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

.post-tags h4 {
    display: inline-block;
    margin-right: 15px;
    color: #666;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    margin: 5px;
    background-color: #e9ecef;
    color: #495057;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Share Buttons */
.share-buttons {
    margin: 30px 0;
}

.share-buttons h4 {
    margin-bottom: 15px;
    color: #666;
}

.share-btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.facebook {
    background-color: #3b5998;
}

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

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

.share-btn.email {
    background-color: #ea4335;
}

/* Author Bio */
.author-bio {
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    margin-top: 30px;
}

.author-bio h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Sidebar Widgets for Posts */
.post-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.post-sidebar .sidebar-widget {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.related-posts ul {
    list-style: none;
    padding: 0;
}

.related-posts li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.related-posts li:last-child {
    border-bottom: none;
}

.related-posts a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.related-posts a:hover {
    color: var(--primary-color);
}

.quick-links {
    list-style: none;
    padding: 0;
}

.quick-links li {
    padding: 8px 0;
}

.quick-links a {
    color: var(--primary-color);
    text-decoration: none;
}

.quick-links a:hover {
    text-decoration: underline;
}

/* Related Content Section */
.related-content {
    background-color: #f9f9f9;
    padding: 60px 0;
    margin-top: 60px;
}

.related-content h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

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

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

.related-card:hover {
    transform: translateY(-5px);
}

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

.related-card h3 {
    padding: 20px 20px 10px;
    font-size: 20px;
}

.related-card h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-card h3 a:hover {
    color: var(--primary-color);
}

.related-card p {
    padding: 0 20px 20px;
    color: #666;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-post-container {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .post-header {
        padding: 30px 25px 20px;
    }

    .post-header h1 {
        font-size: 28px;
    }

    .post-excerpt {
        font-size: 17px;
    }

    .post-content {
        padding: 30px 25px;
    }

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

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

    .post-content p {
        font-size: 16px;
    }

    .image-gallery {
        grid-template-columns: 1fr;
    }

    .share-buttons {
        text-align: center;
    }

    .share-btn {
        display: block;
        margin: 10px auto;
        max-width: 200px;
    }

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

/* Print Styles */
@media print {
    .post-sidebar,
    .share-buttons,
    .related-content,
    header,
    footer {
        display: none;
    }

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

    .blog-post {
        box-shadow: none;
    }
}