/* ═══════════════════════════════════════════════════════════════
   Occasion Banner — نسخه نهایی
   موبایل: فقط آیکن (بدون متن)
   دسکتاپ: آیکن + متن
   ═══════════════════════════════════════════════════════════════ */

.mbs-occasion {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    transition: all .3s cubic-bezier(.2, .8, .2, 1);
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   متن — به‌طور پیش‌فرض مخفی (برای موبایل)
   ═══════════════════════════════════════════════════ */
.mbs-occasion__text {
    display: none !important;
}

/* ═══════════════════════════════════════════════════
   نمایش متن فقط در دسکتاپ (≥ 769px)
   ═══════════════════════════════════════════════════ */
@media (min-width: 769px) {
    .mbs-occasion__text {
        display: flex !important;
        flex-direction: column;
        gap: 1px;
        overflow: hidden;
        min-width: 0;
    }
}

/* ═══════════════════════════════════════════════════
   حالت هدر (compact)
   ═══════════════════════════════════════════════════ */
.mbs-occasion--header {
    padding: 4px;
    border-radius: 12px;
    background: rgba(15, 23, 42, .06);
    gap: 8px;
    max-width: none;
}

@media (min-width: 769px) {
    .mbs-occasion--header {
        padding: 5px 12px 5px 8px;
        max-width: 220px;
    }
}

.mbs-occasion--header:hover {
    background: rgba(15, 23, 42, .1);
    transform: translateY(-1px);
}

.mbs-occasion--header .mbs-occasion__title {
    color: var(--mbs-text-primary, #0f172a);
    font-size: 12.5px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
    line-height: 1.3;
}

/* ═══════════════════════════════════════════════════
   حالت spot (بزرگ، برای صفحه اصلی)
   ═══════════════════════════════════════════════════ */
.mbs-occasion--spot {
    padding: 16px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 4px 16px -4px rgba(15, 23, 42, .15);
    gap: 14px;
    width: 100%;
    border: 2px solid transparent;
}
.mbs-occasion--spot:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -6px rgba(15, 23, 42, .2);
}
.mbs-occasion--spot .mbs-occasion__title {
    color: var(--mbs-text-primary, #0f172a);
    font-size: 15px;
    font-weight: 800;
}
.mbs-occasion--spot .mbs-occasion__subtitle {
    color: var(--mbs-text-secondary, #475569);
    font-size: 12.5px;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════
   آیکن
   ═══════════════════════════════════════════════════ */
.mbs-occasion__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    flex-shrink: 0;
    color: #fff;
    box-shadow: 0 2px 6px -1px rgba(0, 0, 0, .2);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1);
    overflow: hidden;
    position: relative;
}
.mbs-occasion__icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, .25) 0%,
        rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
}
.mbs-occasion:hover .mbs-occasion__icon {
    transform: scale(1.06) rotate(-3deg);
}
.mbs-occasion__icon svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    flex-shrink: 0 !important;
    filter: brightness(0) invert(1) drop-shadow(0 1px 1px rgba(0, 0, 0, .25));
    position: relative;
    z-index: 1;
    display: block;
}
.mbs-occasion__emoji {
    font-size: 18px;
    line-height: 1;
    position: relative;
    z-index: 1;
}

/* هدر: آیکن کمی کوچیک‌تر در موبایل */
@media (max-width: 768px) {
    .mbs-occasion--header .mbs-occasion__icon {
        width: 32px;
        height: 32px;
        border-radius: 9px;
    }
    .mbs-occasion--header .mbs-occasion__icon svg {
        width: 18px !important;
        height: 18px !important;
        max-width: 18px !important;
        max-height: 18px !important;
    }
}

@media (max-width: 480px) {
    .mbs-occasion--header {
        padding: 3px;
    }
    .mbs-occasion--header .mbs-occasion__icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }
    .mbs-occasion--header .mbs-occasion__icon svg {
        width: 16px !important;
        height: 16px !important;
        max-width: 16px !important;
        max-height: 16px !important;
    }
}

/* ═══════════════════════════════════════════════════
   SVG سفارشی
   ═══════════════════════════════════════════════════ */
.mbs-occasion__icon > svg:not([width]) {
    width: 20px;
    height: 20px;
    max-width: 100%;
    max-height: 100%;
}

/* ═══════════════════════════════════════════════════
   glow برای spot
   ═══════════════════════════════════════════════════ */
.mbs-occasion--spot .mbs-occasion__icon {
    animation: mbs-occasion-glow 2.5s ease-in-out infinite;
}
@keyframes mbs-occasion-glow {
    0%, 100% {
        box-shadow: 0 2px 6px -1px rgba(0, 0, 0, .2),
                    0 0 0 0 rgba(108, 92, 231, .4);
    }
    50% {
        box-shadow: 0 2px 6px -1px rgba(0, 0, 0, .2),
                    0 0 0 8px rgba(108, 92, 231, 0);
    }
}
