/* ============================================
   BLAZE POPUP MANAGEMENT SYSTEM
   ============================================ */

/* Base popup styles */
.blaze-popup { position: relative; }
.blaze-popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}
.blaze-popup__close:hover { background: rgba(255,255,255,0.2); }

/* Centered Modal */
.blaze-popup--centered { /* inherits inline styles */ }

/* Slide In Right */
.blaze-popup--slide-right {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 380px;
    max-width: 90vw;
    z-index: 99999;
    overflow-y: auto;
    box-shadow: -5px 0 30px rgba(0,0,0,0.3);
}

/* Slide In Left */
.blaze-popup--slide-left {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 380px;
    max-width: 90vw;
    z-index: 99999;
    overflow-y: auto;
    box-shadow: 5px 0 30px rgba(0,0,0,0.3);
}

/* Bottom Bar */
.blaze-popup--bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    box-shadow: 0 -3px 20px rgba(0,0,0,0.3);
}
.blaze-popup--bottom-bar .blaze-popup__bar-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 30px;
}

/* Top Bar */
.blaze-popup--top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    box-shadow: 0 3px 20px rgba(0,0,0,0.3);
}
.blaze-popup--top-bar .blaze-popup__bar-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 30px;
}

/* Fullscreen */
.blaze-popup--fullscreen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

/* Corner Widget */
.blaze-popup--corner-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    max-width: calc(100vw - 40px);
    z-index: 99999;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

/* Minimal Light */
.blaze-popup--minimal-light {
    max-width: 500px;
    width: 90%;
    border-radius: 12px;
    overflow: hidden;
}
.blaze-popup--minimal-light .blaze-popup__close {
    background: rgba(0,0,0,0.05);
    color: #333;
}
.blaze-popup--minimal-light .blaze-popup__close:hover {
    background: rgba(0,0,0,0.1);
}

/* Animations */
.blaze-popup-animate-fade { animation: blazePopupFade 0.3s ease; }
.blaze-popup-animate-slide { animation: blazePopupSlide 0.3s ease; }
.blaze-popup-animate-zoom { animation: blazePopupZoom 0.3s ease; }
.blaze-popup-animate-bounce { animation: blazePopupBounce 0.5s ease; }

@keyframes blazePopupFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes blazePopupSlide { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes blazePopupZoom { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes blazePopupBounce { 0% { transform: scale(0.5); opacity: 0; } 60% { transform: scale(1.05); opacity: 1; } 100% { transform: scale(1); } }

/* Responsive */
@media (max-width: 768px) {
    .blaze-popup--slide-right,
    .blaze-popup--slide-left { width: 100vw; max-width: 100vw; }
    .blaze-popup--corner-widget { bottom: 0; right: 0; width: 100%; max-width: 100%; border-radius: 12px 12px 0 0 !important; }
    .blaze-popup--bottom-bar .blaze-popup__bar-inner,
    .blaze-popup--top-bar .blaze-popup__bar-inner { flex-direction: column; gap: 10px; padding: 12px 15px; }
}
