/* SEO Enhancement Styles */

/* Breadcrumbs */
.breadcrumbs {
    background: rgba(102, 126, 234, 0.1);
    padding: 10px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
}

.breadcrumb-item {
    color: #666;
}

.breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.breadcrumb-item[aria-current="page"] {
    color: #333;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #999;
    margin: 0 8px;
}

/* Reading Time */
.reading-time {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
    margin: 15px 0;
    padding: 10px 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 5px;
    border-left: 4px solid #667eea;
}

.reading-time i {
    color: #667eea;
}

.word-count {
    margin-left: auto;
    font-size: 12px;
    opacity: 0.8;
}

/* Social Sharing */
.social-sharing {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.social-sharing h4 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 16px;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
    min-width: 100px;
    justify-content: center;
}

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

.share-btn.twitter:hover {
    background: #0d8bd9;
    transform: translateY(-2px);
}

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

.share-btn.facebook:hover {
    background: #365899;
    transform: translateY(-2px);
}

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

.share-btn.linkedin:hover {
    background: #005885;
    transform: translateY(-2px);
}

.share-btn.email {
    background: #34495e;
}

.share-btn.email:hover {
    background: #2c3e50;
    transform: translateY(-2px);
}

/* Lazy Loading Images */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.loaded {
    opacity: 1;
}

/* FAQ Section (if present) */
.faq-section {
    margin: 40px 0;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    background: #f7fafc;
    padding: 15px 20px;
    margin: 0;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #edf2f7;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.show {
    padding: 15px 20px;
    max-height: 500px;
}

/* SEO Score Indicator */
.seo-score {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.seo-score.excellent {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.seo-score.good {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
}

.seo-score.poor {
    background: linear-gradient(135deg, #f56565, #e53e3e);
}

.seo-score:hover {
    transform: scale(1.1);
}

/* Table of Contents */
.table-of-contents {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    max-width: 300px;
    float: right;
    margin-left: 20px;
}

.table-of-contents h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #2d3748;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 8px;
}

.table-of-contents a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    display: block;
    padding: 5px 0;
    border-left: 3px solid transparent;
    padding-left: 10px;
    transition: all 0.3s ease;
}

.table-of-contents a:hover,
.table-of-contents a.active {
    border-left-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    color: #5a67d8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .breadcrumb-list {
        font-size: 12px;
    }
    
    .breadcrumb-separator {
        margin: 0 4px;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .share-btn {
        min-width: 80px;
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .table-of-contents {
        float: none;
        max-width: 100%;
        margin: 20px 0;
    }
    
    .seo-score {
        width: 50px;
        height: 50px;
        font-size: 12px;
        top: 10px;
        right: 10px;
    }
    
    .reading-time {
        flex-wrap: wrap;
        text-align: center;
    }
    
    .word-count {
        margin-left: 0;
        margin-top: 5px;
    }
}
