/* =============================================
   Zero-Nine — Sticky Blog Sidebar
============================================= */

.zn-sticky-sidebar {
    position: fixed;
    top: 80px; /* sits just below your header */
    right: 0;
    width: 280px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    z-index: 999;
    padding: 0 12px 12px 0;
}

/* Hide scrollbar but keep scrolling */
.zn-sticky-sidebar::-webkit-scrollbar { width: 0; }

.zn-sticky-inner {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

/* Search */
.zn-search-wrap {
    display: flex;
    gap: 8px;
}

.zn-search-input {
    flex: 1;
    height: 38px;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    background: #f9f9f9 !important;
    outline: none !important;
    box-shadow: none !important;
    color: #333 !important;
    font-family: inherit !important;
}

.zn-search-input:focus {
    border-color: #2140c8 !important;
    background: #fff !important;
}

.zn-search-btn {
    width: 38px;
    height: 38px;
    background: #2140c8;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.zn-search-btn:hover { background: #1a33a8; }

/* Recent Posts */
.zn-recent-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 0.9rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid #f0f0f0;
}

.zn-recent-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.zn-recent-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 9px 0;
    border-bottom: 1px solid #f5f5f5;
    margin: 0 !important;
}

.zn-recent-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.zn-thumb {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    flex-shrink: 0;
    overflow: hidden;
    display: block;
}

.zn-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.zn-thumb-placeholder {
    background: #eef1ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zn-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.zn-item-title {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #222 !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zn-item-title:hover { color: #2140c8 !important; }

.zn-item-date {
    font-size: 11px;
    color: #bbb;
}

/* Hide on mobile */
@media (max-width: 1024px) {
    .zn-sticky-sidebar {
        display: none;
    }
}
