/* Individual Blog Post Styles */

/* Breadcrumbs */
.breadcrumbs {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #dee2e6;
}

.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: #6c757d;
}

.breadcrumbs a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #0056b3;
}

.breadcrumbs .active {
    color: #6c757d;
    font-weight: 500;
}

/* Blog Post */
.blog-post {
    padding: 2rem 0;
    background: #f8f9fa;
}

.post-main {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* Post Header */
.post-header {
    position: relative;
}

.post-featured-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

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

.post-header .post-meta {
    padding: 2rem 2rem 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.post-header .post-category {
    background: #ff6b35;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.post-header .post-category:hover {
    background: #e55a2b;
}

.post-header .post-date,
.post-header .post-reading-time,
.post-header .post-views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-title {
    padding: 1rem 2rem 0;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #333;
    margin-bottom: 1rem;
}

.post-excerpt {
    padding: 0 2rem;
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-style: italic;
}

.post-author {
    padding: 0 2rem 2rem;
    border-bottom: 1px solid #eee;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: #ff6b35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.author-details strong {
    display: block;
    color: #333;
    font-size: 1rem;
}

.author-details span {
    color: #666;
    font-size: 0.9rem;
}

/* Post Content */
.post-content {
    padding: 2rem;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.post-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #ff6b35;
    padding-bottom: 0.5rem;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content h4 {
    font-size: 1.3rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #ff6b35;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.post-content code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #e83e8c;
}

.post-content pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

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

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.post-content th,
.post-content td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

.post-content th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Post Tags */
.post-tags {
    padding: 2rem;
    border-top: 1px solid #eee;
}

.post-tags h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #e9ecef;
    color: #495057;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tag:hover {
    background: #ff6b35;
    color: white;
}

/* Post Sharing */
.post-sharing {
    padding: 2rem;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.post-sharing h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

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

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

/* Related Posts */
.related-posts {
    padding: 4rem 0;
    background: white;
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: #333;
}

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

.related-post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.related-post-image {
    height: 200px;
    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: 1.5rem;
}

.related-post-content h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

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

.related-post-content h3 a:hover {
    color: #ff6b35;
}

.related-post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-title {
        font-size: 2rem;
        padding: 1rem 1rem 0;
    }
    
    .post-excerpt {
        padding: 0 1rem;
        font-size: 1.1rem;
    }
    
    .post-header .post-meta {
        padding: 1rem 1rem 0;
        gap: 1rem;
    }
    
    .post-author {
        padding: 0 1rem 1rem;
    }
    
    .post-content {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .post-tags,
    .post-sharing {
        padding: 1rem;
    }
    
    .share-buttons {
        gap: 0.5rem;
    }
    
    .share-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .post-featured-image {
        height: 250px;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .post-excerpt {
        font-size: 1rem;
    }
    
    .post-header .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .author-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
    }
}
