/*
 * Style for B2W Sidebar Toolkit
 */

.b2w-widget-section {
    margin-bottom: 25px !important;
    padding: 18px !important;
    background-color: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 8px !important;
}

.b2w-widget-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 0 0 15px 0 !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid #2271b1 !important;
    color: #fff !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

body:not(.dark-theme) .b2w-widget-section {
    background-color: #fafafa !important;
    border-color: #eee !important;
}

body:not(.dark-theme) .b2w-widget-title {
    color: #222 !important;
    border-bottom-color: #2271b1 !important;
}

.b2w-widget-posts-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.b2w-widget-post-item {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 12px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.b2w-widget-post-item:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

.b2w-widget-post-thumb {
    width: 50px !important;
    height: 50px !important;
    border-radius: 6px !important;
    object-fit: cover !important;
    margin-right: 12px !important;
    flex-shrink: 0 !important;
    background-color: #222 !important;
}

.b2w-widget-post-content {
    flex-grow: 1 !important;
}

.b2w-widget-post-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin: 0 0 4px 0 !important;
    display: block !important;
}

.b2w-widget-post-title a {
    text-decoration: none !important;
    color: inherit !important;
    transition: color 0.2s ease !important;
}

.b2w-widget-post-title a:hover {
    color: #2271b1 !important;
}

.b2w-widget-post-meta {
    font-size: 11px !important;
    color: #888 !important;
    display: block !important;
}

/* Tag Cloud Badges */
.b2w-widget-tags-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 5px 0 !important;
}

.b2w-tag-badge {
    display: inline-block !important;
    font-size: 11px !important;
    padding: 4px 10px !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px !important;
    color: #ddd !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.b2w-tag-badge:hover {
    background-color: #2271b1 !important;
    border-color: #2271b1 !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
}

/* Dark mode adjustment for light themes */
body:not(.dark-theme) .b2w-tag-badge {
    background-color: rgba(0, 0, 0, 0.03) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: #444 !important;
}

body:not(.dark-theme) .b2w-tag-badge:hover {
    background-color: #2271b1 !important;
    border-color: #2271b1 !important;
    color: #fff !important;
}
