/**
 * Latest Posts from Category Widget - Frontend Styles
 * 
 * @package Latest_Posts_Category_Widget
 */

/* Widget Container */
.lpcw-widget {
    margin-bottom: 20px;
}

/* Posts List */
.lpcw-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Individual Post Item */
.lpcw-post-item {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.lpcw-post-item:last-child {
    border-bottom: none;
}

/* Post Link Styling */
.lpcw-post-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    display: block;
    word-wrap: break-word;
    word-break: break-word;
    transition: color 0.2s ease;
}

.lpcw-post-link:hover {
    color: #005a87;
    text-decoration: underline;
}

.lpcw-post-link:visited {
    color: #551e8b;
}

/* Error Message */
.lpcw-error {
    color: #d63638;
    background-color: #fcf0f1;
    padding: 12px;
    border-left: 4px solid #d63638;
    margin: 10px 0;
    border-radius: 2px;
    font-size: 14px;
}

/* No Posts Message */
.lpcw-no-posts {
    color: #666;
    font-style: italic;
    padding: 10px 0;
    margin: 10px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lpcw-post-item {
        margin-bottom: 10px;
        padding: 6px 0;
    }

    .lpcw-post-link {
        font-size: 14px;
    }
}