/* ======================================================
   Mexoq Toolkit - Widget Styles
   Follows theme color variables from main.css
   All classes use 'mexoq-' prefix
   ====================================================== */



/* ---- Widget Title ---- */
.sidebar .mexoq-widget-wrap .mexoq-widget-title,
.mexoq-widget-wrap .mexoq-widget-title {
    font-family: var(--heading-font, "Funnel Display", sans-serif);
    font-size: 20px;
    font-weight: 700;
    color: #111111 !important;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.sidebar .mexoq-widget-wrap .mexoq-widget-title::after,
.mexoq-widget-wrap .mexoq-widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 40px;
    height: 2px;
    background-color: var(--main-600, hsl(45, 100%, 63%));
    border-radius: 2px;
}

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

.sidebar .mexoq-search-widget .mexoq-search-form input[type="text"],
.sidebar .mexoq-search-widget .mexoq-search-form input[type="search"],
.mexoq-search-widget .mexoq-search-form input[type="text"],
.mexoq-search-widget .mexoq-search-form input[type="search"] {
    width: 100%;
    padding: 13px 55px 13px 20px;
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px;
    color: #111111 !important;
    font-size: 15px;
    font-family: var(--body-font, sans-serif);
    transition: border-color 0.3s ease;
    outline: none;
    box-shadow: none;
}

.sidebar .mexoq-search-widget .mexoq-search-form input::placeholder,
.mexoq-search-widget .mexoq-search-form input::placeholder {
    color: rgba(0, 0, 0, 0.4) !important;
}

.sidebar .mexoq-search-widget .mexoq-search-form input:focus,
.mexoq-search-widget .mexoq-search-form input:focus {
    border-color: var(--main-600, hsl(45, 100%, 63%)) !important;
    background-color: #ffffff !important;
}

.sidebar .mexoq-search-widget .mexoq-search-form button[type="submit"],
.mexoq-search-widget .mexoq-search-form button[type="submit"] {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: none;
    background-color: var(--main-600, hsl(45, 100%, 63%));
    color: #111;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar .mexoq-search-widget .mexoq-search-form button[type="submit"]:hover,
.mexoq-search-widget .mexoq-search-form button[type="submit"]:hover {
    background-color: var(--main-two-600, hsl(8, 98%, 59%));
    color: #ffffff;
}

.mexoq-search-widget .mexoq-search-form button[type="submit"] svg {
    width: 16px;
    height: 16px;
}

/* ================================================================
   Popular Tags Widget
   ================================================================ */
.sidebar .mexoq-tags-widget .mexoq-tag-cloud,
.mexoq-tags-widget .mexoq-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar .mexoq-tags-widget .mexoq-tag-cloud a,
.mexoq-tags-widget .mexoq-tag-cloud a {
    display: inline-block;
    padding: 6px 14px;
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 50px;
    color: #333333 !important;
    font-size: 13px;
    font-family: var(--body-font, sans-serif);
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.sidebar .mexoq-tags-widget .mexoq-tag-cloud a:hover,
.mexoq-tags-widget .mexoq-tag-cloud a:hover {
    background-color: var(--main-600, hsl(45, 100%, 63%)) !important;
    border-color: var(--main-600, hsl(45, 100%, 63%)) !important;
    color: #111111 !important;
}

/* ================================================================
   Category Widget
   ================================================================ */
.sidebar .mexoq-category-widget .mexoq-category-list,
.mexoq-category-widget .mexoq-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar .mexoq-category-widget .mexoq-category-item,
.mexoq-category-widget .mexoq-category-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.sidebar .mexoq-category-widget .mexoq-category-item:last-child,
.mexoq-category-widget .mexoq-category-item:last-child {
    border-bottom: none;
}

.sidebar .mexoq-category-widget .mexoq-category-link,
.mexoq-category-widget .mexoq-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    text-decoration: none;
}

.sidebar .mexoq-category-widget .mexoq-category-name,
.mexoq-category-widget .mexoq-category-name {
    color: #333333 !important;
    font-size: 15px;
    font-family: var(--body-font, sans-serif);
    transition: color 0.3s ease;
}

.sidebar .mexoq-category-widget .mexoq-category-count,
.mexoq-category-widget .mexoq-category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    background-color: rgba(0, 0, 0, 0.06);
    border-radius: 30px;
    color: #555555 !important;
    font-size: 12px;
    font-family: var(--body-font, sans-serif);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar .mexoq-category-widget .mexoq-category-link:hover .mexoq-category-name,
.mexoq-category-widget .mexoq-category-link:hover .mexoq-category-name {
    color: var(--main-600, hsl(45, 100%, 63%)) !important;
}

.sidebar .mexoq-category-widget .mexoq-category-link:hover .mexoq-category-count,
.mexoq-category-widget .mexoq-category-link:hover .mexoq-category-count {
    background-color: var(--main-600, hsl(45, 100%, 63%));
    color: #111111 !important;
}

/* ================================================================
   Recent Posts Widget
   ================================================================ */
.sidebar .mexoq-recent-posts-widget .mexoq-recent-post-list,
.mexoq-recent-posts-widget .mexoq-recent-post-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sidebar .mexoq-recent-posts-widget .mexoq-recent-post-item,
.mexoq-recent-posts-widget .mexoq-recent-post-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.sidebar .mexoq-recent-posts-widget .mexoq-recent-post-item:not(:last-child),
.mexoq-recent-posts-widget .mexoq-recent-post-item:not(:last-child) {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.sidebar .mexoq-recent-posts-widget .mexoq-recent-post-thumb,
.mexoq-recent-posts-widget .mexoq-recent-post-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
}

.sidebar .mexoq-recent-posts-widget .mexoq-recent-post-thumb a,
.mexoq-recent-posts-widget .mexoq-recent-post-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.sidebar .mexoq-recent-posts-widget .mexoq-recent-post-thumb img,
.mexoq-recent-posts-widget .mexoq-recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sidebar .mexoq-recent-posts-widget .mexoq-recent-post-item:hover .mexoq-recent-post-thumb img,
.mexoq-recent-posts-widget .mexoq-recent-post-item:hover .mexoq-recent-post-thumb img {
    transform: scale(1.06);
}

.sidebar .mexoq-recent-posts-widget .mexoq-recent-post-content,
.mexoq-recent-posts-widget .mexoq-recent-post-content {
    flex: 1;
    min-width: 0;
}

.sidebar .mexoq-recent-posts-widget .mexoq-recent-post-date,
.mexoq-recent-posts-widget .mexoq-recent-post-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--main-two-600, hsl(8, 98%, 59%)) !important;
    font-size: 12px;
    margin-bottom: 5px;
    font-family: var(--body-font, sans-serif);
}

.sidebar .mexoq-recent-posts-widget .mexoq-recent-post-date i,
.mexoq-recent-posts-widget .mexoq-recent-post-date i {
    font-size: 11px;
}

.sidebar .mexoq-recent-posts-widget .mexoq-recent-post-title,
.mexoq-recent-posts-widget .mexoq-recent-post-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    font-family: var(--heading-font, "Funnel Display", sans-serif);
    margin: 0;
}

.sidebar .mexoq-recent-posts-widget .mexoq-recent-post-title a,
.mexoq-recent-posts-widget .mexoq-recent-post-title a {
    color: #111111 !important;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.sidebar .mexoq-recent-posts-widget .mexoq-recent-post-title a:hover,
.mexoq-recent-posts-widget .mexoq-recent-post-title a:hover {
    color: var(--main-600, hsl(45, 100%, 63%)) !important;
}