/* ========================================
   MicroBlog Frontend - Twitter/Weibo Style
   ======================================== */

.mb-feed {
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #0f1419;
}

.mb-item {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    border-bottom: 1px solid #eff3f4;
    background: #fff;
    transition: background 0.2s;
}
.mb-item:hover {
    background: #f7f7f7;
}

/* Avatar - 覆盖 WordPress .avatar 默认样式 */
.mb-avatar {
    flex-shrink: 0 !important;
    margin-right: 20px !important;
    line-height: 0 !important;
    float: none !important;
}
.mb-avatar img {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    display: block !important;
}

/* Body */
.mb-body {
    flex: 1;
    min-width: 0;
}

/* Text Content */
.mb-text {
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}
.mb-text a {
    color: #1d9bf0;
    text-decoration: none;
}
.mb-text a:hover {
    text-decoration: underline;
}

/* Images Row */
.mb-images-row {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.mb-img-thumb {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    cursor: pointer;
    flex-shrink: 0 !important;
    transition: opacity 0.2s;
    border: 1px solid #cfd9de;
    line-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}
.mb-img-thumb:hover {
    opacity: 0.8;
}
.mb-img-thumb img {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

/* Meta Row */
.mb-meta {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 16px;
    font-size: 13px;
    color: #536471;
}
.mb-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.mb-meta-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #536471;
}
.mb-meta-item a {
    color: #536471;
    text-decoration: none;
    word-break: break-all;
}
.mb-meta-item a:hover {
    color: #1d9bf0;
    text-decoration: underline;
}

/* Empty State */
.mb-empty {
    text-align: center;
    padding: 60px 20px;
    color: #536471;
    font-size: 16px;
}

/* Pagination */
.mb-pagination {
    margin-top: 20px;
    text-align: center;
}
.mb-pagination .page-numbers {
    display: inline-flex;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}
.mb-pagination .page-numbers li {
    display: inline-block;
}
.mb-pagination .page-numbers a,
.mb-pagination .page-numbers span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 2px;
    border: 1px solid #cfd9de;
    border-radius: 20px;
    text-decoration: none;
    color: #0f1419;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    min-width: 40px;
    text-align: center;
}
.mb-pagination .page-numbers a:hover {
    background: #e8f5fd;
    border-color: #1d9bf0;
}
.mb-pagination .page-numbers .current {
    background: #0f1419;
    color: #fff;
    border-color: #0f1419;
}
.mb-pagination .page-numbers .dots {
    border: none;
    padding: 8px 4px;
}

/* Lightbox */
.mb-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: mbFadeIn 0.2s ease;
}
.mb-lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    animation: mbZoomIn 0.25s ease;
}
.mb-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 36px;
    font-weight: 300;
    cursor: pointer;
    z-index: 1;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.mb-lightbox-close:hover {
    opacity: 1;
}

@keyframes mbFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes mbZoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

@media (max-width: 640px) {
    .mb-item {
        padding: 12px;
    }
    .mb-avatar {
        margin-right: 16px !important;
    }
    .mb-avatar img {
        width: 40px !important;
        height: 40px !important;
    }
    .mb-text {
        font-size: 14px;
    }
    .mb-meta {
        font-size: 12px;
        gap: 4px 12px;
    }
    .mb-pagination .page-numbers a,
    .mb-pagination .page-numbers span {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 34px;
    }
}