/* ==========================================
   Metered Content Wrapper
========================================== */

.bam-meter-wrap {
    position: relative;
    transition: all 0.4s ease-in-out;
}

/* When view limit is exceeded */
.bam-meter-blurred {
    filter: blur(6px);
    pointer-events: none;
    position: relative;
    opacity: 0.6;
}

/* Optional gradient overlay for visual depth */
.bam-meter-wrap::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to bottom, transparent, #fff);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    z-index: 1;
}

.bam-meter-blurred::after {
    opacity: 1;
}

/* ==========================================
   Sticky Footer Popup (Elementor Shortcode)
========================================== */

#bam-popup-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    display: none;
    animation: slideUp 0.3s ease-in-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==========================================
   Welcome Message (optional)
========================================== */

.bam-welcome-msg {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #eafbea;
    color: #215d21;
    text-align: center;
    padding: 15px 20px;
    font-weight: 500;
    font-size: 15px;
    z-index: 9999;
    display: none;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.bam-welcome-msg .close-msg {
    position: absolute;
    right: 15px;
    top: 12px;
    font-size: 20px;
    cursor: pointer;
}

/* ==========================================
   Responsive Enhancements
========================================== */

@media (max-width: 768px) {
    #bam-popup-container,
    .bam-welcome-msg {
        font-size: 14px;
        padding: 15px;
    }

    .bam-welcome-msg .close-msg {
        top: 8px;
        right: 10px;
    }
}
