/* ============================================================
   MJ Block Lists
   ============================================================ */

.mjbl-wrap {
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    direction: rtl;
}

/* ---- Header ---- */
.mjbl-header {
    background: linear-gradient(to left, #dc2626, #b91c1c);
    padding: 14px 16px;
}

.mjbl-header-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mjbl-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.mjbl-header-icon svg {
    stroke: #fff;
}

.mjbl-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    line-height: 1.3;
}

a.mjbl-title:hover {
    opacity: 0.85;
}

/* ---- List ---- */
.mjbl-list {
    display: flex;
    flex-direction: column;
}

/* ---- Item ---- */
.mjbl-item {
    border-bottom: 1px solid #f3f4f6;
    background-color: #ffffff;
    transition: background-color 0.2s;
    position: relative;
}

.mjbl-item:last-child {
    border-bottom: none;
}

.mjbl-item:hover {
    background-color: #f9fafb;
}

.mjbl-item-inner {
    display: flex;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    padding: 14px 16px;
    gap: 0;
    min-height: 70px;
}

/* ---- Number ---- */
.mjbl-number-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    padding-left: 12px;
}

.mjbl-number {
    font-size: 22px;
    font-weight: 700;
    color: #dc2626;
    font-family: monospace;
    line-height: 1;
}

/* ---- Content ---- */
.mjbl-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* ---- Category badge ---- */
.mjbl-cat {
    display: inline-block;
    padding: 2px 8px;
    background-color: #fef2f2;
    color: #dc2626;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    align-self: flex-start;
    text-decoration: none;
    line-height: 1.6;
}

/* ---- Post title ---- */
.mjbl-post-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.mjbl-item:hover .mjbl-post-title {
    color: #dc2626;
}

/* ---- Date ---- */
.mjbl-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #9ca3af;
}

.mjbl-date svg {
    flex-shrink: 0;
    stroke: currentColor;
}

/* ---- Empty ---- */
.mjbl-empty {
    padding: 16px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .mjbl-item-inner { padding: 10px 12px; min-height: 60px; }
    .mjbl-number { font-size: 18px; }
    .mjbl-number-wrap { width: 32px; padding-left: 8px; }
    .mjbl-post-title { font-size: 13px; }
}
