/**
 * eCommerce Circle - Blog Enhancements Styles v1.4.0
 * Uses !important to override Hello Elementor theme defaults
 * Dark theme compatible - site has black (#000) background
 */

/* ==========================================
   TABLE OF CONTENTS (light card on dark bg)
   ========================================== */
.ecc-toc {
    background: #f8f9fa !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid #f59e0b !important;
    border-radius: 8px !important;
    padding: 24px !important;
    margin: 32px 0 !important;
    max-width: 600px !important;
}
.ecc-toc.collapsed .ecc-toc-list { display: none !important; }
.ecc-toc-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}
.ecc-toc h3.ecc-toc-title,
h3.ecc-toc-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #1a202c !important;
    line-height: 1.3 !important;
    border: none !important;
}
.ecc-toc-toggle {
    background: none !important;
    border: none !important;
    font-size: 24px !important;
    cursor: pointer !important;
    color: #718096 !important;
    padding: 0 8px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}
.ecc-toc .ecc-toc-list ol {
    list-style: decimal !important;
    margin: 16px 0 0 0 !important;
    padding-left: 24px !important;
}
.ecc-toc .ecc-toc-list ol li {
    padding: 6px 0 !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: #2d3748 !important;
}
.ecc-toc .ecc-toc-list ol li::marker {
    color: #f59e0b !important;
    font-weight: 600 !important;
}
.ecc-toc .ecc-toc-list ol li a,
.ecc-toc-list ol li a {
    color: #2d3748 !important;
    text-decoration: none !important;
    font-weight: 400 !important;
}
.ecc-toc .ecc-toc-list ol li a:hover,
.ecc-toc-list ol li a:hover {
    color: #f59e0b !important;
}

/* ==========================================
   AUTHOR BIO (light card on dark bg)
   ========================================== */
.ecc-author-bio {
    display: flex !important;
    align-items: flex-start !important;
    gap: 20px !important;
    background: #f8f9fa !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin: 40px 0 !important;
}
.ecc-author-avatar {
    flex-shrink: 0 !important;
    width: 80px !important;
    min-width: 80px !important;
}
.ecc-author-avatar img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
}
.ecc-author-info {
    flex: 1 !important;
    min-width: 0 !important;
}
.ecc-author-name,
h4.ecc-author-name {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
}
.ecc-author-role,
.ecc-author-label {
    font-size: 13px !important;
    color: #718096 !important;
    font-weight: 400 !important;
    margin: 0 0 4px 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}
.ecc-author-description,
p.ecc-author-description {
    font-size: 15px !important;
    color: #4a5568 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* ==========================================
   RELATED POSTS (section sits on dark bg)
   ========================================== */
.ecc-related-posts {
    margin: 48px 0 !important;
    padding-top: 40px !important;
    border-top: 1px solid #2d3748 !important;
}
.ecc-related-posts h3.ecc-related-title,
h3.ecc-related-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #f7fafc !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
    line-height: 1.3 !important;
}
.ecc-related-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
}
a.ecc-related-card,
.ecc-related-card {
    text-decoration: none !important;
    color: inherit !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    background: #111827 !important;
    border: 1px solid #2d3748 !important;
    display: block !important;
}
a.ecc-related-card:hover,
.ecc-related-card:hover {
    transform: translateY(-4px);
    border-color: #f59e0b !important;
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.1) !important;
    color: inherit !important;
}
.ecc-related-image img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    display: block !important;
}
.ecc-related-content { padding: 20px 16px 16px !important; }
.ecc-related-category {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #f59e0b !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}
.ecc-related-card h4.ecc-related-card-title,
h4.ecc-related-card-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #e2e8f0 !important;
    margin: 8px 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}
.ecc-related-meta {
    font-size: 13px !important;
    color: #718096 !important;
    margin-top: 8px !important;
}

/* ==========================================
   POST NAVIGATION (sits on dark bg)
   ========================================== */
.ecc-post-nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
    margin: 48px 0 !important;
    padding-top: 32px !important;
    border-top: 1px solid #2d3748 !important;
}
a.ecc-post-nav-link,
.ecc-post-nav-link {
    transition: border-color 0.2s, background 0.2s;
    text-decoration: none !important;
    padding: 20px !important;
    border-radius: 8px !important;
    border: 1px solid #2d3748 !important;
    display: block !important;
    color: inherit !important;
    background: #111827 !important;
}
a.ecc-post-nav-link:hover,
.ecc-post-nav-link:hover {
    border-color: #f59e0b !important;
    background: #1a202c !important;
}
.ecc-post-nav-prev { text-align: left !important; }
.ecc-post-nav-next { text-align: right !important; }
.ecc-post-nav-label {
    display: block !important;
    font-size: 13px !important;
    color: #a0aec0 !important;
    margin-bottom: 8px !important;
}
.ecc-post-nav-title {
    display: block !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #e2e8f0 !important;
    line-height: 1.4 !important;
}

/* ==========================================
   BOTTOM SHARE BAR (sits on dark bg)
   ========================================== */
.ecc-share-bar {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 32px 0 !important;
    padding-top: 24px !important;
    border-top: 1px solid #2d3748 !important;
}
.ecc-share-label {
    font-size: 14px !important;
    color: #a0aec0 !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}
a.ecc-share-btn,
.ecc-share-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #1a202c !important;
    color: #e2e8f0 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: background 0.2s;
    border: 1px solid #2d3748 !important;
}
a.ecc-share-btn:hover,
.ecc-share-btn:hover {
    background: #2d3748 !important;
    color: #f59e0b !important;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .ecc-related-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .ecc-related-card {
        display: flex !important;
        flex-direction: row !important;
    }
    .ecc-related-image {
        flex-shrink: 0 !important;
        width: 120px !important;
    }
    .ecc-related-image img {
        height: 100% !important;
        min-height: 110px !important;
    }
    .ecc-post-nav {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .ecc-post-nav-next { text-align: left !important; }
    .ecc-author-bio {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    .ecc-toc { max-width: 100% !important; }
}
