/* ==========================================================================
   Modern Premium Sidebar & Categories Widget Styles
   ========================================================================== */

/* Sidebar Container */
.weblizar-blogs-sidebar,
.widget-area,
#secondary,
.sidebar-widget {
    font-family: inherit;
}

/* Individual Widget Card */
.sidebar-widget,
.widget-area .widget,
.weblizar-blogs-sidebar .widget,
.widget_categories,
.widget_search,
.widget_archive,
.widget_recent_entries,
.widget_tag_cloud {
    background: #ffffff;
    border-radius: 16px;
    padding: 26px 28px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sidebar-widget:hover,
.widget_categories:hover {
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.09);
    border-color: #cbd5e1;
}

/* Widget Header / Title */
.sidebar-widget .widget-title,
.widget-area .widget-title,
.weblizar-blogs-sidebar h2.widget-title,
.weblizar-blogs-sidebar h3.widget-title,
.widget_categories h2,
.widget_categories h3,
.widget_categories h4,
.widget_search h2,
.widget_search h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 12px;
    position: relative;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-widget .widget-title::after,
.widget_categories .widget-title::after,
.widget_categories h2::after,
.widget_categories h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #06b6d4);
    border-radius: 3px;
}

/* Categories List Styling */
.widget_categories ul,
.widget_categories ul.wp-block-categories-list,
.sidebar-widget ul,
.weblizar-blogs-sidebar ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.widget_categories ul li,
.sidebar-widget ul li {
    list-style: none !important;
    position: relative;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.widget_categories ul li a,
.sidebar-widget ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    color: #334155;
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

/* Icon indicator before Category Name */
.widget_categories ul li a::before {
    content: '\f07b';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
    font-weight: 400;
    margin-right: 10px;
    color: #6366f1;
    font-size: 14px;
    transition: transform 0.25s ease, color 0.25s ease;
}

/* Category Hover Effects */
.widget_categories ul li a:hover,
.sidebar-widget ul li a:hover {
    background-color: #eef2ff;
    color: #4f46e5;
    border-color: #c7d2fe;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.widget_categories ul li a:hover::before {
    transform: scale(1.15);
    color: #4338ca;
}

/* Category Post Count Badge Styling */
.widget_categories ul li .post-count,
.widget_categories ul li span.count,
.widget_categories ul li {
    font-size: 12px;
    font-weight: 600;
}

/* Post Count Badges if rendered inside or beside link */
.widget_categories ul li a span,
.widget_categories ul li span {
    background: #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    transition: all 0.25s ease;
}

.widget_categories ul li a:hover span {
    background: #4f46e5;
    color: #ffffff;
}

/* Search Widget Styling */
.widget_search .search-form,
.sidebar-widget .search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.widget_search input[type="search"],
.widget_search input[type="text"],
.sidebar-widget input[type="search"],
.sidebar-widget input[type="text"] {
    width: 100%;
    padding: 13px 48px 13px 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    background: #f8fafc;
    color: #1e293b;
    outline: none;
    transition: all 0.25s ease;
}

.widget_search input[type="search"]:focus,
.widget_search input[type="text"]:focus,
.sidebar-widget input[type="search"]:focus {
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.widget_search input[type="submit"],
.widget_search button[type="submit"],
.sidebar-widget input[type="submit"] {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.widget_search input[type="submit"]:hover,
.widget_search button[type="submit"]:hover {
    opacity: 0.92;
    transform: translateY(-50%) scale(1.02);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Tag Cloud Widget */
.widget_tag_cloud .tagcloud a,
.sidebar-widget .tagcloud a {
    display: inline-block;
    padding: 6px 14px;
    margin: 3px;
    background: #f1f5f9;
    color: #475569;
    font-size: 13px !important;
    font-weight: 500;
    border-radius: 20px;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.widget_tag_cloud .tagcloud a:hover,
.sidebar-widget .tagcloud a:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}
