/* IPTV SEO Pro Frontend Styles */

/* Breadcrumb Navigation */
.iptv-seo-breadcrumbs {
    background: #f8f9fa;
    padding: 10px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.iptv-seo-breadcrumbs .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.iptv-seo-breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.iptv-seo-breadcrumbs li {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.iptv-seo-breadcrumbs li:not(:last-child)::after {
    content: '›';
    margin: 0 8px;
    color: #999;
    font-weight: bold;
}

.iptv-seo-breadcrumbs a {
    color: #1a2a6c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.iptv-seo-breadcrumbs a:hover {
    color: #ff6b00;
    text-decoration: underline;
}

.iptv-seo-breadcrumbs .current {
    color: #333;
    font-weight: 500;
}

/* SEO Content Enhancements */
.iptv-seo-enhanced-content {
    position: relative;
}

.iptv-seo-enhanced-content h1,
.iptv-seo-enhanced-content h2,
.iptv-seo-enhanced-content h3 {
    position: relative;
}

.iptv-seo-enhanced-content h1::before,
.iptv-seo-enhanced-content h2::before,
.iptv-seo-enhanced-content h3::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(135deg, #1a2a6c 0%, #ff6b00 100%);
    border-radius: 2px;
    opacity: 0.7;
}

/* Reading Progress Bar */
.iptv-seo-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #1a2a6c 0%, #ff6b00 100%);
    z-index: 9999;
    transition: width 0.3s ease;
}

/* Social Share Buttons */
.iptv-seo-social-share {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1a2a6c;
}

.iptv-seo-social-share h4 {
    margin: 0 0 15px 0;
    color: #1a2a6c;
    font-size: 16px;
    font-weight: 600;
}

.iptv-seo-social-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.iptv-seo-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #fff;
}

.iptv-seo-social-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    color: #fff;
    text-decoration: none;
}

.iptv-seo-social-btn.facebook {
    background: #1877f2;
}

.iptv-seo-social-btn.twitter {
    background: #1da1f2;
}

.iptv-seo-social-btn.linkedin {
    background: #0077b5;
}

.iptv-seo-social-btn.whatsapp {
    background: #25d366;
}

.iptv-seo-social-btn.telegram {
    background: #0088cc;
}

/* Related Posts */
.iptv-seo-related-posts {
    margin: 40px 0;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.iptv-seo-related-posts h3 {
    color: #1a2a6c;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

.iptv-seo-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.iptv-seo-related-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.iptv-seo-related-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
}

.iptv-seo-related-thumb {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.iptv-seo-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iptv-seo-related-content h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    line-height: 1.3;
    color: #1a2a6c;
}

.iptv-seo-related-meta {
    font-size: 12px;
    color: #666;
    display: flex;
    gap: 10px;
}

/* Table of Contents */
.iptv-seo-toc {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    float: right;
    width: 300px;
    margin-left: 20px;
}

.iptv-seo-toc h4 {
    margin: 0 0 15px 0;
    color: #1a2a6c;
    font-size: 18px;
    border-bottom: 2px solid #ff6b00;
    padding-bottom: 8px;
}

.iptv-seo-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.iptv-seo-toc li {
    margin-bottom: 8px;
}

.iptv-seo-toc a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: block;
    padding: 4px 0;
}

.iptv-seo-toc a:hover {
    color: #1a2a6c;
    text-decoration: underline;
}

.iptv-seo-toc .toc-level-2 {
    padding-left: 15px;
}

.iptv-seo-toc .toc-level-3 {
    padding-left: 30px;
}

/* FAQ Schema Styling */
.iptv-seo-faq {
    margin: 30px 0;
}

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

.iptv-seo-faq-question {
    background: #f8f9fa;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #1a2a6c;
    transition: background-color 0.3s ease;
    position: relative;
}

.iptv-seo-faq-question:hover {
    background: #e9ecef;
}

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

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

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

.iptv-seo-faq-answer.active {
    padding: 15px 20px;
    max-height: 500px;
}

/* Estimated Reading Time */
.iptv-seo-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #666;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    margin: 0 10px 0 0;
}

.iptv-seo-reading-time::before {
    content: '🕒';
    font-size: 14px;
}

/* SEO Score Indicator (for logged-in admins) */
.iptv-seo-score-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.iptv-seo-score-indicator.score-high {
    border: 3px solid #28a745;
    color: #28a745;
}

.iptv-seo-score-indicator.score-medium {
    border: 3px solid #ffc107;
    color: #856404;
}

.iptv-seo-score-indicator.score-low {
    border: 3px solid #dc3545;
    color: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .iptv-seo-breadcrumbs .container {
        padding: 0 15px;
    }
    
    .iptv-seo-breadcrumbs li {
        font-size: 12px;
    }
    
    .iptv-seo-toc {
        float: none;
        width: 100%;
        margin: 20px 0;
    }
    
    .iptv-seo-social-buttons {
        justify-content: center;
    }
    
    .iptv-seo-related-grid {
        grid-template-columns: 1fr;
    }
    
    .iptv-seo-related-item {
        flex-direction: column;
        text-align: center;
    }
    
    .iptv-seo-related-thumb {
        width: 100%;
        height: 120px;
        align-self: center;
    }
    
    .iptv-seo-enhanced-content h1::before,
    .iptv-seo-enhanced-content h2::before,
    .iptv-seo-enhanced-content h3::before {
        display: none;
    }
    
    .iptv-seo-score-indicator {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .iptv-seo-social-share {
        padding: 15px;
    }
    
    .iptv-seo-social-buttons {
        flex-direction: column;
    }
    
    .iptv-seo-social-btn {
        justify-content: center;
        padding: 10px 16px;
    }
    
    .iptv-seo-related-posts {
        padding: 20px 15px;
    }
    
    .iptv-seo-faq-question {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .iptv-seo-faq-answer.active {
        padding: 12px 15px;
    }
}
