/* Blog Post Specific Styles */

/* Breadcrumb */
.breadcrumb {
    background: #f8f9fa;
    padding: 1rem 0;
    margin-top: 70px;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-nav a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: #2980b9;
}

.breadcrumb-separator {
    color: #666;
    font-size: 0.8rem;
}

.breadcrumb-current {
    color: #666;
    font-weight: 500;
}

/* Post Header */
.post-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 60px 0;
}

.post-header-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.post-category-badge {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.post-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.post-excerpt {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.post-meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

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

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.2);
}

.author-details {
    text-align: left;
}

.author-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.author-title {
    font-size: 0.9rem;
    opacity: 0.8;
}

.post-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Featured Image */
.post-featured-image {
    padding: 0;
    margin-bottom: 3rem;
}

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

/* Post Content */
.post-content {
    padding: 0 0 60px;
}

.post-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.post-text .lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.post-text h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin: 3rem 0 1.5rem;
    font-weight: 700;
}

.post-text h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.post-text h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 1.5rem 0 0.5rem;
    font-weight: 600;
}

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

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

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

.post-text strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Code Blocks */
.code-block {
    background: #2d3748;
    border-radius: 8px;
    margin: 2rem 0;
    overflow: hidden;
}

.code-header {
    background: #1a202c;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #4a5568;
}

.code-title {
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 500;
}

.copy-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.3s ease;
}

.copy-btn:hover {
    background: #2980b9;
}

.code-block pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Blockquotes */
blockquote {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    font-style: italic;
    position: relative;
}

blockquote p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #2c3e50;
}

blockquote cite {
    display: block;
    text-align: right;
    font-size: 0.9rem;
    color: #666;
    font-style: normal;
    font-weight: 500;
}

/* Info Boxes */
.info-box,
.warning-box {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.info-box {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
}

.warning-box {
    background: #f1f8e9;
    border: 1px solid #c8e6c9;
}

.info-icon,
.warning-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon {
    background: #2196f3;
    color: white;
}

.warning-icon {
    background: #4caf50;
    color: white;
}

.info-content h4,
.warning-content h4 {
    margin: 0 0 0.5rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

.info-content p,
.warning-content p {
    margin: 0;
    color: #555;
}

/* Images */
.image-container {
    margin: 2rem 0;
    text-align: center;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.image-caption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

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

.post-tags h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

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

.tag {
    background: #f8f9fa;
    color: #666;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #e9ecef;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

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

.sidebar-widget {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sidebar-widget h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Table of Contents */
.toc-list {
    list-style: none;
    padding: 0;
}

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

.toc-list a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: block;
    padding: 0.3rem 0;
}

.toc-list a:hover {
    color: #3498db;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

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

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

.share-btn.copy-link {
    background: #6c757d;
    color: white;
}

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

/* Related Posts */
.related-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-post {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.related-post img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.related-content h4 {
    margin: 0 0 0.3rem;
    font-size: 0.9rem;
    line-height: 1.3;
}

.related-content h4 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-content h4 a:hover {
    color: #3498db;
}

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

/* Author Bio */
.author-bio {
    background: #f8f9fa;
    padding: 60px 0;
}

.author-card {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

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

.author-info h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.author-info .author-title {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.author-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.author-social {
    display: flex;
    gap: 1rem;
}

.author-social a {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.author-social a:hover {
    background: #3498db;
    color: white;
}

/* Comments Section */
.comments-section {
    padding: 60px 0;
    background: white;
}

.comments-section h3 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.comment-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3498db;
}

.comments-list {
    margin-bottom: 2rem;
}

.comment {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

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

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-header h4 {
    color: #2c3e50;
    font-size: 1rem;
    margin: 0;
}

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

.comment-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.comment-actions {
    display: flex;
    gap: 1rem;
}

.comment-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.3s ease;
}

.comment-btn:hover {
    color: #3498db;
}

.load-more-comments {
    text-align: center;
}

/* Newsletter CTA */
.newsletter-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.newsletter-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-cta .newsletter-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-cta input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
}

.newsletter-cta button {
    padding: 1rem 2rem;
    white-space: nowrap;
}

/* Reading Progress */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: #3498db;
    z-index: 9999;
    transition: width 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .post-body {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .post-sidebar {
        position: static;
        order: -1;
    }
    
    .sidebar-widget {
        display: none;
    }
    
    .sidebar-widget:first-child {
        display: block;
    }
}

@media (max-width: 768px) {
    .post-title {
        font-size: 2.5rem;
    }
    
    .post-meta-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .post-stats {
        justify-content: center;
    }
    
    .featured-img {
        height: 250px;
    }
    
    .post-text {
        font-size: 1rem;
    }
    
    .post-text h2 {
        font-size: 1.8rem;
    }
    
    .author-card {
        flex-direction: column;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .newsletter-cta .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 2rem;
    }
    
    .post-excerpt {
        font-size: 1.1rem;
    }
    
    .code-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .share-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .comment {
        flex-direction: column;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
}

/* Social Sharing Section */
.social-sharing {
    background: #f8f9fa;
    padding: 40px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.sharing-wrapper {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.sharing-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 600;
}

.sharing-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    min-width: 120px;
    justify-content: center;
}

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

.share-btn i {
    font-size: 1.1rem;
}

/* Individual button colors */
.share-btn.facebook {
    background: #1877f2;
}

.share-btn.facebook:hover {
    background: #166fe5;
}

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

.share-btn.twitter:hover {
    background: #0d95e8;
}

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

.share-btn.linkedin:hover {
    background: #006ba1;
}

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

.share-btn.whatsapp:hover {
    background: #20bd5a;
}

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

.share-btn.email:hover {
    background: #d93025;
}

.share-btn.copy-link {
    background: #6c757d;
}

.share-btn.copy-link:hover {
    background: #5a6268;
}

.share-btn.copied {
    background: #28a745 !important;
}

.sharing-stats {
    color: #666;
    font-size: 0.9rem;
}

.share-count strong {
    color: #3498db;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sharing-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 200px;
    }
    
    .sharing-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .social-sharing {
        padding: 30px 0;
    }
    
    .share-btn {
        width: 180px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}