/**
 * Widget Styles
 * Modern, minimalist design for sidebar components.
 */

/* Main Widget Container */
/* Main Widget Container */
.widget {
    background: transparent;
    padding: 0;
    margin-bottom: 40px;
    border: none;
    box-shadow: none;
}

.widget:hover {
    transform: none;
    box-shadow: none;
}

/* Widget Title */
.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    /* Slightly bolder than body, but not too heavy */
    color: #1a202c;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eaeaea;
    /* Lighter separator */
    position: relative;
    letter-spacing: -0.5px;
    /* Modern tight spacing */
}

/* Optional: Accent underline */
.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #2b6cb0;
    /* Primary Color */
}

/* Lists (Categories, Recent Posts, Archives, etc.) */
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    margin-bottom: 0;
    border-bottom: 1px solid #f4f4f4;
    /* Very subtle divider */
    padding: 4px 0;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    display: flex;
    /* Flex for alignment */
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.widget ul li a:hover {
    color: #2b6cb0;
    transform: translateX(4px);
}

/* Post Counts */
.widget ul li .count {
    background: #f0f4f8;
    color: #4a5568;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* Search Widget */
.widget_search .wp-block-search__inside-wrapper,
.widget_search form {
    display: flex;
    gap: 0;
    /* Remove gap for fused look */
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    /* Contains the button border-radius */
    transition: border-color 0.2s;
}

.widget_search form:focus-within {
    border-color: #2b6cb0;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
}

.widget_search .wp-block-search__input,
.widget_search input[type="search"] {
    flex-grow: 1;
    border: none !important;
    /* Managed by container */
    background: #fff !important;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: #4a5568;
    outline: none;
}

.widget_search .wp-block-search__button,
.widget_search button[type="submit"],
.widget_search input[type="submit"] {
    background: #fff;
    color: #2b6cb0;
    /* Icon color */
    border: none;
    border-left: 1px solid #e2e8f0;
    padding: 0 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget_search .wp-block-search__button:hover,
.widget_search button[type="submit"]:hover,
.widget_search input[type="submit"]:hover {
    background: #f7fafc;
    color: #1a365d;
}

/* Tag Cloud */
.widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 5px;
}

.widget_tag_cloud a {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #666;
    padding: 6px 14px;
    border-radius: 20px;
    /* Pill shape */
    font-size: 0.8rem !important;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.widget_tag_cloud a:hover {
    background: #2b6cb0;
    border-color: #2b6cb0;
    color: #fff;
    box-shadow: 0 4px 6px rgba(43, 108, 176, 0.2);
}