/* ========================================
   BANNERS / ADVERTISEMENTS
   Shared visual language with checklist-popup.css:
   var(--bg-card), var(--radius-md/full), var(--shadow-lg),
   var(--border-color), var(--gradient-primary), cubic-bezier transitions.
   ======================================== */

.banner-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    border-radius: var(--radius-full);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.banner-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.banner-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.banner-share:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
}

.banner-close {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.banner-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.08);
}

.banner-image {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.banner-title {
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.3;
    margin: 0 0 0.25rem 0;
}

.banner-body {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.92;
    margin: 0;
}

.banner-timer {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.banner-timer span {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 0.3rem 0.55rem;
    font-weight: 700;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}

/* ---------- Top bar ---------- */
.banner-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.7rem 1.25rem;
    transform: translateY(-100%);
    transition: transform 0.45s cubic-bezier(0.68, -0.3, 0.32, 1.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.banner-topbar.show {
    transform: translateY(0);
}

.banner-topbar .banner-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    max-width: 1100px;
    width: 100%;
    text-align: center;
}

.banner-topbar .banner-title {
    font-size: 0.92rem;
    margin: 0;
}

.banner-topbar .banner-body {
    font-size: 0.85rem;
    margin: 0;
}

/* ---------- Overlay (popup_modal / exit_intent) ---------- */
.banner-overlay {
    position: fixed;
    inset: 0;
    z-index: 100010;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.banner-overlay.show {
    display: flex;
    opacity: 1;
}

.banner-modal-card {
    position: relative;
    background: var(--bg-card);
    color: var(--text-main);
    border-radius: var(--radius-md);
    max-width: 440px;
    width: 100%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.4, 0.265, 1.4);
}

.banner-overlay.show .banner-modal-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.banner-modal-card .banner-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.banner-modal-body {
    padding: 2rem 1.75rem 1.75rem;
    text-align: center;
}

.banner-modal-card .banner-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.banner-modal-card .banner-body {
    margin-bottom: 1.25rem;
}

.banner-modal-card .banner-timer {
    justify-content: center;
    margin-bottom: 1.25rem;
}

.banner-modal-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ---------- Floating badge ---------- */
.banner-floating {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 99999;
    max-width: 320px;
    background: var(--bg-card);
    color: var(--text-main);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    padding: 1.1rem 1.1rem 1rem;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.banner-floating.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.banner-floating .banner-close {
    position: absolute;
    top: 6px;
    right: 6px;
}

.banner-floating .banner-image {
    max-height: 120px;
    margin-bottom: 0.6rem;
    border-radius: var(--radius-md);
}

.banner-floating-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

/* ---------- Inline section ---------- */
.banner-inline {
    margin: 1.5rem auto;
    max-width: 1100px;
    width: calc(100% - 2.5rem);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.banner-inline.show {
    opacity: 1;
    transform: translateY(0);
}

.banner-inline .banner-image {
    width: 260px;
    max-height: none;
    border-radius: 0;
    flex-shrink: 0;
    object-fit: cover;
}

.banner-inline-body {
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.6rem;
    flex: 1;
    min-width: 220px;
    position: relative;
}

.banner-inline .banner-title {
    font-size: 1.2rem;
}

.banner-inline-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.4rem;
    flex-wrap: wrap;
}

.banner-inline .banner-close {
    position: absolute;
    top: 8px;
    right: 8px;
}

@media (max-width: 640px) {
    .banner-inline {
        flex-direction: column;
    }

    .banner-inline .banner-image {
        width: 100%;
        max-height: 160px;
    }

    .banner-topbar .banner-topbar-inner {
        flex-direction: column;
        gap: 0.35rem;
    }

    .banner-floating {
        left: 15px;
        right: 15px;
        max-width: none;
        bottom: 15px;
    }
}
