/**
 * Ramadan Mubarak Popup Styles
 * Islamic green/gold theme with smooth animations
 */

/* Overlay */
.rmp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(3px);
}

.rmp-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Container */
.rmp-popup-container {
    background: linear-gradient(135deg, #1e8449 0%, #27ae60 50%, #229954 100%);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    /* max-height: removed */
    /* overflow-y: removed */
    overflow: visible;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(255, 215, 0, 0.3);
    transform: scale(0.8) translateY(-50px);
    transition: transform 0.4s ease;
    border: 2px solid rgba(255, 215, 0, 0.5);
}

.rmp-popup-overlay.active .rmp-popup-container {
    transform: scale(1) translateY(0);
}

/* Close Button */
.rmp-popup-close {
    position: absolute;
    top: -20px;
    right: -20px;
    background: #1e8449;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
}

.rmp-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 215, 0, 0.8);
    color: #ffd700;
    transform: rotate(90deg);
}

.rmp-popup-close:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

/* Popup Content */
.rmp-popup-content {
    padding: 40px 30px 30px;
    text-align: center;
    color: #ffffff;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 20px;
}

/* Popup Image */
.rmp-popup-image {
    margin-bottom: 20px;
}

.rmp-popup-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 215, 0, 0.4);
}

/* Popup Text */
.rmp-popup-title {
    font-size: 36px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 1px;
}

.rmp-popup-offer {
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 25px 0;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Button Wrapper */
.rmp-popup-button-wrapper {
    margin-top: 20px;
}

/* Popup Button */
.rmp-popup-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1e8449;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rmp-popup-button:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
    color: #1a5f3f;
}

.rmp-popup-button:active {
    transform: translateY(0);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .rmp-popup-container {
        width: 95%;
        max-width: 95%;
        border-radius: 15px;
    }
    
    .rmp-popup-content {
        padding: 30px 20px 25px;
    }
    
    .rmp-popup-title {
        font-size: 28px;
    }
    
    .rmp-popup-offer {
        font-size: 16px;
    }
    
    .rmp-popup-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .rmp-popup-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
}

@media screen and (max-width: 480px) {
    .rmp-popup-title {
        font-size: 24px;
    }
    
    .rmp-popup-offer {
        font-size: 14px;
    }
    
    .rmp-popup-button {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .rmp-popup-content {
        padding: 25px 15px 20px;
    }
}

/* Scrollbar styling for popup */
/* Scrollbar styling for popup content */
.rmp-popup-content::-webkit-scrollbar {
    width: 8px;
}

.rmp-popup-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.rmp-popup-content::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.5);
    border-radius: 10px;
}

.rmp-popup-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.7);
}
