/* ═══════════════════════════════════════════════════════════
   Content Pages — CSS مشترک
   ═══════════════════════════════════════════════════════════ */

.mbs-page-wrap { padding: 20px 0 100px; min-height: 70vh; }

/* ─── هدر صفحه ─── */
.mbs-page-head {
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    border-bottom: 1px solid #e5e7eb;
    padding: 22px 0;
    margin-bottom: 28px;
}

.mbs-page-head__inner { display: flex; align-items: center; gap: 14px; direction: rtl; }

.mbs-page-head__icon {
    width: 54px; height: 54px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; flex-shrink: 0; box-shadow: 0 8px 20px rgba(0,0,0,.1);
}

.mbs-page-head__icon--gallery { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.mbs-page-head__icon--video   { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.mbs-page-head__icon--podcast { background: linear-gradient(135deg, #8b5cf6, #6366f1); }

.mbs-page-head__title { font-size: 22px; font-weight: 900; color: #0f172a; margin: 0 0 2px; }
.mbs-page-head__sub { font-size: 13px; color: #64748b; margin: 0; }

/* ─── گرید گزارش تصویری ─── */
.mbs-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }

.mbs-gallery-item {
    position: relative; aspect-ratio: 1/1; overflow: hidden;
    background: #f1f5f9; display: block; text-decoration: none;
}

.mbs-gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    display: block; transition: transform .4s ease;
}

.mbs-gallery-item:hover img { transform: scale(1.06); }

.mbs-gallery-item__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.6), transparent 50%);
    opacity: 0; transition: opacity .3s ease;
    display: flex; align-items: flex-end; justify-content: center;
    padding: 12px; color: #fff;
}

.mbs-gallery-item:hover .mbs-gallery-item__overlay { opacity: 1; }

/* ─── گرید ویدئو ─── */
.mbs-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.mbs-video-card {
    background: #fff; border-radius: 14px; overflow: hidden;
    text-decoration: none; color: inherit;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    transition: all .25s ease; border: 1px solid #e8ecf5;
}

.mbs-video-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.1); }

.mbs-video-card__thumb {
    position: relative; aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    display: flex; align-items: center; justify-content: center;
    color: #fff; overflow: hidden;
}

.mbs-video-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mbs-video-card__thumb-placeholder { opacity: .4; }

.mbs-video-card__body { padding: 14px 16px; direction: rtl; }

