/* Blog Specific Styles */

/* Main Content Layout */
.main-content {
    padding: 2rem 0;
    min-height: 70vh;
    background: #f8f9fa;
}

/* Breadcrumbs */
.breadcrumbs {
    background: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumbs a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
    color: #666;
}

.breadcrumbs .current {
    color: #333;
    font-weight: 600;
}

/* Blog Post Article */
.blog-post {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

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

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

/* Post Header */
.post-header {
    padding: 2rem 2rem 1rem;
}

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

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.post-meta .author,
.post-meta .date {
    color: #666;
    font-weight: 500;
}

.post-meta .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-meta .tag {
    background: #667eea;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

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

.post-content h2 {
    color: #333;
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.post-content h3 {
    color: #333;
    margin: 1.5rem 0 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.post-content h4 {
    color: #333;
    margin: 1.5rem 0 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

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

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

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

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

.post-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.post-content a:hover {
    text-decoration: underline;
}

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

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

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

/* Social Sharing */
.social-sharing {
    padding: 2rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

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

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

.share-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.share-btn.facebook {
    background: #4267b2;
    color: white;
}

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

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

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0 2rem;
    text-align: center;
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.blog-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Main Content */
.blog-main {
    padding: 3rem 0;
    min-height: 60vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* No Posts Message */
.no-posts {
    text-align: center;
    padding: 4rem 0;
}

.no-posts h2 {
    color: #333;
    margin-bottom: 1rem;
}

.no-posts p {
    color: #666;
    font-size: 1.1rem;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Post Card */
.post-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.post-content {
    padding: 1.5rem;
}

.post-title {
    margin-bottom: 1rem;
}

.post-title a {
    color: #333;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
}

.post-title a:hover {
    color: #667eea;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.post-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-block;
    background: #667eea;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.read-more:hover {
    background: #5a6fd8;
    color: white !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.read-more:visited {
    color: white !important;
}

.read-more:focus {
    color: white !important;
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-link {
    display: inline-block;
    padding: 0.75rem 1rem;
    background: white;
    color: #667eea;
    text-decoration: none;
    border: 2px solid #667eea;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.pagination-link:hover,
.pagination-link.active {
    background: #667eea;
    color: white;
}

/* Individual Post Styles */
.post-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0 2rem;
}

.post-title-main {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.post-meta-main {
    display: flex;
    gap: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.post-content-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.post-featured-image {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.post-body h2 {
    color: #333;
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.post-body h3 {
    color: #333;
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
}

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

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

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

.post-body blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}

.post-body code {
    background: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

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

/* Back to Blog Link */
.back-to-blog {
    display: inline-block;
    margin-bottom: 2rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.back-to-blog:hover {
    text-decoration: underline;
}

/* Related Posts */
.related-posts {
    background: #f8f9fa;
    padding: 3rem 0;
    margin-top: 3rem;
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.related-post {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.related-post h4 {
    margin-bottom: 0.5rem;
}

.related-post h4 a {
    color: #333;
    text-decoration: none;
}

.related-post h4 a:hover {
    color: #667eea;
}

.related-post-date {
    color: #666;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

.footer a {
    color: #667eea;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-header p {
        font-size: 1rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-title-main {
        font-size: 2rem;
    }
    
    .post-meta-main {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

/* Single Post Styles */
.post-single {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    overflow: hidden;
}

.post-single .post-content {
    padding: 2rem;
    background: white;
    color: #333;
    line-height: 1.8;
}

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

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

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

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

.post-single .post-content p {
    margin: 1rem 0;
    color: #444;
}

.post-single .post-content ul,
.post-single .post-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.post-single .post-content li {
    margin: 0.5rem 0;
    color: #444;
}

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

.post-single .post-content a {
    color: #667eea;
    text-decoration: none;
}

.post-single .post-content a:hover {
    text-decoration: underline;
}

/* Post Tags Styling */
.post-single .post-tags {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-single .post-tags .tag {
    background: #667eea;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.post-single .post-tags .tag:hover {
    background: #5a67d8;
}

/* Ensure post-meta text is visible */
.post-single .post-meta {
    color: #666;
    margin-bottom: 1.5rem;
}

.post-single .post-meta .post-author,
.post-single .post-meta .post-date {
    color: #666;
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .post-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .post-content {
        padding: 1rem 1.5rem 1.5rem;
        font-size: 1rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .social-sharing {
        padding: 1.5rem;
    }
    
    .share-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .blog-header {
        padding: 2rem 0 1rem;
    }
    
    .blog-header h1 {
        font-size: 1.8rem;
    }
    
    .post-title {
        font-size: 1.8rem;
    }
    
    .post-header {
        padding: 1rem;
    }
    
    .post-content {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
    }
    
    .post-content h3 {
        font-size: 1.3rem;
    }
    
    .post-content h4 {
        font-size: 1.1rem;
    }
    
    .social-sharing {
        padding: 1rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        text-align: center;
    }
}