/**
 * Vimiss Breadcrumb Image Banner Component Styles
 *
 * Background cover with light blue wave texture,
 * centered bold title and frosted-glass pill breadcrumb badge.
 *
 * @package VimissCMS
 */

.vm-bc-banner {
    position: relative;
    width: 100%;
    min-height: var(--vm-bc-desktop-h, 240px);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 56px 20px 48px;
    box-sizing: border-box;
    border-radius: 32px;
    overflow: hidden;
}

/* ── Overlay gradient khi có ảnh nền upload ── */
.vm-bc-banner--has-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(32, 67, 96, 0) 0%, #204360 100%);
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

.vm-bc-banner__inner {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.vm-bc-banner__title {
    font-size: clamp(28px, 4.2vw, 44px);
    font-weight: 700;
    line-height: 1.25;
    color: #1e4e79;
    margin: 0 0 16px 0;
    padding: 0;
    text-align: center;
    letter-spacing: -0.2px;
}

/* Chữ lớn đổi sang màu trắng khi có ảnh nền upload */
.vm-bc-banner--has-overlay .vm-bc-banner__title {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

/* ── Frosted Glass Breadcrumb Badge ── */
.vm-bc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 16px rgba(13, 80, 156, 0.05);
    border-radius: 9999px;
    padding: 7px 22px 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    color: #2e5879;
    box-sizing: border-box;
    max-width: 100%;
}

/* ── Nền breadcrumb dưới khi có ảnh upload: #E1EEF7 ── */
.vm-bc-banner--has-overlay .vm-bc-badge {
    background: #E1EEF7;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 16px rgba(13, 40, 70, 0.15);
}

.vm-bc-badge__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #2e5879;
    font-weight: 500;
    line-height: 1.45;
    transition: color 0.18s ease;
}

.vm-bc-badge__link span {
    display: inline-block;
    line-height: 1.45;
}

.vm-bc-badge__link:hover {
    color: #0D509C;
    text-decoration: none;
}

.vm-bc-badge__icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
    margin: 0;
    vertical-align: middle;
}

.vm-bc-badge__sep {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7a92a5;
    line-height: 1;
    flex-shrink: 0;
}

.vm-bc-badge__sep svg {
    width: 12px;
    height: 12px;
    display: block;
}

.vm-bc-badge__current {
    display: inline-block;
    line-height: 1.45;
    color: #2e5879;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 340px;
    padding-bottom: 4px;
    margin-bottom: -4px;
}

/* ── Responsive Tablet & Mobile (Hình chữ nhật nằm ngang thanh thoát) ── */
@media (max-width: 768px) {
    .vm-bc-banner {
        min-height: 155px !important;
        padding: 28px 16px 24px !important;
        border-radius: 24px;
    }
    .vm-bc-banner__title {
        font-size: clamp(22px, 5vw, 30px);
        margin-bottom: 10px;
    }
    .vm-bc-badge {
        padding: 6px 16px 7px;
        font-size: 13px;
        gap: 6px;
    }
    .vm-bc-badge__icon {
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 480px) {
    .vm-bc-banner {
        min-height: 125px !important;
        max-height: 150px;
        padding: 20px 14px 18px !important;
        border-radius: 20px;
        aspect-ratio: 16 / 7;
    }
    .vm-bc-banner__title {
        font-size: 21px;
        line-height: 1.2;
        margin-bottom: 8px;
    }
    .vm-bc-badge {
        padding: 5px 14px 6px;
        font-size: 12.5px;
        gap: 5px;
    }
    .vm-bc-badge__icon {
        width: 14.5px;
        height: 14.5px;
    }
    .vm-bc-badge__current {
        max-width: 170px;
    }
}
