/* ===================================================================
   PROMOTION POPUP STYLES - VIN-BHXH
   File: public/stylesheets/promotion-popup.css
   =================================================================== */

/* Overlay - Lớp phủ tối */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.popup-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Container - Khung popup */
.popup-container {
    position: relative;
    max-width: 800px;
    width: 90%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Slide - Từng slide hình ảnh */
.popup-slide {
    display: none;
    width: 100%;
}

.popup-slide.active {
    display: block;
    animation: slideIn 0.5s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.popup-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.popup-slide a {
    display: block;
    cursor: pointer;
}

/* Close Button - Nút đóng */
.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    font-weight: bold;
    line-height: 1;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Navigation Buttons - Nút prev/next */
.popup-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 15px 10px;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s;
    z-index: 10;
    border: 2px solid rgba(255, 255, 255, 0.2);
    user-select: none;
}

.popup-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 15px;
}

.popup-prev {
    left: 10px;
    border-radius: 0 5px 5px 0;
}

.popup-next {
    right: 10px;
    border-radius: 5px 0 0 5px;
}

/* Dots Indicator - Chấm chỉ báo */
.popup-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.popup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.popup-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.popup-dot.active {
    background: white;
    border-color: white;
    transform: scale(1.3);
}

/* ===================================================================
   RESPONSIVE - MOBILE
   =================================================================== */

/* Tablet */
@media (max-width: 768px) {
    .popup-container {
        width: 95%;
        max-width: 500px;
    }
    
    .popup-nav {
        padding: 10px 8px;
        font-size: 20px;
    }
    
    .popup-close {
        width: 35px;
        height: 35px;
        font-size: 25px;
        top: 5px;
        right: 10px;
    }
    
    .popup-dots {
        bottom: 10px;
    }
    
    .popup-dot {
        width: 10px;
        height: 10px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .popup-container {
        width: 98%;
        border-radius: 5px;
    }
    
    .popup-prev {
        left: 5px;
    }
    
    .popup-next {
        right: 5px;
    }
    
    .popup-close {
        width: 30px;
        height: 30px;
        font-size: 20px;
    }
    
    .popup-nav {
        padding: 8px 6px;
        font-size: 18px;
    }
    
    .popup-dots {
        bottom: 8px;
        gap: 8px;
    }
    
    .popup-dot {
        width: 8px;
        height: 8px;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .popup-container {
        width: 100%;
        border-radius: 0;
    }
}