/* ============================================
   Subscription Popup Modal - نافذة الاشتراك
   ============================================ */

.subscription-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.subscription-popup.show {
    display: flex;
    opacity: 1;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    overflow: hidden;
    z-index: 1;
}

.popup-close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #666;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.popup-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.popup-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #608f90 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.popup-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    animation: bounce 1s ease infinite;
}

.popup-header h2 {
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    font-weight: 800;
}

.popup-header p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.95;
    line-height: 1.6;
}

.popup-form {
    padding: 35px 30px;
}

.form-group-popup {
    position: relative;
    margin-bottom: 20px;
}

.popup-input {
    width: 100%;
    padding: 15px 45px 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Tajawal', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.popup-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(139, 21, 56, 0.1);
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    transition: color 0.3s ease;
}

.popup-input:focus + .input-icon {
    color: var(--primary-color);
}

.popup-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #608f90 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.popup-submit:hover {
    transform: translateY(-2px);
}

.popup-submit:active {
    transform: translateY(0);
}

.popup-privacy {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin-top: 20px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.popup-privacy i {
    color: var(--accent-gold);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .popup-content {
        max-width: 95%;
        margin: 20px;
    }
    
    .popup-header {
        padding: 30px 20px;
    }
    
    .popup-header h2 {
        font-size: 1.5rem;
    }
    
    .popup-icon {
        font-size: 2.5rem;
    }
    
    .popup-form {
        padding: 25px 20px;
    }
}

/* Success Message */
.popup-success {
    text-align: center;
    padding: 40px 30px;
    display: none;
}

.popup-success.show {
    display: block;
}

.popup-success i {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 20px;
}

.popup-success h3 {
    color: #10b981;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.popup-success p {
    color: #666;
    line-height: 1.6;
}
