/* ======= Promotional Popup Styles ======= */

.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;
    animation: fadeIn 0.3s ease-in-out;
}

.popup-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-container {
    position: relative;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-width: 550px;
    width: 90%;
    animation: slideUp 0.4s ease-out;
    overflow: hidden;
}

.popup-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background-color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 10001;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.popup-close:hover {
    background-color: #ff4444;
    color: white;
}

.popup-content {
    padding: 25px;
    text-align: center;
}

.popup-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: bold;
}

.popup-content p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.popup-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.popup-btn {
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.cta-btn {
    background: #28a745;
    color: white !important;
}

.cta-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.close-btn-secondary {
    background: #e9ecef;
    color: #495057;
}

.close-btn-secondary:hover {
    background: #dee2e6;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* RTL Support */
html[dir="rtl"] .popup-close {
    right: auto;
    left: 10px;
}
