/* ═══════════════════════════════════════════════════════════════
   Mabsut Hero — Slider + Timeline
   ═══════════════════════════════════════════════════════════════ */

.mbs-hero {
    padding: 24px 0;
}

.mbs-hero__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: stretch;
}

/* ═══════════════════════════════════════════════════════════════
   اسلایدر
   ═══════════════════════════════════════════════════════════════ */
.mbs-slider {
    position: relative;
    border-radius: var(--mbs-radius-xl);
    overflow: hidden;
    background: var(--mbs-bg-surface);
    box-shadow: var(--mbs-shadow-md);
    aspect-ratio: 16 / 9;
    min-height: 380px;
}

.mbs-slider__viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.mbs-slider__track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 500ms var(--mbs-ease);
}

.mbs-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.mbs-slide__link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.mbs-slide__media {
    position: absolute;
    inset: 0;
}
.mbs-slide__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms var(--mbs-ease);
}
.mbs-slide__img--placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--mbs-brand), var(--mbs-accent));
}
.mbs-slide:hover .mbs-slide__img {
    transform: scale(1.04);
}

.mbs-slide__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15,23,42,.95) 0%,
        rgba(15,23,42,.75) 30%,
        rgba(15,23,42,.35) 60%,
        rgba(15,23,42,.05) 100%
    );
}

.mbs-slide__content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 28px 32px;
    color: #fff;
    z-index: 2;
    max-width: 100%;
}

.mbs-slide__cat {
    display: inline-block;
    padding: 5px 12px;
    background: var(--mbs-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--mbs-radius-full);
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.mbs-slide__title {
    font-size: clamp(20px, 2.4vw, 30px);
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 12px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mbs-slide__excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,.85);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mbs-slide__meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: rgba(255,255,255,.75);
}
.mbs-slide__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ناوبری */
.mbs-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    color: #fff;
    border-radius: 50%;
    z-index: 3;
    transition: all var(--mbs-t-base) var(--mbs-ease);
    opacity: 0;
}
.mbs-slider:hover .mbs-slider__nav { opacity: 1; }
.mbs-slider__nav:hover {
    background: rgba(255,255,255,.3);
    transform: translateY(-50%) scale(1.1);
}
.mbs-slider__nav--prev { right: 16px; }
.mbs-slider__nav--next { left: 16px; }

/* نقاط */
.mbs-slider__dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
    padding: 6px 12px;
    background: rgba(0,0,0,.3);
    backdrop-filter: blur(8px);
    border-radius: var(--mbs-radius-full);
}
.mbs-slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    transition: all var(--mbs-t-base) var(--mbs-ease);
}
.mbs-slider__dot.is-active {
    width: 24px;
    background: #fff;
}
.mbs-slider__dot:hover { background: rgba(255,255,255,.7); }

/* ═══════════════════════════════════════════════════════════════
   تایم‌لاین
   ═══════════════════════════════════════════════════════════════ */
.mbs-timeline {
    background: var(--mbs-bg-surface);
    border-radius: var(--mbs-radius-xl);
    border: 1px solid var(--mbs-border);
    box-shadow: var(--mbs-shadow-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 100%;
}

.mbs-timeline__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--mbs-border);
    background: linear-gradient(135deg, rgba(194,24,91,.06), rgba(26,95,180,.06));
}

.mbs-timeline__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 800;
    color: var(--mbs-text-primary);
}

.mbs-timeline__live {
    width: 10px;
    height: 10px;
    background: var(--mbs-danger);
    border-radius: 50%;
    position: relative;
}
.mbs-timeline__live::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid var(--mbs-danger);
    border-radius: 50%;
    animation: mbs-live-ring 1.6s ease-out infinite;
}
@keyframes mbs-live-ring {
    0%   { transform: scale(.6); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.mbs-timeline__all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--mbs-brand);
    font-weight: 600;
    transition: all var(--mbs-t-fast);
}
.mbs-timeline__all:hover {
    gap: 8px;
}

.mbs-timeline__body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    min-height: 200px;
}
.mbs-timeline__body::-webkit-scrollbar { width: 6px; }
.mbs-timeline__body::-webkit-scrollbar-thumb {
    background: var(--mbs-border-strong);
    border-radius: 3px;
}
.mbs-timeline__body::-webkit-scrollbar-track { background: transparent; }

.mbs-timeline__list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.mbs-timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 12px;
    padding: 10px 18px;
    transition: background var(--mbs-t-fast);
}
.mbs-timeline__item:hover {
    background: var(--mbs-bg-hover);
}

