/* Global Documentation Styles */
.wp-doc-pro {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Content Area Link Styling - Remove default blue underlined links */
.professional-doc-main-content a,
.doc-main-content a,
.doc-content a,
.wp-doc-main-content a,
.doc-article a,
.professional-doc-container .professional-doc-main-content a,
.professional-doc-container main a {
    color: #10b981 !important;
    text-decoration: none !important;
    border-bottom: none !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(16, 185, 129, 0.3) !important;
    padding-bottom: 1px;
}

.professional-doc-main-content a:hover,
.doc-main-content a:hover,
.doc-content a:hover,
.wp-doc-main-content a:hover,
.doc-article a:hover,
.professional-doc-container .professional-doc-main-content a:hover,
.professional-doc-container main a:hover {
    color: #059669 !important;
    border-bottom-color: #059669 !important;
    border-bottom-width: 2px !important;
    text-decoration: none !important;
}

.professional-doc-main-content a:focus,
.doc-main-content a:focus,
.doc-content a:focus,
.wp-doc-main-content a:focus,
.doc-article a:focus,
.professional-doc-container .professional-doc-main-content a:focus,
.professional-doc-container main a:focus {
    outline: 2px solid #10b981 !important;
    outline-offset: 2px !important;
    border-radius: 2px !important;
}

/* Override WordPress default link styles in content */
.professional-doc-main-content p a,
.doc-main-content p a,
.doc-content p a,
.professional-doc-container .professional-doc-main-content p a,
.professional-doc-container main p a,
.professional-doc-main-content article a,
.professional-doc-main-content .entry-content a,
.professional-doc-container .entry-content a {
    color: #10b981 !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(16, 185, 129, 0.3) !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
}

.professional-doc-main-content p a:hover,
.doc-main-content p a:hover,
.doc-content p a:hover,
.professional-doc-container .professional-doc-main-content p a:hover,
.professional-doc-container main p a:hover,
.professional-doc-main-content article a:hover,
.professional-doc-main-content .entry-content a:hover,
.professional-doc-container .entry-content a:hover {
    color: #059669 !important;
    border-bottom-color: #059669 !important;
    border-bottom-width: 2px !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
}

/* Remove all default link styles globally in documentation containers */
.professional-doc-container a:not(.other-link):not(.doc-tree-link):not(.doc-breadcrumb a),
.professional-doc-main-content a:not(.other-link):not(.doc-tree-link),
main a:not(.other-link):not(.doc-tree-link) {
    text-decoration: none !important;
    border-bottom: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: #10b981 !important;
}

.professional-doc-container a:not(.other-link):not(.doc-tree-link):not(.doc-breadcrumb a):hover,
.professional-doc-main-content a:not(.other-link):not(.doc-tree-link):hover,
main a:not(.other-link):not(.doc-tree-link):hover {
    text-decoration: none !important;
    border-bottom-color: #059669 !important;
    border-bottom-width: 2px !important;
    color: #059669 !important;
}

/* Lightbox */
.wp-doc-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: 5% auto;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
}

/* Mobile Sidebar */
@media (max-width: 991px) {
    .wp-doc-sidebar {
        position: fixed;
        left: -300px;
        top: 0;
        bottom: 0;
        width: 300px;
        background: white;
        box-shadow: 2px 0 8px rgba(0,0,0,0.1);
        z-index: 1000;
        overflow-y: auto;
        transition: left 0.3s ease;
    }
    
    .wp-doc-sidebar.active {
        left: 0;
    }
}

