/* Smart Backlink Slave Display Styles */

.sbn-backlinks-container {
    margin: 20px 0;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sbn-backlinks-header h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
}

.sbn-backlinks-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sbn-backlinks-list .sbn-backlink-item {
    margin-bottom: 12px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.sbn-backlinks-list .sbn-backlink-item:hover {
    background: #ffffff;
    border-color: #0073aa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sbn-backlink-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
    transition: all 0.2s ease;
}

.sbn-backlink-link:hover {
    color: #005177;
    text-decoration: underline;
}

.sbn-backlink-description {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

.sbn-backlinks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.sbn-backlink-card {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 15px;
    transition: all 0.2s ease;
}

.sbn-backlink-card:hover {
    background: #ffffff;
    border-color: #0073aa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sbn-backlink-card .sbn-backlink-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.sbn-backlink-card .sbn-backlink-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
}

.sbn-backlink-card .sbn-backlink-title a:hover {
    color: #0073aa;
    text-decoration: underline;
}

.sbn-backlink-card .sbn-backlink-description {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

/* Widget Styles */
.widget_sbn_backlink_widget .sbn-backlinks-container {
    margin: 0;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
}

.widget_sbn_backlink_widget .sbn-backlinks-header h3 {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
}

/* Footer Styles */
#footer .sbn-backlinks-container,
.site-footer .sbn-backlinks-container {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 6px;
}

#footer .sbn-backlinks-container .sbn-backlinks-header h3,
.site-footer .sbn-backlinks-container .sbn-backlinks-header h3 {
    color: #fff;
}

#footer .sbn-backlinks-container .sbn-backlink-link,
.site-footer .sbn-backlinks-container .sbn-backlink-link {
    color: #fff;
}

#footer .sbn-backlinks-container .sbn-backlink-link:hover,
.site-footer .sbn-backlinks-container .sbn-backlink-link:hover {
    color: #e0e6ff;
}

#footer .sbn-backlinks-container .sbn-backlink-description,
.site-footer .sbn-backlinks-container .sbn-backlink-description {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sbn-backlinks-container {
        padding: 20px;
        margin: 20px 0;
        border-radius: 16px;
    }
    
    .sbn-backlinks-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sbn-backlink-card {
        padding: 20px;
    }
    
    .sbn-backlinks-header h3 {
        font-size: 20px;
    }
    
    .sbn-backlink-link {
        font-size: 16px;
    }
    
    .sbn-backlink-description {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .sbn-backlinks-container {
        padding: 15px;
        margin: 15px 0;
        border-radius: 12px;
    }
    
    .sbn-backlink-item,
    .sbn-backlink-card {
        padding: 15px;
        border-radius: 12px;
    }
    
    .sbn-backlinks-header h3 {
        font-size: 18px;
    }
    
    .sbn-backlink-link {
        font-size: 15px;
    }
    
    .sbn-backlink-description {
        font-size: 13px;
        padding-left: 15px;
    }
}