.mbs-timeline__item::before {
    content: '';
    position: absolute;
    right: 44px;
    top: 30px;
    bottom: -10px;
    width: 1px;
    background: var(--mbs-border);
    z-index: 0;
}
.mbs-timeline__item:last-child::before { display: none; }

.mbs-timeline__item::after {
    content: '';
    position: absolute;
    right: 40px;
    top: 15px;
    width: 9px;
    height: 9px;
    background: var(--mbs-bg-surface);
    border: 2px solid var(--mbs-brand);
    border-radius: 50%;
    z-index: 1;
}

.mbs-timeline__item.is-new::after {
    border-color: var(--mbs-danger);
    background: var(--mbs-danger);
    box-shadow: 0 0 0 4px rgba(239,68,68,.15);
    animation: mbs-live-ring 1.6s ease-out infinite;
}

.mbs-timeline__time {
    font-size: 12px;
    font-weight: 700;
    color: var(--mbs-brand);
    padding-top: 4px;
    font-variant-numeric: tabular-nums;
    direction: ltr;
    text-align: left;
}

.mbs-timeline__content {
    padding-right: 18px;
    position: relative;
    z-index: 2;
}

.mbs-timeline__link {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--mbs-text-primary);
    line-height: 1.5;
    transition: color var(--mbs-t-fast);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mbs-timeline__link:hover {
    color: var(--mbs-brand);
}

.mbs-timeline__excerpt {
    font-size: 11.5px;
    color: var(--mbs-text-muted);
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mbs-timeline__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 10px;
    color: var(--mbs-text-muted);
    text-align: center;
}
.mbs-timeline__empty p {
    font-size: 13px;
    font-weight: 600;
}
.mbs-timeline__empty small {
    font-size: 11px;
    opacity: .7;
}

.mbs-timeline__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    border-top: 1px solid var(--mbs-border);
    background: var(--mbs-bg-muted);
    font-size: 11px;
    color: var(--mbs-text-muted);
}

.mbs-timeline__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.mbs-timeline__dot {
    width: 6px;
    height: 6px;
    background: var(--mbs-success);
    border-radius: 50%;
    animation: mbs-notif-pulse 2s ease-in-out infinite;
}

.mbs-timeline__refresh {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--mbs-text-muted);
    transition: all var(--mbs-t-fast);
}
.mbs-timeline__refresh:hover {
    background: var(--mbs-bg-hover);
    color: var(--mbs-brand);
    transform: rotate(90deg);
}
.mbs-timeline__refresh.is-spinning {
    animation: mbs-spin 0.8s linear infinite;
}
@keyframes mbs-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .mbs-hero__grid {
        grid-template-columns: 1fr;
    }
    .mbs-slider {
        min-height: 320px;
        aspect-ratio: 16 / 10;
    }
    .mbs-timeline {
        max-height: 420px;
    }
}

@media (max-width: 768px) {
    .mbs-hero { padding: 16px 0; }
    .mbs-hero__grid { gap: 14px; }

    .mbs-slider {
        aspect-ratio: 4 / 3;
        min-height: 280px;
        border-radius: var(--mbs-radius-lg);
    }
    .mbs-slide__content { padding: 20px; }
    .mbs-slide__title { font-size: 18px; -webkit-line-clamp: 3; }
    .mbs-slide__excerpt { display: none; }
    .mbs-slide__cat { font-size: 10px; padding: 4px 10px; margin-bottom: 8px; }

    .mbs-slider__nav { display: none; }
    .mbs-slider__dots {
        bottom: 12px;
        padding: 4px 10px;
    }

    .mbs-timeline__header { padding: 12px 14px; }
    .mbs-timeline__title { font-size: 14px; }
    .mbs-timeline__item {
        grid-template-columns: 44px 1fr;
        gap: 8px;
        padding: 8px 14px;
    }
    .mbs-timeline__item::before { right: 36px; }
    .mbs-timeline__item::after  { right: 32px; top: 14px; }
    .mbs-timeline__content { padding-right: 14px; }
    .mbs-timeline__link { font-size: 12.5px; }
    .mbs-timeline__excerpt { display: none; }
}

@media (max-width: 480px) {
    .mbs-slider { min-height: 240px; }
    .mbs-slide__title { font-size: 16px; }
    .mbs-slide__meta { font-size: 11px; gap: 12px; }
}