.mbs-video-card__title {
    font-size: 14.5px; font-weight: 800; color: #0f172a;
    margin: 0 0 6px; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

.mbs-video-card__desc {
    font-size: 12.5px; color: #64748b; line-height: 1.6; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

/* ─── لیست پادکست ─── */
.mbs-podcast-list { display: flex; flex-direction: column; gap: 12px; }

.mbs-podcast-item {
    display: flex; align-items: center; gap: 14px;
    background: #fff; padding: 14px 16px;
    border-radius: 14px; border: 1px solid #e8ecf5;
    transition: all .2s; direction: rtl;
}

.mbs-podcast-item:hover { border-color: #6366f1; box-shadow: 0 6px 20px rgba(99,102,241,.1); }

.mbs-podcast-item__cover {
    width: 56px; height: 56px; border-radius: 12px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    display: flex; align-items: center; justify-content: center;
    color: #fff; flex-shrink: 0;
}

.mbs-podcast-item__body { flex: 1; min-width: 0; }
.mbs-podcast-item__title { font-size: 14.5px; font-weight: 800; color: #0f172a; margin: 0 0 4px; }
.mbs-podcast-item__desc { font-size: 12.5px; color: #64748b; margin: 0; }

/* ─── حالت خالی ─── */
.mbs-empty {
    text-align: center; padding: 80px 20px;
    max-width: 500px; margin: 0 auto; direction: rtl;
}

.mbs-empty__icon {
    color: #cbd5e1; margin-bottom: 20px;
    display: inline-flex; padding: 24px;
    border-radius: 50%; background: #f8fafc;
}

.mbs-empty__title { font-size: 18px; font-weight: 800; color: #334155; margin: 0 0 8px; }
.mbs-empty__desc { font-size: 13.5px; color: #64748b; line-height: 1.8; margin: 0 0 20px; }

.mbs-empty__badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    color: #92400e; font-size: 12px; font-weight: 800;
    padding: 6px 14px; border-radius: 100px;
    margin-bottom: 16px;
}

/* ─── صفحه‌بندی ─── */
.mbs-pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; margin-top: 32px; direction: rtl;
}

.mbs-page-btn {
    background: #fff; border: 1px solid #e8ecf5;
    padding: 10px 20px; border-radius: 10px;
    color: #334155; text-decoration: none;
    font-weight: 700; font-size: 13px; transition: all .2s;
}

.mbs-page-btn:hover { background: #6366f1; color: #fff; border-color: #6366f1; }

.mbs-page-info { font-size: 13px; color: #64748b; font-weight: 700; }

/* ─── لایت‌باکس ─── */
.mbs-lightbox {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,.95);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}

.mbs-lightbox__content {
    position: relative; max-width: 90vw; max-height: 90vh;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
}

.mbs-lightbox img {
    max-width: 100%; max-height: 80vh;
    border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

.mbs-lightbox__title { color: #fff; font-size: 14px; font-weight: 700; opacity: .85; }

.mbs-lightbox__close {
    position: absolute; top: 20px; left: 20px;
    background: rgba(255,255,255,.15); border: none;
    color: #fff; width: 44px; height: 44px;
    border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
    cursor: pointer; transition: all .2s; z-index: 2;
}

.mbs-lightbox__close:hover { background: rgba(239,68,68,.6); transform: rotate(90deg); }

/* ─── صفحه اجتماعی (به‌زودی) ─── */
.mbs-soon-wrap {
    padding: 40px 0 100px;
    min-height: 70vh;
    background: linear-gradient(135deg, #faf5ff, #eef2ff);
}

.mbs-soon {
    max-width: 600px; margin: 40px auto;
    text-align: center; padding: 40px 24px;
    background: #fff; border-radius: 24px;
    box-shadow: 0 20px 60px rgba(99,102,241,.1);
    border: 1px solid #e8ecf5; direction: rtl;
}

.mbs-soon__icon {
    width: 96px; height: 96px; border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; margin-bottom: 20px;
    box-shadow: 0 12px 30px rgba(99,102,241,.3);
    animation: mbsSoonPulse 2.5s infinite;
}

@keyframes mbsSoonPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.mbs-soon__badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff; font-size: 11px; font-weight: 800;
    padding: 4px 12px; border-radius: 100px; margin-bottom: 14px;
}

.mbs-soon__title { font-size: 24px; font-weight: 900; color: #0f172a; margin: 0 0 12px; }
.mbs-soon__desc { font-size: 14px; color: #64748b; line-height: 1.9; margin: 0 0 24px; }

.mbs-soon__features {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 10px; margin-bottom: 28px;
}

.mbs-soon__feature {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 100px;
    background: #f1f5f9; color: #334155;
    font-size: 12.5px; font-weight: 700;
}

.mbs-soon__btn {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff; padding: 12px 28px; border-radius: 12px;
    text-decoration: none; font-weight: 800; font-size: 14px;
    transition: all .25s;
    box-shadow: 0 8px 20px rgba(99,102,241,.3);
}

.mbs-soon__btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(99,102,241,.4); }

/* ─── ریسپانسیو ─── */
@media (max-width: 768px) {
    .mbs-page-head { padding: 18px 0; margin-bottom: 20px; }
    .mbs-page-head__icon { width: 48px; height: 48px; }
    .mbs-page-head__title { font-size: 18px; }
    .mbs-gallery-grid { gap: 2px; }
    .mbs-video-grid { grid-template-columns: 1fr; }
    .mbs-podcast-item { padding: 12px; }
    .mbs-soon { margin: 20px 12px; padding: 30px 18px; }
    .mbs-soon__title { font-size: 20px; }
    .mbs-soon__icon { width: 80px; height: 80px; }
}
