/* === ENHANCED SIDEBAR — hmmnm.com === */

/* ── Sidebar Container ── */
#right-sidebar {
    position: sticky;
    top: 100px;
}

.content-area-wrap {
    display: flex;
    gap: 0 !important;
}

#primary {
    flex: 1;
    min-width: 0;
}

#right-sidebar {
    flex: 0 0 320px;
    max-width: 320px;
    padding-left: 24px !important;
}

@media (max-width: 1200px) {
    #right-sidebar {
        flex: 0 0 280px;
        max-width: 280px;
        padding-left: 20px !important;
    }
}

/* ── Widget Base ── */
.widget {
    background: linear-gradient(145deg, rgba(15,23,42,0.03), rgba(30,41,59,0.02));
    border: 1px solid rgba(226,232,240,0.6);
    border-radius: 14px;
    padding: 20px !important;
    margin-bottom: 20px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.widget:hover {
    border-color: rgba(255, 107, 107, 0.2);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.06);
    transform: translateY(-2px);
}

/* ── Widget Title ── */
.sidebar-box .widget-title,
#right-sidebar .widget-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: #0f172a !important;
    margin-bottom: 14px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid rgba(255, 107, 107, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.sidebar-box .widget-title::before,
#right-sidebar .widget-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, #ff6b6b, #e11d48);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ── Search Widget ── */
.widget_search .search-form {
    position: relative;
}

.widget_search .search-form label {
    display: block;
}

.widget_search input[type="search"],
.widget_search .search-field {
    width: 100% !important;
    padding: 10px 42px 10px 14px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    font-size: 14px !important;
    color: #0f172a !important;
    transition: all 0.25s ease !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.widget_search input[type="search"]:focus,
.widget_search .search-field:focus {
    border-color: #ff6b6b !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1) !important;
}

.widget_search input[type="search"]::placeholder,
.widget_search .search-field::placeholder {
    color: #94a3b8 !important;
}

.widget_search button[type="submit"],
.widget_search .search-submit {
    position: absolute !important;
    right: 6px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border: none !important;
    background: linear-gradient(135deg, #ff6b6b, #e11d48) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.25) !important;
}

.widget_search button[type="submit"]:hover,
.widget_search .search-submit:hover {
    transform: translateY(-50%) scale(1.05) !important;
    box-shadow: 0 4px 14px rgba(255, 107, 107, 0.35) !important;
}

.widget_search button[type="submit"] svg,
.widget_search .search-submit svg {
    fill: #fff !important;
    width: 16px !important;
    height: 16px !important;
}

/* ── Categories Widget ── */
.widget_categories ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.widget_categories ul li {
    padding: 0 !important;
    margin-bottom: 2px !important;
    border-bottom: none !important;
}

.widget_categories ul li a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 12px !important;
    color: #475569 !important;
    text-decoration: none !important;
    font-size: 13.5px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    border-left: 3px solid transparent !important;
    white-space: nowrap !important;
    gap: 6px !important;
}

.widget_categories ul li a:hover {
    background: rgba(255, 107, 107, 0.06) !important;
    color: #ff6b6b !important;
    border-left-color: #ff6b6b !important;
    padding-left: 16px !important;
}

.widget_categories ul li .post-count,
.widget_categories .cat-item .count {
    background: rgba(255, 107, 107, 0.1) !important;
    color: #ff6b6b !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 10px !important;
    min-width: 24px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

.widget_categories .children {
    padding-left: 16px !important;
    margin-top: 2px !important;
}

/* ── Recent Posts Widget ── */
.widget_recent_entries ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.widget_recent_entries li {
    padding: 10px 0 !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5) !important;
}

.widget_recent_entries li:last-child {
    border-bottom: none !important;
}

.widget_recent_entries li a {
    display: block !important;
    color: #0f172a !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    margin-bottom: 2px !important;
}

.widget_recent_entries li a:hover {
    color: #ff6b6b !important;
}

.widget_recent_entries li .post-date {
    font-size: 11px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
}

/* ── Archives Widget ── */
.widget_archive select,
.widget_archive select {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    font-size: 13px !important;
    color: #475569 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    padding-right: 36px !important;
}

.widget_archive select:focus {
    border-color: #ff6b6b !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1) !important;
    outline: none !important;
}

.widget_archive ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.widget_archive ul li {
    margin-bottom: 2px !important;
    border-bottom: none !important;
}

.widget_archive ul li a {
    display: flex !important;
    align-items: center !important;
    padding: 8px 12px !important;
    color: #475569 !important;
    font-size: 13.5px !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    border-left: 3px solid transparent !important;
}

.widget_archive ul li a:hover {
    background: rgba(255, 107, 107, 0.06) !important;
    color: #ff6b6b !important;
    border-left-color: #ff6b6b !important;
}

/* ── Archives Count Badge ── */
.widget_archive ul li {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    white-space: nowrap !important;
    gap: 6px !important;
}

.widget_archive ul li a {
    flex: 1 !important;
    min-width: 0 !important;
}

.widget_archive .post-count {
    background: rgba(255, 107, 107, 0.1) !important;
    color: #ff6b6b !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 10px !important;
    flex-shrink: 0 !important;
}

/* ── Newsletter / Mailchimp Widget ── */
.widget_ocean_mailchimp,
.widget_ocean_newsletter {
    background: linear-gradient(145deg, #0f172a, #1e293b) !important;
    border: 1px solid rgba(255, 107, 107, 0.15) !important;
    border-radius: 14px !important;
    padding: 24px !important;
    position: relative;
    overflow: hidden;
}

.widget_ocean_mailchimp::before,
.widget_ocean_newsletter::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #e11d48, #ff6b6b);
    border-radius: 14px 14px 0 0;
}

.widget_ocean_mailchimp .widget-title,
.widget_ocean_newsletter .widget-title {
    color: #fff !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.widget_ocean_mailchimp .widget-title::before,
.widget_ocean_newsletter .widget-title::before {
    background: linear-gradient(180deg, #fbbf24, #f59e0b) !important;
}

.widget_ocean_mailchimp p,
.widget_ocean_newsletter p {
    color: #94a3b8 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin-bottom: 14px !important;
}

.widget_ocean_mailchimp .ocean-newsletter-form,
.widget_ocean_mailchimp form,
.widget_ocean_newsletter .ocean-newsletter-form {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
}

.widget_ocean_mailchimp .ocean-newsletter-email,
.widget_ocean_mailchimp input[type="email"],
.widget_ocean_newsletter .ocean-newsletter-email {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 10px 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #e2e8f0 !important;
    font-size: 13px !important;
    outline: none !important;
    transition: all 0.25s ease !important;
}

.widget_ocean_mailchimp .ocean-newsletter-email::placeholder,
.widget_ocean_mailchimp input[type="email"]::placeholder {
    color: #475569 !important;
}

.widget_ocean_mailchimp .ocean-newsletter-email:focus,
.widget_ocean_mailchimp input[type="email"]:focus {
    border-color: rgba(255, 107, 107, 0.4) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.widget_ocean_mailchimp .ocean-newsletter-submit,
.widget_ocean_mailchimp button[type="submit"],
.widget_ocean_newsletter .ocean-newsletter-submit {
    background: linear-gradient(135deg, #ff6b6b, #e11d48) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 18px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3) !important;
}

.widget_ocean_mailchimp .ocean-newsletter-submit:hover,
.widget_ocean_mailchimp button[type="submit"]:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.4) !important;
}

/* ── Responsive ── */
@media (max-width: 968px) {
    .content-area-wrap {
        flex-direction: column !important;
    }

    #right-sidebar {
        flex: none !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-top: 30px !important;
        position: static !important;
    }

    .widget {
        padding: 18px !important;
    }
}

/* ── OceanWP Category Count Fix (count is outside <a> tag) ── */
#right-sidebar .widget_categories li.cat-item,
#right-sidebar .cat-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    white-space: nowrap !important;
    gap: 6px !important;
    padding: 0 !important;
    margin-bottom: 2px !important;
}

#right-sidebar .widget_categories li.cat-item > a,
#right-sidebar .cat-item > a {
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

#right-sidebar .cat-count-span,
#right-sidebar .cat-item .cat-count-span,
#right-sidebar .cat-item .count {
    background: rgba(255, 107, 107, 0.1) !important;
    color: #ff6b6b !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 10px !important;
    flex-shrink: 0 !important;
    line-height: 1.4 !important;
}

/* ── OceanWP Archives Count Fix ── */
#right-sidebar .widget_archive li {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    white-space: nowrap !important;
    gap: 6px !important;
    padding: 0 !important;
    margin-bottom: 2px !important;
}

#right-sidebar .widget_archive li > a {
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* ── Universal sidebar fallback ── */
.sidebar .widget_categories li.cat-item,
.sidebar .cat-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    white-space: nowrap !important;
    gap: 6px !important;
    padding: 0 !important;
}

.sidebar .cat-count-span {
    background: rgba(255, 107, 107, 0.1) !important;
    color: #ff6b6b !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 10px !important;
    flex-shrink: 0 !important;
}
