/* پاپ‌آپ overlay و باکس */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* پس‌زمینه تیره نیمه‌شفاف */
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out; /* انیمیشن ورود */
}

.popup-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* گرادیانت زیبا */
    color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* سایه نرم */
    text-align: center;
    max-width: 400px;
    position: relative;
    animation: slideIn 0.4s ease-out; /* انیمیشن اسلاید */
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* دکمه بستن */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s;
}

.close-btn:hover {
    transform: scale(1.2);
}

/* عنوان و متن */
.popup-box h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: bold;
}

.popup-box p {
    margin: 0 0 20px 0;
    font-size: 16px;
    opacity: 0.9;
}

/* دکمه مشاهده */
.view-archive-btn {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.view-archive-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}