/* Print Styles */
@media print {
    .wp-doc-sidebar,
    .doc-actions,
    .wp-doc-feedback,
    .wp-doc-navigation,
    .related-documentation,
    .wp-doc-breadcrumbs,
    .doc-meta {
        display: none !important;
    }
    
    .doc-content {
        max-width: 100% !important;
    }
    
    .doc-content a {
        color: #000 !important;
    }
    
    .doc-content pre {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}

/* OTHER LINKS Section Styles - Enhanced with higher specificity */
/* Multiple selector paths to catch all possible containers */
.professional-doc-container .other-links-section,
.doc-nav-tree .other-links-section,
.professional-doc-left-sidebar .other-links-section,
.professional-doc-container .professional-doc-left-sidebar .other-links-section,
.professional-doc-left-sidebar nav .other-links-section,
aside .other-links-section,
.professional-doc-container aside .other-links-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.professional-doc-container .other-links-title,
.doc-nav-tree .other-links-title {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1a !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px 0;
    padding: 0;
}

.professional-doc-container .other-links-list,
.doc-nav-tree .other-links-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.professional-doc-container .other-link-item,
.doc-nav-tree .other-link-item {
    margin-bottom: 8px;
    list-style: none !important;
}

/* Maximum specificity selectors for anchor tags - Simple color styling */
.professional-doc-container .professional-doc-left-sidebar .doc-nav-tree .other-links-section .other-links-list .other-link-item a.other-link,
.professional-doc-container .professional-doc-left-sidebar .doc-nav-tree .other-links-section .other-links-list li a.other-link,
.professional-doc-container .professional-doc-left-sidebar .doc-nav-tree .other-links-section .other-links-list a,
.professional-doc-container .professional-doc-left-sidebar .other-links-section .other-links-list a,
.professional-doc-left-sidebar .doc-nav-tree .other-links-section .other-links-list a,
.professional-doc-left-sidebar .other-links-section .other-links-list a,
.professional-doc-container .other-link,
.doc-nav-tree .other-link,
.professional-doc-container .other-links-list a,
.doc-nav-tree .other-links-list a,
aside .other-links-list a,
.other-links-section .other-links-list a.other-link,
.other-links-section .other-links-list li a {
    display: block !important;
    padding: 12px 16px !important;
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    color: #666 !important;
    border-radius: 0 !important;
    transition: background-color 0.2s ease !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    text-decoration-color: transparent !important;
}

/* Maximum specificity hover selectors - Simple color hover */
.professional-doc-container .professional-doc-left-sidebar .doc-nav-tree .other-links-section .other-links-list .other-link-item a.other-link:hover,
.professional-doc-container .professional-doc-left-sidebar .doc-nav-tree .other-links-section .other-links-list li a.other-link:hover,
.professional-doc-container .professional-doc-left-sidebar .doc-nav-tree .other-links-section .other-links-list a:hover,
.professional-doc-container .professional-doc-left-sidebar .other-links-section .other-links-list a:hover,
.professional-doc-left-sidebar .doc-nav-tree .other-links-section .other-links-list a:hover,
.professional-doc-left-sidebar .other-links-section .other-links-list a:hover,
.professional-doc-container .other-link:hover,
.doc-nav-tree .other-link:hover,
.professional-doc-container .other-links-list a:hover,
.doc-nav-tree .other-links-list a:hover,
aside .other-links-list a:hover,
.other-links-section .other-links-list a.other-link:hover,
.other-links-section .other-links-list li a:hover {
    background-color: #f5f5f5 !important;
    color: #333 !important;
    border: none !important;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    transform: none !important;
    text-decoration-line: none !important;
}

.professional-doc-container .other-link-item.active .other-link,
.doc-nav-tree .other-link-item.active .other-link,
.professional-doc-container .other-link-item.active a,
.doc-nav-tree .other-link-item.active a {
    background-color: #10b981 !important;
    color: white !important;
    border: none !important;
    box-shadow: none !important;
}

.professional-doc-container .link-title,
.doc-nav-tree .link-title {
    font-weight: 500;
    display: block;
    color: inherit !important;
}

/* FAQ specific styling - Simple color */
.professional-doc-container .professional-doc-left-sidebar .doc-nav-tree .other-links-section .other-links-list .faq-item a.other-link,
.professional-doc-container .professional-doc-left-sidebar .doc-nav-tree .other-links-section .other-links-list .faq-item a,
.professional-doc-left-sidebar .doc-nav-tree .other-links-section .other-links-list .faq-item a,
.professional-doc-container .faq-item .other-link,
.doc-nav-tree .faq-item .other-link,
.professional-doc-container .faq-item a,
.doc-nav-tree .faq-item a,
.other-links-section .faq-item a {
    color: #10b981 !important;
    background: transparent !important;
    border: none !important;
    text-decoration: none !important;
}

.professional-doc-container .faq-item .other-link:hover,
.doc-nav-tree .faq-item .other-link:hover,
.professional-doc-container .faq-item a:hover,
.doc-nav-tree .faq-item a:hover {
    background-color: #f5f5f5 !important;
    color: #10b981 !important;
    border: none !important;
}

.professional-doc-container .faq-item.active .other-link,
.doc-nav-tree .faq-item.active .other-link,
.professional-doc-container .faq-item.active a,
.doc-nav-tree .faq-item.active a {
    background-color: #10b981 !important;
    color: white !important;
    border: none !important;
}

/* Troubleshooting specific styling - Simple color */
.professional-doc-container .troubleshooting-item .other-link,
.doc-nav-tree .troubleshooting-item .other-link,
.professional-doc-container .troubleshooting-item a,
.doc-nav-tree .troubleshooting-item a {
    color: #f59e0b !important;
    background: transparent !important;
    border: none !important;
}

.professional-doc-container .troubleshooting-item .other-link:hover,
.doc-nav-tree .troubleshooting-item .other-link:hover,
.professional-doc-container .troubleshooting-item a:hover,
.doc-nav-tree .troubleshooting-item a:hover {
    background-color: #f5f5f5 !important;
    color: #f59e0b !important;
    border: none !important;
}

.professional-doc-container .troubleshooting-item.active .other-link,
.doc-nav-tree .troubleshooting-item.active .other-link,
.professional-doc-container .troubleshooting-item.active a,
.doc-nav-tree .troubleshooting-item.active a {
    background-color: #f59e0b !important;
    color: white !important;
    border: none !important;
}

/* Changelog specific styling - Simple color */
.professional-doc-container .changelog-item .other-link,
.doc-nav-tree .changelog-item .other-link,
.professional-doc-container .changelog-item a,
.doc-nav-tree .changelog-item a {
    color: #3b82f6 !important;
    background: transparent !important;
    border: none !important;
}

.professional-doc-container .changelog-item .other-link:hover,
.doc-nav-tree .changelog-item .other-link:hover,
.professional-doc-container .changelog-item a:hover,
.doc-nav-tree .changelog-item a:hover {
    background-color: #f5f5f5 !important;
    color: #3b82f6 !important;
    border: none !important;
}

.professional-doc-container .changelog-item.active .other-link,
.doc-nav-tree .changelog-item.active .other-link,
.professional-doc-container .changelog-item.active a,
.doc-nav-tree .changelog-item.active a {
    background-color: #3b82f6 !important;
    color: white !important;
    border: none !important;
}

/* Support specific styling - Simple color */
.professional-doc-container .support-item .other-link,
.doc-nav-tree .support-item .other-link,
.professional-doc-container .support-item a,
.doc-nav-tree .support-item a {
    color: #8b5cf6 !important;
    background: transparent !important;
    border: none !important;
}

.professional-doc-container .support-item .other-link:hover,
.doc-nav-tree .support-item .other-link:hover,
.professional-doc-container .support-item a:hover,
.doc-nav-tree .support-item a:hover {
    background-color: #f5f5f5 !important;
    color: #8b5cf6 !important;
    border: none !important;
}

.professional-doc-container .support-item.active .other-link,
.doc-nav-tree .support-item.active .other-link,
.professional-doc-container .support-item.active a,
.doc-nav-tree .support-item.active a {
    background-color: #8b5cf6 !important;
    color: white !important;
    border: none !important;
}

/* Main navigation styling - Enhanced UI */
.doc-tree-link {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    text-decoration: none;
    color: #374151;
    border-radius: 0;
    transition: all 0.2s ease;
    font-size: 14px;
    line-height: 1.5;
    border: none;
    background: transparent;
    position: relative;
    margin: 2px 0;
}

.doc-tree-link:hover {
    background-color: #f8f9fa;
    color: #1f2937;
    border: none;
}

.doc-tree-item.active .doc-tree-link {
    background-color: #f0fdf4;
    color: #10b981;
    border-left: 3px solid #10b981;
    font-weight: 500;
    padding-left: 13px;
}

/* Enhanced sidebar spacing */
.professional-doc-left-sidebar {
    padding: 16px 0;
}

.doc-nav-tree {
    padding: 0 12px;
}

/* Improve OTHER LINKS spacing */
.professional-doc-container .other-links-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

/* Global override for OTHER LINKS - catch any edge cases */
.professional-doc-left-sidebar .other-links-section a,
.doc-nav-tree .other-links-section a,
.professional-doc-container aside .other-links-section a {
    text-decoration: none !important;
    border-bottom: none !important;
    outline: none !important;
}

.professional-doc-left-sidebar .other-links-section a:focus,
.doc-nav-tree .other-links-section a:focus,
.professional-doc-container aside .other-links-section a:focus {
    outline: 2px solid #10b981 !important;
    outline-offset: 2px !important;
}

/* Ensure link text doesn't have underline */
.professional-doc-left-sidebar .other-links-section .link-title,
.doc-nav-tree .other-links-section .link-title {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .professional-doc-container .other-links-section,
    .doc-nav-tree .other-links-section {
        margin-top: 20px;
        padding-top: 15px;
    }
    
    .professional-doc-container .other-link,
    .doc-nav-tree .other-link {
        padding: 10px 14px !important;
        font-size: 13px !important;
    }
    
    .doc-tree-link {
        padding: 10px 14px;
        font-size: 13px;
    }
}